diff options
author | 2020-04-14 14:56:16 +0530 | |
---|---|---|
committer | 2020-04-14 10:26:16 +0100 | |
commit | 100016e38098ff389b2d6899dee76413da26f2ae (patch) | |
tree | bcb0f69ef87b4fb91905da2a58538d3e8cc828e5 /src/i18n | |
parent | New Crowdin translations (#495) (diff) | |
download | ferdium-app-100016e38098ff389b2d6899dee76413da26f2ae.tar.gz ferdium-app-100016e38098ff389b2d6899dee76413da26f2ae.tar.zst ferdium-app-100016e38098ff389b2d6899dee76413da26f2ae.zip |
Expose Dark Reader settings (#568)
* feat: Expose DarkReader settings to users
- In the service model, expose an object darkReaderSetting which contains brightness, contrast and sepia values.
- In EditServiceScreen, provide 3 form options for brightness, contrast and Sepia. Additionally onSubmit() form, capture the darkreader settings data onto formdata.darkReaderSettings to update in the service
- In EditServiceForm, if darkModeEnabled is checked, show 3 sliders for controlling darkreader settings
- Create a new Slider control and customize it according to the application's theme and dark theme.
- In Webview Recipe, load the darkReader settings from service settings and pass it to the darkReader library.
* feat: Darkreader settings
- Lint fixes
* feat: DarkReader settings
- refactor code in editservicescreen.js
Co-Authored-By: Sampath Kumar Krishnan <sampath3493@gmail.com>
* feat: Darkreader settings
- Fix a crash where service.darkReaderSettings is null while creating a new service
- Remove isDarkModeEnabled prop to EditServiceForm as it is no longer required.
* fix: Update EditServiceScreen
- Set the default value of darkReader Brightness, Contrast and Sepia to undefined as per @vantezzen 's suggestion.
- Updated the check provided by @mahadevans87
Co-authored-by: Sampath Kumar Krishnan <sampath3493@gmail.com>
Co-authored-by: Sampath Kumar Krishnan <sampathBlam@users.noreply.github.com>
Diffstat (limited to 'src/i18n')
-rw-r--r-- | src/i18n/locales/en-US.json | 4 | ||||
-rw-r--r-- | src/i18n/locales/en.json | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/i18n/locales/en-US.json b/src/i18n/locales/en-US.json index 9f19ad742..947f927e7 100644 --- a/src/i18n/locales/en-US.json +++ b/src/i18n/locales/en-US.json | |||
@@ -370,6 +370,10 @@ | |||
370 | "settings.service.form.enableAudio": "Enable audio", | 370 | "settings.service.form.enableAudio": "Enable audio", |
371 | "settings.service.form.enableBadge": "Show unread message badges", | 371 | "settings.service.form.enableBadge": "Show unread message badges", |
372 | "settings.service.form.enableDarkMode": "Enable Dark Mode", | 372 | "settings.service.form.enableDarkMode": "Enable Dark Mode", |
373 | "settings.service.form.darkReaderBrightness": "Brightness", | ||
374 | "settings.service.form.darkReaderContrast": "Contrast", | ||
375 | "settings.service.form.darkReaderSepia": "Sepia", | ||
376 | "settings.service.form.headlineDarkReaderSettings": "Dark Reader Settings", | ||
373 | "settings.service.form.enableNotification": "Enable notifications", | 377 | "settings.service.form.enableNotification": "Enable notifications", |
374 | "settings.service.form.enableService": "Enable service", | 378 | "settings.service.form.enableService": "Enable service", |
375 | "settings.service.form.headlineBadges": "Unread message badges", | 379 | "settings.service.form.headlineBadges": "Unread message badges", |
diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index ff0d57435..544ad997d 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json | |||
@@ -300,6 +300,10 @@ | |||
300 | "settings.service.form.enableAudio": "Cumasaigh fuaim", | 300 | "settings.service.form.enableAudio": "Cumasaigh fuaim", |
301 | "settings.service.form.enableBadge": "Taispeáin comhartha do theachtaireachtaí neamhléite", | 301 | "settings.service.form.enableBadge": "Taispeáin comhartha do theachtaireachtaí neamhléite", |
302 | "settings.service.form.enableDarkMode": "Enable Dark Mode", | 302 | "settings.service.form.enableDarkMode": "Enable Dark Mode", |
303 | "settings.service.form.darkReaderBrightness": "Darkreader Brightness", | ||
304 | "settings.service.form.darkReaderContrast": "Darkreader Contrast", | ||
305 | "settings.service.form.darkReaderSepia": "Darkreader Sepia", | ||
306 | "settings.service.form.headlineDarkReaderSettings": "Dark Reader Settings", | ||
303 | "settings.service.form.enableNotification": "Cumasaigh fógraí", | 307 | "settings.service.form.enableNotification": "Cumasaigh fógraí", |
304 | "settings.service.form.enableService": "Cumasaigh seirbhís", | 308 | "settings.service.form.enableService": "Cumasaigh seirbhís", |
305 | "settings.service.form.headlineBadges": "Comhartha do theachtaireachtaí neamhléite", | 309 | "settings.service.form.headlineBadges": "Comhartha do theachtaireachtaí neamhléite", |