diff options
author | 2022-06-24 15:29:40 +0100 | |
---|---|---|
committer | 2022-06-24 22:26:52 +0530 | |
commit | 68d4a04a02335493e35545d8d5f43680b64cc9a2 (patch) | |
tree | 785cdb991c3067fef95c648319af8e2104b949fe /src/containers/settings | |
parent | fix: disable todos feature by default (#355) (diff) | |
download | ferdium-app-68d4a04a02335493e35545d8d5f43680b64cc9a2.tar.gz ferdium-app-68d4a04a02335493e35545d8d5f43680b64cc9a2.tar.zst ferdium-app-68d4a04a02335493e35545d8d5f43680b64cc9a2.zip |
Add split mode toggle to side bar and hide collapse buttonv6.0.0-nightly-alphrag.57.7
Diffstat (limited to 'src/containers/settings')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/containers/settings/EditSettingsScreen.js b/src/containers/settings/EditSettingsScreen.js index 898a2f482..867db6f08 100644 --- a/src/containers/settings/EditSettingsScreen.js +++ b/src/containers/settings/EditSettingsScreen.js | |||
@@ -206,10 +206,18 @@ const messages = defineMessages({ | |||
206 | id: 'settings.app.form.useVerticalStyle', | 206 | id: 'settings.app.form.useVerticalStyle', |
207 | defaultMessage: 'Use horizontal style', | 207 | defaultMessage: 'Use horizontal style', |
208 | }, | 208 | }, |
209 | hideCollapseButton: { | ||
210 | id: 'settings.app.form.hideCollapseButton', | ||
211 | defaultMessage: 'Hide Collapse button', | ||
212 | }, | ||
209 | hideRecipesButton: { | 213 | hideRecipesButton: { |
210 | id: 'settings.app.form.hideRecipesButton', | 214 | id: 'settings.app.form.hideRecipesButton', |
211 | defaultMessage: 'Hide Recipes button', | 215 | defaultMessage: 'Hide Recipes button', |
212 | }, | 216 | }, |
217 | hideSplitModeButton: { | ||
218 | id: 'settings.app.form.hideSplitModeButton', | ||
219 | defaultMessage: 'Hide Split Mode button', | ||
220 | }, | ||
213 | useGrayscaleServices: { | 221 | useGrayscaleServices: { |
214 | id: 'settings.app.form.useGrayscaleServices', | 222 | id: 'settings.app.form.useGrayscaleServices', |
215 | defaultMessage: 'Use grayscale services', | 223 | defaultMessage: 'Use grayscale services', |
@@ -369,7 +377,9 @@ class EditSettingsScreen extends Component { | |||
369 | settingsData.enableLongPressServiceHint, | 377 | settingsData.enableLongPressServiceHint, |
370 | ), | 378 | ), |
371 | useVerticalStyle: Boolean(settingsData.useVerticalStyle), | 379 | useVerticalStyle: Boolean(settingsData.useVerticalStyle), |
380 | hideCollapseButton: Boolean(settingsData.hideCollapseButton), | ||
372 | hideRecipesButton: Boolean(settingsData.hideRecipesButton), | 381 | hideRecipesButton: Boolean(settingsData.hideRecipesButton), |
382 | hideSplitModeButton: Boolean(settingsData.hideSplitModeButton), | ||
373 | useGrayscaleServices: Boolean(settingsData.useGrayscaleServices), | 383 | useGrayscaleServices: Boolean(settingsData.useGrayscaleServices), |
374 | grayscaleServicesDim: Number(settingsData.grayscaleServicesDim), | 384 | grayscaleServicesDim: Number(settingsData.grayscaleServicesDim), |
375 | hideWorkspacesButton: Boolean(settingsData.hideWorkspacesButton), | 385 | hideWorkspacesButton: Boolean(settingsData.hideWorkspacesButton), |
@@ -733,11 +743,21 @@ class EditSettingsScreen extends Component { | |||
733 | value: settings.all.app.useVerticalStyle, | 743 | value: settings.all.app.useVerticalStyle, |
734 | default: DEFAULT_APP_SETTINGS.useVerticalStyle, | 744 | default: DEFAULT_APP_SETTINGS.useVerticalStyle, |
735 | }, | 745 | }, |
746 | hideCollapseButton: { | ||
747 | label: intl.formatMessage(messages.hideCollapseButton), | ||
748 | value: settings.all.app.hideCollapseButton, | ||
749 | default: DEFAULT_APP_SETTINGS.hideCollapseButton, | ||
750 | }, | ||
736 | hideRecipesButton: { | 751 | hideRecipesButton: { |
737 | label: intl.formatMessage(messages.hideRecipesButton), | 752 | label: intl.formatMessage(messages.hideRecipesButton), |
738 | value: settings.all.app.hideRecipesButton, | 753 | value: settings.all.app.hideRecipesButton, |
739 | default: DEFAULT_APP_SETTINGS.hideRecipesButton, | 754 | default: DEFAULT_APP_SETTINGS.hideRecipesButton, |
740 | }, | 755 | }, |
756 | hideSplitModeButton: { | ||
757 | label: intl.formatMessage(messages.hideSplitModeButton), | ||
758 | value: settings.all.app.hideSplitModeButton, | ||
759 | default: DEFAULT_APP_SETTINGS.hideSplitModeButton, | ||
760 | }, | ||
741 | useGrayscaleServices: { | 761 | useGrayscaleServices: { |
742 | label: intl.formatMessage(messages.useGrayscaleServices), | 762 | label: intl.formatMessage(messages.useGrayscaleServices), |
743 | value: settings.all.app.useGrayscaleServices, | 763 | value: settings.all.app.useGrayscaleServices, |