diff options
author | 2018-07-05 02:37:43 -0300 | |
---|---|---|
committer | 2018-07-05 02:37:43 -0300 | |
commit | 25c6cbd29aff90f694d72afe28ab56b0113fb16a (patch) | |
tree | 9907623b3a7b835e58b895d08b62c5339b8e0376 /src/containers/settings/EditSettingsScreen.js | |
parent | 5.0.0 beta.18 (diff) | |
download | ferdium-app-25c6cbd29aff90f694d72afe28ab56b0113fb16a.tar.gz ferdium-app-25c6cbd29aff90f694d72afe28ab56b0113fb16a.tar.zst ferdium-app-25c6cbd29aff90f694d72afe28ab56b0113fb16a.zip |
Update stylesheets and added darkMode variable and toggle.
Diffstat (limited to 'src/containers/settings/EditSettingsScreen.js')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.js | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/containers/settings/EditSettingsScreen.js b/src/containers/settings/EditSettingsScreen.js index 018ce663f..4e77a9c97 100644 --- a/src/containers/settings/EditSettingsScreen.js +++ b/src/containers/settings/EditSettingsScreen.js | |||
@@ -39,6 +39,10 @@ const messages = defineMessages({ | |||
39 | id: 'settings.app.form.language', | 39 | id: 'settings.app.form.language', |
40 | defaultMessage: '!!!Language', | 40 | defaultMessage: '!!!Language', |
41 | }, | 41 | }, |
42 | darkMode: { | ||
43 | id: 'settings.app.form.darkMode', | ||
44 | defaultMessage: '!!!Dark Mode', | ||
45 | }, | ||
42 | showDisabledServices: { | 46 | showDisabledServices: { |
43 | id: 'settings.app.form.showDisabledServices', | 47 | id: 'settings.app.form.showDisabledServices', |
44 | defaultMessage: '!!!Display disabled services tabs', | 48 | defaultMessage: '!!!Display disabled services tabs', |
@@ -84,17 +88,18 @@ export default class EditSettingsScreen extends Component { | |||
84 | }); | 88 | }); |
85 | 89 | ||
86 | settings.update({ | 90 | settings.update({ |
87 | type: 'app', | 91 | type: "app", |
88 | data: { | 92 | data: { |
89 | runInBackground: settingsData.runInBackground, | 93 | runInBackground: settingsData.runInBackground, |
90 | enableSystemTray: settingsData.enableSystemTray, | 94 | enableSystemTray: settingsData.enableSystemTray, |
91 | minimizeToSystemTray: settingsData.minimizeToSystemTray, | 95 | minimizeToSystemTray: settingsData.minimizeToSystemTray, |
92 | enableGPUAcceleration: settingsData.enableGPUAcceleration, | 96 | enableGPUAcceleration: settingsData.enableGPUAcceleration, |
93 | showDisabledServices: settingsData.showDisabledServices, | 97 | showDisabledServices: settingsData.showDisabledServices, |
98 | darkMode: settingsData.darkMode, | ||
94 | showMessageBadgeWhenMuted: settingsData.showMessageBadgeWhenMuted, | 99 | showMessageBadgeWhenMuted: settingsData.showMessageBadgeWhenMuted, |
95 | enableSpellchecking: settingsData.enableSpellchecking, | 100 | enableSpellchecking: settingsData.enableSpellchecking, |
96 | beta: settingsData.beta, // we need this info in the main process as well | 101 | beta: settingsData.beta, // we need this info in the main process as well |
97 | locale: settingsData.locale, // we need this info in the main process as well | 102 | locale: settingsData.locale // we need this info in the main process as well |
98 | }, | 103 | }, |
99 | }); | 104 | }); |
100 | 105 | ||
@@ -160,6 +165,11 @@ export default class EditSettingsScreen extends Component { | |||
160 | value: settings.all.app.enableSpellchecking, | 165 | value: settings.all.app.enableSpellchecking, |
161 | default: DEFAULT_APP_SETTINGS.enableSpellchecking, | 166 | default: DEFAULT_APP_SETTINGS.enableSpellchecking, |
162 | }, | 167 | }, |
168 | darkMode: { | ||
169 | label: intl.formatMessage(messages.darkMode), | ||
170 | value: settings.all.app.darkMode, | ||
171 | default: DEFAULT_APP_SETTINGS.darkMode, | ||
172 | }, | ||
163 | enableGPUAcceleration: { | 173 | enableGPUAcceleration: { |
164 | label: intl.formatMessage(messages.enableGPUAcceleration), | 174 | label: intl.formatMessage(messages.enableGPUAcceleration), |
165 | value: settings.all.app.enableGPUAcceleration, | 175 | value: settings.all.app.enableGPUAcceleration, |