summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-12-30 14:12:46 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-12-30 14:12:46 +0900
commitc57bffb142de45f526d2c8082a1ee4ece05f66d2 (patch)
tree5394748c0b3a694229c93ddfe1ccaacb41bba71e /src/client
parent:art: (diff)
downloadmisskey-c57bffb142de45f526d2c8082a1ee4ece05f66d2.tar.gz
misskey-c57bffb142de45f526d2c8082a1ee4ece05f66d2.tar.bz2
misskey-c57bffb142de45f526d2c8082a1ee4ece05f66d2.zip
モバイル版にも設定を追加
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/desktop/views/components/settings.vue8
-rw-r--r--src/client/app/mobile/views/pages/settings.vue11
2 files changed, 15 insertions, 4 deletions
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 @@
<ui-switch v-model="roundedCorners">{{ $t('rounded-corners') }}</ui-switch>
<ui-switch v-model="circleIcons">{{ $t('circle-icons') }}</ui-switch>
<section>
- <header>{{ $t('line-width') }}</header>
- <ui-radio v-model="lineWidth" :value="0.5">{{ $t('line-width-thin') }}</ui-radio>
- <ui-radio v-model="lineWidth" :value="1">{{ $t('line-width-normal') }}</ui-radio>
- <ui-radio v-model="lineWidth" :value="2">{{ $t('line-width-thick') }}</ui-radio>
+ <header>{{ $t('@.line-width') }}</header>
+ <ui-radio v-model="lineWidth" :value="0.5">{{ $t('@.line-width-thin') }}</ui-radio>
+ <ui-radio v-model="lineWidth" :value="1">{{ $t('@.line-width-normal') }}</ui-radio>
+ <ui-radio v-model="lineWidth" :value="2">{{ $t('@.line-width-thick') }}</ui-radio>
</section>
<ui-switch v-model="reduceMotion">{{ $t('@.reduce-motion') }}</ui-switch>
<ui-switch v-model="contrastedAcct">{{ $t('contrasted-acct') }}</ui-switch>
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 @@
<section>
<ui-switch v-model="darkmode">{{ $t('dark-mode') }}</ui-switch>
<ui-switch v-model="circleIcons">{{ $t('circle-icons') }}</ui-switch>
+ <section>
+ <header>{{ $t('@.line-width') }}</header>
+ <ui-radio v-model="lineWidth" :value="0.5">{{ $t('@.line-width-thin') }}</ui-radio>
+ <ui-radio v-model="lineWidth" :value="1">{{ $t('@.line-width-normal') }}</ui-radio>
+ <ui-radio v-model="lineWidth" :value="2">{{ $t('@.line-width-thick') }}</ui-radio>
+ </section>
<ui-switch v-model="reduceMotion">{{ $t('@.reduce-motion') }} ({{ $t('@.this-setting-is-this-device-only') }})</ui-switch>
<ui-switch v-model="contrastedAcct">{{ $t('contrasted-acct') }}</ui-switch>
<ui-switch v-model="showFullAcct">{{ $t('@.show-full-acct') }}</ui-switch>
@@ -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 }); }