diff options
author | 2021-10-09 21:25:20 +0530 | |
---|---|---|
committer | 2021-10-09 21:25:20 +0530 | |
commit | c4b6f6296ede86289ee1c814f5e9d19ac8be229d (patch) | |
tree | 059fe86cc726bc6b489d3f42a74525da6c9ee828 /src/containers/settings/EditSettingsScreen.js | |
parent | 5.6.3-nightly.28 [skip ci] (diff) | |
download | ferdium-app-c4b6f6296ede86289ee1c814f5e9d19ac8be229d.tar.gz ferdium-app-c4b6f6296ede86289ee1c814f5e9d19ac8be229d.tar.zst ferdium-app-c4b6f6296ede86289ee1c814f5e9d19ac8be229d.zip |
Control the long-press hint for service icon via a preference (#2043)
Co-authored-by: mhatvan <markus_hatvan@aon.at>
Diffstat (limited to 'src/containers/settings/EditSettingsScreen.js')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/containers/settings/EditSettingsScreen.js b/src/containers/settings/EditSettingsScreen.js index 8c37d2692..889f3f87f 100644 --- a/src/containers/settings/EditSettingsScreen.js +++ b/src/containers/settings/EditSettingsScreen.js | |||
@@ -177,6 +177,10 @@ const messages = defineMessages({ | |||
177 | id: 'settings.app.form.iconSize', | 177 | id: 'settings.app.form.iconSize', |
178 | defaultMessage: 'Service icon size', | 178 | defaultMessage: 'Service icon size', |
179 | }, | 179 | }, |
180 | enableLongPressServiceHint: { | ||
181 | id: 'settings.app.form.enableLongPressServiceHint', | ||
182 | defaultMessage: 'Enable service shortcut hint on long press', | ||
183 | }, | ||
180 | useVerticalStyle: { | 184 | useVerticalStyle: { |
181 | id: 'settings.app.form.useVerticalStyle', | 185 | id: 'settings.app.form.useVerticalStyle', |
182 | defaultMessage: 'Use horizontal style', | 186 | defaultMessage: 'Use horizontal style', |
@@ -301,6 +305,7 @@ class EditSettingsScreen extends Component { | |||
301 | splitMode: Boolean(settingsData.splitMode), | 305 | splitMode: Boolean(settingsData.splitMode), |
302 | serviceRibbonWidth: Number(settingsData.serviceRibbonWidth), | 306 | serviceRibbonWidth: Number(settingsData.serviceRibbonWidth), |
303 | iconSize: Number(settingsData.iconSize), | 307 | iconSize: Number(settingsData.iconSize), |
308 | enableLongPressServiceHint: Boolean(settingsData.enableLongPressServiceHint), | ||
304 | useVerticalStyle: Boolean(settingsData.useVerticalStyle), | 309 | useVerticalStyle: Boolean(settingsData.useVerticalStyle), |
305 | alwaysShowWorkspaces: Boolean(settingsData.alwaysShowWorkspaces), | 310 | alwaysShowWorkspaces: Boolean(settingsData.alwaysShowWorkspaces), |
306 | accentColor: settingsData.accentColor, | 311 | accentColor: settingsData.accentColor, |
@@ -608,6 +613,11 @@ class EditSettingsScreen extends Component { | |||
608 | default: DEFAULT_APP_SETTINGS.iconSize, | 613 | default: DEFAULT_APP_SETTINGS.iconSize, |
609 | options: iconSizes, | 614 | options: iconSizes, |
610 | }, | 615 | }, |
616 | enableLongPressServiceHint: { | ||
617 | label: intl.formatMessage(messages.enableLongPressServiceHint), | ||
618 | value: settings.all.app.enableLongPressServiceHint, | ||
619 | default: DEFAULT_APP_SETTINGS.enableLongPressServiceHint, | ||
620 | }, | ||
611 | useVerticalStyle: { | 621 | useVerticalStyle: { |
612 | label: intl.formatMessage(messages.useVerticalStyle), | 622 | label: intl.formatMessage(messages.useVerticalStyle), |
613 | value: settings.all.app.useVerticalStyle, | 623 | value: settings.all.app.useVerticalStyle, |