diff options
author | 2022-05-06 08:56:27 +0100 | |
---|---|---|
committer | 2022-05-06 09:57:02 -0500 | |
commit | abec4c80bf4241194e2704136db4f66d064cce38 (patch) | |
tree | 3e740790185b7eb178121b74b46ecb7e77fdfb3c /src/containers/settings/EditSettingsScreen.js | |
parent | docs: add cedricroijakkers as a contributor for infra (#109) [skip ci] (diff) | |
download | ferdium-app-abec4c80bf4241194e2704136db4f66d064cce38.tar.gz ferdium-app-abec4c80bf4241194e2704136db4f66d064cce38.tar.zst ferdium-app-abec4c80bf4241194e2704136db4f66d064cce38.zip |
Feature: Add monochromatic Service icons option with Dim adjustment
Diffstat (limited to 'src/containers/settings/EditSettingsScreen.js')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/containers/settings/EditSettingsScreen.js b/src/containers/settings/EditSettingsScreen.js index 4c5e6d921..cf3d7b32f 100644 --- a/src/containers/settings/EditSettingsScreen.js +++ b/src/containers/settings/EditSettingsScreen.js | |||
@@ -210,6 +210,14 @@ const messages = defineMessages({ | |||
210 | id: 'settings.app.form.hideRecipesButton', | 210 | id: 'settings.app.form.hideRecipesButton', |
211 | defaultMessage: 'Hide Recipes button', | 211 | defaultMessage: 'Hide Recipes button', |
212 | }, | 212 | }, |
213 | useGrayscaleServices: { | ||
214 | id: 'settings.app.form.useGrayscaleServices', | ||
215 | defaultMessage: 'Use grayscale services', | ||
216 | }, | ||
217 | grayscaleServicesDim: { | ||
218 | id: 'settings.app.form.grayscaleServicesDim', | ||
219 | defaultMessage: 'Input grayscale dim level (%)', | ||
220 | }, | ||
213 | hideWorkspacesButton: { | 221 | hideWorkspacesButton: { |
214 | id: 'settings.app.form.hideWorkspacesButton', | 222 | id: 'settings.app.form.hideWorkspacesButton', |
215 | defaultMessage: 'Hide Workspace Drawer button', | 223 | defaultMessage: 'Hide Workspace Drawer button', |
@@ -356,6 +364,8 @@ class EditSettingsScreen extends Component { | |||
356 | ), | 364 | ), |
357 | useVerticalStyle: Boolean(settingsData.useVerticalStyle), | 365 | useVerticalStyle: Boolean(settingsData.useVerticalStyle), |
358 | hideRecipesButton: Boolean(settingsData.hideRecipesButton), | 366 | hideRecipesButton: Boolean(settingsData.hideRecipesButton), |
367 | useGrayscaleServices: Boolean(settingsData.useGrayscaleServices), | ||
368 | grayscaleServicesDim: Number(settingsData.grayscaleServicesDim), | ||
359 | hideWorkspacesButton: Boolean(settingsData.hideWorkspacesButton), | 369 | hideWorkspacesButton: Boolean(settingsData.hideWorkspacesButton), |
360 | hideNotificationsButton: Boolean(settingsData.hideNotificationsButton), | 370 | hideNotificationsButton: Boolean(settingsData.hideNotificationsButton), |
361 | hideSettingsButton: Boolean(settingsData.hideSettingsButton), | 371 | hideSettingsButton: Boolean(settingsData.hideSettingsButton), |
@@ -721,6 +731,16 @@ class EditSettingsScreen extends Component { | |||
721 | value: settings.all.app.hideRecipesButton, | 731 | value: settings.all.app.hideRecipesButton, |
722 | default: DEFAULT_APP_SETTINGS.hideRecipesButton, | 732 | default: DEFAULT_APP_SETTINGS.hideRecipesButton, |
723 | }, | 733 | }, |
734 | useGrayscaleServices: { | ||
735 | label: intl.formatMessage(messages.useGrayscaleServices), | ||
736 | value: settings.all.app.useGrayscaleServices, | ||
737 | default: DEFAULT_APP_SETTINGS.useGrayscaleServices, | ||
738 | }, | ||
739 | grayscaleServicesDim: { | ||
740 | label: intl.formatMessage(messages.grayscaleServicesDim), | ||
741 | value: settings.all.app.grayscaleServicesDim, | ||
742 | default: DEFAULT_APP_SETTINGS.grayscaleServicesDim, | ||
743 | }, | ||
724 | hideWorkspacesButton: { | 744 | hideWorkspacesButton: { |
725 | label: intl.formatMessage(messages.hideWorkspacesButton), | 745 | label: intl.formatMessage(messages.hideWorkspacesButton), |
726 | value: settings.all.app.hideWorkspacesButton, | 746 | value: settings.all.app.hideWorkspacesButton, |
@@ -828,6 +848,7 @@ class EditSettingsScreen extends Component { | |||
828 | isAdaptableDarkModeEnabled={ | 848 | isAdaptableDarkModeEnabled={ |
829 | this.props.stores.settings.app.adaptableDarkMode | 849 | this.props.stores.settings.app.adaptableDarkMode |
830 | } | 850 | } |
851 | isUseGrayscaleServicesEnabled={this.props.stores.settings.app.useGrayscaleServices} | ||
831 | isSplitModeEnabled={this.props.stores.settings.app.splitMode} | 852 | isSplitModeEnabled={this.props.stores.settings.app.splitMode} |
832 | isTodosActivated={this.props.stores.todos.isFeatureEnabledByUser} | 853 | isTodosActivated={this.props.stores.todos.isFeatureEnabledByUser} |
833 | isUsingCustomTodoService={ | 854 | isUsingCustomTodoService={ |