diff --git a/src/client/app/common/views/components/settings/settings.vue b/src/client/app/common/views/components/settings/settings.vue index 87b93574a..efd780162 100644 --- a/src/client/app/common/views/components/settings/settings.vue +++ b/src/client/app/common/views/components/settings/settings.vue @@ -29,7 +29,6 @@ {{ $t('@._settings.navbar-position-right') }} - {{ $t('@.dark-mode') }} {{ $t('@._settings.use-shadow') }} {{ $t('@._settings.rounded-corners') }} {{ $t('@._settings.circle-icons') }} @@ -314,11 +313,6 @@ export default Vue.extend({ set(value) { this.$store.commit('settings/set', { key: 'keepCw', value }); } }, - darkmode: { - get() { return this.$store.state.device.darkmode; }, - set(value) { this.$store.commit('device/set', { key: 'darkmode', value }); } - }, - navbar: { get() { return this.$store.state.device.navbar; }, set(value) { this.$store.commit('device/set', { key: 'navbar', value }); } diff --git a/src/client/app/common/views/components/settings/theme.vue b/src/client/app/common/views/components/settings/theme.vue index 7d419e3bd..7e3ee4a8e 100644 --- a/src/client/app/common/views/components/settings/theme.vue +++ b/src/client/app/common/views/components/settings/theme.vue @@ -2,6 +2,25 @@ {{ $t('theme') }} + + + + + + + + + + + + + + + + + + + {{ $t('light-theme') }} @@ -195,7 +214,12 @@ export default Vue.extend({ text: tinycolor(typeof this.myThemeText == 'string' ? this.myThemeText : this.myThemeText.rgba).toRgbString() } }; - } + }, + + darkmode: { + get() { return this.$store.state.device.darkmode; }, + set(value) { this.$store.commit('device/set', { key: 'darkmode', value }); } + }, }, watch: { @@ -336,6 +360,216 @@ export default Vue.extend({