From c57bffb142de45f526d2c8082a1ee4ece05f66d2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 30 Dec 2018 14:12:46 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A2=E3=83=90=E3=82=A4=E3=83=AB=E7=89=88?= =?UTF-8?q?=E3=81=AB=E3=82=82=E8=A8=AD=E5=AE=9A=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/ja-JP.yml | 8 ++++---- src/client/app/desktop/views/components/settings.vue | 8 ++++---- src/client/app/mobile/views/pages/settings.vue | 11 +++++++++++ 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 29bd5da9e..8974976e1 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -128,6 +128,10 @@ common: reduce-motion: "UIの動きを減らす" this-setting-is-this-device-only: "このデバイスのみ" use-os-default-emojis: "OS標準の絵文字を使用" + line-width: "線の太さ" + line-width-thin: "細い" + line-width-normal: "普通" + line-width-thick: "太い" do-not-use-in-production: "これは開発ビルドです。本番環境で使用しないでください。" user-suspended: "このユーザーは凍結されています。" @@ -878,10 +882,6 @@ desktop/views/components/settings.vue: dark-mode: "ダークモード" use-shadow: "UIに影を使用" rounded-corners: "UIの角を丸める" - line-width: "線の太さ" - line-width-thin: "細い" - line-width-normal: "普通" - line-width-thick: "太い" circle-icons: "円形のアイコンを使用" contrasted-acct: "ユーザー名にコントラストを付ける" post-form-on-timeline: "タイムライン上部に投稿フォームを表示する" diff --git a/src/client/app/desktop/views/components/settings.vue b/src/client/app/desktop/views/components/settings.vue index 45367c743..676dfe670 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 87db25721..e37291247 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 }); }