From c57bffb142de45f526d2c8082a1ee4ece05f66d2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 30 Dec 2018 14:12:46 +0900 Subject: モバイル版にも設定を追加 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/app/desktop/views/components/settings.vue | 8 ++++---- src/client/app/mobile/views/pages/settings.vue | 11 +++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) (limited to 'src/client') diff --git a/src/client/app/desktop/views/components/settings.vue b/src/client/app/desktop/views/components/settings.vue index 45367c7434..676dfe6707 100644 --- a/src/client/app/desktop/views/components/settings.vue +++ b/src/client/app/desktop/views/components/settings.vue @@ -100,10 +100,10 @@ {{ $t('rounded-corners') }} {{ $t('circle-icons') }}
-
{{ $t('line-width') }}
- {{ $t('line-width-thin') }} - {{ $t('line-width-normal') }} - {{ $t('line-width-thick') }} +
{{ $t('@.line-width') }}
+ {{ $t('@.line-width-thin') }} + {{ $t('@.line-width-normal') }} + {{ $t('@.line-width-thick') }}
{{ $t('@.reduce-motion') }} {{ $t('contrasted-acct') }} diff --git a/src/client/app/mobile/views/pages/settings.vue b/src/client/app/mobile/views/pages/settings.vue index 87db25721a..e372912474 100644 --- a/src/client/app/mobile/views/pages/settings.vue +++ b/src/client/app/mobile/views/pages/settings.vue @@ -15,6 +15,12 @@
{{ $t('dark-mode') }} {{ $t('circle-icons') }} +
+
{{ $t('@.line-width') }}
+ {{ $t('@.line-width-thin') }} + {{ $t('@.line-width-normal') }} + {{ $t('@.line-width-thick') }} +
{{ $t('@.reduce-motion') }} ({{ $t('@.this-setting-is-this-device-only') }}) {{ $t('contrasted-acct') }} {{ $t('@.show-full-acct') }} @@ -260,6 +266,11 @@ export default Vue.extend({ set(value) { this.$store.dispatch('settings/set', { key: 'circleIcons', value }); } }, + lineWidth: { + get() { return this.$store.state.settings.lineWidth; }, + set(value) { this.$store.dispatch('settings/set', { key: 'lineWidth', value }); } + }, + contrastedAcct: { get() { return this.$store.state.settings.contrastedAcct; }, set(value) { this.$store.dispatch('settings/set', { key: 'contrastedAcct', value }); } -- cgit v1.2.3-freya