diff options
author | 2021-11-12 23:52:58 +0100 | |
---|---|---|
committer | 2021-11-13 04:22:58 +0530 | |
commit | ad17ec5ccad3ceffd383f228d4529438b5a3b9a6 (patch) | |
tree | f8cb939e8a1ae8d24126d37dfcd7e4b00c85eba0 /src/containers/settings | |
parent | New Crowdin updates (#2219) (diff) | |
download | ferdium-app-ad17ec5ccad3ceffd383f228d4529438b5a3b9a6.tar.gz ferdium-app-ad17ec5ccad3ceffd383f228d4529438b5a3b9a6.tar.zst ferdium-app-ad17ec5ccad3ceffd383f228d4529438b5a3b9a6.zip |
Adjust number of columns for Split Mode (#2208)
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'src/containers/settings')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/containers/settings/EditSettingsScreen.js b/src/containers/settings/EditSettingsScreen.js index 64f5b2e01..c34a41039 100644 --- a/src/containers/settings/EditSettingsScreen.js +++ b/src/containers/settings/EditSettingsScreen.js | |||
@@ -169,6 +169,10 @@ const messages = defineMessages({ | |||
169 | id: 'settings.app.form.splitMode', | 169 | id: 'settings.app.form.splitMode', |
170 | defaultMessage: 'Enable Split View Mode', | 170 | defaultMessage: 'Enable Split View Mode', |
171 | }, | 171 | }, |
172 | splitColumns: { | ||
173 | id: 'settings.app.form.splitColumns', | ||
174 | defaultMessage: 'Number of columns', | ||
175 | }, | ||
172 | serviceRibbonWidth: { | 176 | serviceRibbonWidth: { |
173 | id: 'settings.app.form.serviceRibbonWidth', | 177 | id: 'settings.app.form.serviceRibbonWidth', |
174 | defaultMessage: 'Sidebar width', | 178 | defaultMessage: 'Sidebar width', |
@@ -310,6 +314,7 @@ class EditSettingsScreen extends Component { | |||
310 | adaptableDarkMode: Boolean(settingsData.adaptableDarkMode), | 314 | adaptableDarkMode: Boolean(settingsData.adaptableDarkMode), |
311 | universalDarkMode: Boolean(settingsData.universalDarkMode), | 315 | universalDarkMode: Boolean(settingsData.universalDarkMode), |
312 | splitMode: Boolean(settingsData.splitMode), | 316 | splitMode: Boolean(settingsData.splitMode), |
317 | splitColumns: Number(settingsData.splitColumns), | ||
313 | serviceRibbonWidth: Number(settingsData.serviceRibbonWidth), | 318 | serviceRibbonWidth: Number(settingsData.serviceRibbonWidth), |
314 | iconSize: Number(settingsData.iconSize), | 319 | iconSize: Number(settingsData.iconSize), |
315 | enableLongPressServiceHint: Boolean( | 320 | enableLongPressServiceHint: Boolean( |
@@ -613,6 +618,11 @@ class EditSettingsScreen extends Component { | |||
613 | value: settings.all.app.splitMode, | 618 | value: settings.all.app.splitMode, |
614 | default: DEFAULT_APP_SETTINGS.splitMode, | 619 | default: DEFAULT_APP_SETTINGS.splitMode, |
615 | }, | 620 | }, |
621 | splitColumns: { | ||
622 | label: intl.formatMessage(messages.splitColumns), | ||
623 | value: settings.all.app.splitColumns, | ||
624 | default: DEFAULT_APP_SETTINGS.splitColumns, | ||
625 | }, | ||
616 | serviceRibbonWidth: { | 626 | serviceRibbonWidth: { |
617 | label: intl.formatMessage(messages.serviceRibbonWidth), | 627 | label: intl.formatMessage(messages.serviceRibbonWidth), |
618 | value: settings.all.app.serviceRibbonWidth, | 628 | value: settings.all.app.serviceRibbonWidth, |
@@ -725,6 +735,7 @@ class EditSettingsScreen extends Component { | |||
725 | isAdaptableDarkModeEnabled={ | 735 | isAdaptableDarkModeEnabled={ |
726 | this.props.stores.settings.app.adaptableDarkMode | 736 | this.props.stores.settings.app.adaptableDarkMode |
727 | } | 737 | } |
738 | isSplitModeEnabled={this.props.stores.settings.app.splitMode} | ||
728 | isTodosActivated={this.props.stores.todos.isFeatureEnabledByUser} | 739 | isTodosActivated={this.props.stores.todos.isFeatureEnabledByUser} |
729 | isUsingCustomTodoService={ | 740 | isUsingCustomTodoService={ |
730 | this.props.stores.todos.isUsingCustomTodoService | 741 | this.props.stores.todos.isUsingCustomTodoService |