diff options
author | 2019-10-29 20:34:19 +0200 | |
---|---|---|
committer | 2019-10-30 10:11:25 +0200 | |
commit | b0e698520f0be4e054b8f3d1feff694d1ddf1779 (patch) | |
tree | 2bf0abfc7017018e04e9d24f1d9dc7e06895e08f /src/components | |
parent | Update theme information (diff) | |
download | ferdium-app-b0e698520f0be4e054b8f3d1feff694d1ddf1779.tar.gz ferdium-app-b0e698520f0be4e054b8f3d1feff694d1ddf1779.tar.zst ferdium-app-b0e698520f0be4e054b8f3d1feff694d1ddf1779.zip |
Add "adaptable dark mode" checkbox
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/settings/settings/EditSettingsForm.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/settings/settings/EditSettingsForm.js b/src/components/settings/settings/EditSettingsForm.js index 2be5c4ed7..d567a47d1 100644 --- a/src/components/settings/settings/EditSettingsForm.js +++ b/src/components/settings/settings/EditSettingsForm.js | |||
@@ -12,6 +12,7 @@ import PremiumFeatureContainer from '../../ui/PremiumFeatureContainer'; | |||
12 | import Input from '../../ui/Input'; | 12 | import Input from '../../ui/Input'; |
13 | 13 | ||
14 | import { FRANZ_TRANSLATION } from '../../../config'; | 14 | import { FRANZ_TRANSLATION } from '../../../config'; |
15 | import { isMac } from '../../../environment'; | ||
15 | 16 | ||
16 | function escapeHtml(unsafe) { | 17 | function escapeHtml(unsafe) { |
17 | return unsafe | 18 | return unsafe |
@@ -383,8 +384,10 @@ export default @observer class EditSettingsForm extends Component { | |||
383 | <Toggle field={form.$('showDisabledServices')} /> | 384 | <Toggle field={form.$('showDisabledServices')} /> |
384 | <Toggle field={form.$('showMessageBadgeWhenMuted')} /> | 385 | <Toggle field={form.$('showMessageBadgeWhenMuted')} /> |
385 | <Toggle field={form.$('darkMode')} /> | 386 | <Toggle field={form.$('darkMode')} /> |
387 | {isMac && <Toggle field={form.$('adaptableDarkMode')} disabled={isDarkmodeEnabled} />} | ||
386 | {isDarkmodeEnabled && ( | 388 | {isDarkmodeEnabled && ( |
387 | <> | 389 | <> |
390 | <Toggle field={form.$('adaptableDarkMode')} /> | ||
388 | <Toggle field={form.$('universalDarkMode')} /> | 391 | <Toggle field={form.$('universalDarkMode')} /> |
389 | <p | 392 | <p |
390 | className="settings__message" | 393 | className="settings__message" |