From 2b50364ab4f94c1259fb5b5b2df74f5b2e654a90 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 7 Sep 2018 05:45:13 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A6=E3=83=BC=E3=82=B6=E3=83=BC=E5=90=8D?= =?UTF-8?q?=E3=81=AB=E3=82=B3=E3=83=B3=E3=83=88=E3=83=A9=E3=82=B9=E3=83=88?= =?UTF-8?q?=E3=82=92=E4=BB=98=E3=81=91=E3=82=8B=E3=83=87=E3=82=B6=E3=82=A4?= =?UTF-8?q?=E3=83=B3=E3=81=AE=E3=82=AA=E3=83=B3=E3=82=AA=E3=83=95=E3=82=92?= =?UTF-8?q?=E5=88=87=E3=82=8A=E6=9B=BF=E3=81=88=E3=82=89=E3=82=8C=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/ja-JP.yml | 2 ++ src/client/app/common/views/components/acct.vue | 4 ++-- src/client/app/desktop/views/components/settings.vue | 7 +++++++ src/client/app/mobile/views/pages/settings.vue | 8 ++++++++ src/client/app/store.ts | 1 + 5 files changed, 20 insertions(+), 2 deletions(-) diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index eaf940ed0..668678e0c 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -736,6 +736,7 @@ desktop/views/components/settings.vue: delete-wallpaper: "壁紙を削除" dark-mode: "ダークモード" circle-icons: "円形のアイコンを使用" + contrasted-acct: "ユーザー名にコントラストを付ける" gradient-window-header: "ウィンドウのタイトルバーにグラデーションを使用" post-form-on-timeline: "タイムライン上部に投稿フォームを表示する" suggest-recent-hashtags: "最近のハッシュタグを投稿フォームに表示する" @@ -1349,6 +1350,7 @@ mobile/views/pages/settings.vue: dark-mode: "ダークモード" i-am-under-limited-internet: "私は通信を制限されている" circle-icons: "円形のアイコンを使用" + contrasted-acct: "ユーザー名にコントラストを付ける" timeline: "タイムライン" show-reply-target: "リプライ先を表示する" show-my-renotes: "自分の行ったRenoteを表示する" diff --git a/src/client/app/common/views/components/acct.vue b/src/client/app/common/views/components/acct.vue index 2b5efe609..bd7833f1a 100644 --- a/src/client/app/common/views/components/acct.vue +++ b/src/client/app/common/views/components/acct.vue @@ -1,7 +1,7 @@ @@ -20,6 +20,6 @@ export default Vue.extend({ diff --git a/src/client/app/desktop/views/components/settings.vue b/src/client/app/desktop/views/components/settings.vue index 7d6f1d55f..7cab7ec98 100644 --- a/src/client/app/desktop/views/components/settings.vue +++ b/src/client/app/desktop/views/components/settings.vue @@ -44,6 +44,7 @@ + @@ -376,6 +377,12 @@ export default Vue.extend({ value: v }); }, + onChangeContrastedAcct(v) { + this.$store.dispatch('settings/set', { + key: 'contrastedAcct', + value: v + }); + }, onChangeILikeSushi(v) { this.$store.dispatch('settings/set', { key: 'iLikeSushi', diff --git a/src/client/app/mobile/views/pages/settings.vue b/src/client/app/mobile/views/pages/settings.vue index 4a148dc9d..29fe067a0 100644 --- a/src/client/app/mobile/views/pages/settings.vue +++ b/src/client/app/mobile/views/pages/settings.vue @@ -13,6 +13,7 @@
%i18n:@dark-mode% %i18n:@circle-icons% + %i18n:@contrasted-acct% %i18n:common.i-like-sushi% %i18n:common.disable-animated-mfm% %i18n:common.show-reversi-board-labels% @@ -218,6 +219,13 @@ export default Vue.extend({ }); }, + onChangeContrastedAcct(v) { + this.$store.dispatch('settings/set', { + key: 'contrastedAcct', + value: v + }); + }, + onChangeILikeSushi(v) { this.$store.dispatch('settings/set', { key: 'iLikeSushi', diff --git a/src/client/app/store.ts b/src/client/app/store.ts index 08dd9f992..16ce78ea9 100644 --- a/src/client/app/store.ts +++ b/src/client/app/store.ts @@ -16,6 +16,7 @@ const defaultSettings = { suggestRecentHashtags: true, showClockOnHeader: true, circleIcons: true, + contrastedAcct: true, gradientWindowHeader: false, showReplyTarget: true, showMyRenotes: true,