diff options
author | 2022-05-02 22:47:38 +0100 | |
---|---|---|
committer | 2022-05-02 21:47:38 +0000 | |
commit | ae310e3d07041fbde728ac283842d4ab6665ff9f (patch) | |
tree | b3c51ccb0f6eaf8f9b7f042eb7f691259f8a2ac5 /src/containers/settings | |
parent | 6.0.0-nightly.23 [skip ci] (diff) | |
download | ferdium-app-ae310e3d07041fbde728ac283842d4ab6665ff9f.tar.gz ferdium-app-ae310e3d07041fbde728ac283842d4ab6665ff9f.tar.zst ferdium-app-ae310e3d07041fbde728ac283842d4ab6665ff9f.zip |
Feature: Hide sidebar buttons toggled behind a hamburger menu (#81)
* Reordered the 'Settings' button in sidebar closer to the other buttons being hidden
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'src/containers/settings')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.js | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/containers/settings/EditSettingsScreen.js b/src/containers/settings/EditSettingsScreen.js index c3f2b4415..6f906684e 100644 --- a/src/containers/settings/EditSettingsScreen.js +++ b/src/containers/settings/EditSettingsScreen.js | |||
@@ -201,6 +201,22 @@ const messages = defineMessages({ | |||
201 | id: 'settings.app.form.useVerticalStyle', | 201 | id: 'settings.app.form.useVerticalStyle', |
202 | defaultMessage: 'Use horizontal style', | 202 | defaultMessage: 'Use horizontal style', |
203 | }, | 203 | }, |
204 | hideRecipesButton: { | ||
205 | id: 'settings.app.form.hideRecipesButton', | ||
206 | defaultMessage: 'Hide Recipes button', | ||
207 | }, | ||
208 | hideWorkspacesButton: { | ||
209 | id: 'settings.app.form.hideWorkspacesButton', | ||
210 | defaultMessage: 'Hide Workspace Drawer button', | ||
211 | }, | ||
212 | hideNotificationsButton: { | ||
213 | id: 'settings.app.form.hideNotificationsButton', | ||
214 | defaultMessage: 'Hide Notifications & Sound button', | ||
215 | }, | ||
216 | hideSettingsButton: { | ||
217 | id: 'settings.app.form.hideSettingsButton', | ||
218 | defaultMessage: 'Hide Settings button', | ||
219 | }, | ||
204 | alwaysShowWorkspaces: { | 220 | alwaysShowWorkspaces: { |
205 | id: 'settings.app.form.alwaysShowWorkspaces', | 221 | id: 'settings.app.form.alwaysShowWorkspaces', |
206 | defaultMessage: 'Always show workspace drawer', | 222 | defaultMessage: 'Always show workspace drawer', |
@@ -333,6 +349,10 @@ class EditSettingsScreen extends Component { | |||
333 | settingsData.enableLongPressServiceHint, | 349 | settingsData.enableLongPressServiceHint, |
334 | ), | 350 | ), |
335 | useVerticalStyle: Boolean(settingsData.useVerticalStyle), | 351 | useVerticalStyle: Boolean(settingsData.useVerticalStyle), |
352 | hideRecipesButton: Boolean(settingsData.hideRecipesButton), | ||
353 | hideWorkspacesButton: Boolean(settingsData.hideWorkspacesButton), | ||
354 | hideNotificationsButton: Boolean(settingsData.hideNotificationsButton), | ||
355 | hideSettingsButton: Boolean(settingsData.hideSettingsButton), | ||
336 | alwaysShowWorkspaces: Boolean(settingsData.alwaysShowWorkspaces), | 356 | alwaysShowWorkspaces: Boolean(settingsData.alwaysShowWorkspaces), |
337 | accentColor: settingsData.accentColor, | 357 | accentColor: settingsData.accentColor, |
338 | showMessageBadgeWhenMuted: Boolean( | 358 | showMessageBadgeWhenMuted: Boolean( |
@@ -679,6 +699,26 @@ class EditSettingsScreen extends Component { | |||
679 | value: settings.all.app.useVerticalStyle, | 699 | value: settings.all.app.useVerticalStyle, |
680 | default: DEFAULT_APP_SETTINGS.useVerticalStyle, | 700 | default: DEFAULT_APP_SETTINGS.useVerticalStyle, |
681 | }, | 701 | }, |
702 | hideRecipesButton: { | ||
703 | label: intl.formatMessage(messages.hideRecipesButton), | ||
704 | value: settings.all.app.hideRecipesButton, | ||
705 | default: DEFAULT_APP_SETTINGS.hideRecipesButton, | ||
706 | }, | ||
707 | hideWorkspacesButton: { | ||
708 | label: intl.formatMessage(messages.hideWorkspacesButton), | ||
709 | value: settings.all.app.hideWorkspacesButton, | ||
710 | default: DEFAULT_APP_SETTINGS.hideWorkspacesButton, | ||
711 | }, | ||
712 | hideNotificationsButton: { | ||
713 | label: intl.formatMessage(messages.hideNotificationsButton), | ||
714 | value: settings.all.app.hideNotificationsButton, | ||
715 | default: DEFAULT_APP_SETTINGS.hideNotificationsButton, | ||
716 | }, | ||
717 | hideSettingsButton: { | ||
718 | label: intl.formatMessage(messages.hideSettingsButton), | ||
719 | value: settings.all.app.hideSettingsButton, | ||
720 | default: DEFAULT_APP_SETTINGS.hideSettingsButton, | ||
721 | }, | ||
682 | alwaysShowWorkspaces: { | 722 | alwaysShowWorkspaces: { |
683 | label: intl.formatMessage(messages.alwaysShowWorkspaces), | 723 | label: intl.formatMessage(messages.alwaysShowWorkspaces), |
684 | value: settings.all.app.alwaysShowWorkspaces, | 724 | value: settings.all.app.alwaysShowWorkspaces, |