diff --git a/locales/ja.yml b/locales/ja.yml index 3f3d3b6d7..1797f534e 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -810,6 +810,7 @@ mobile/views/pages/settings/settings.profile.vue: title: "プロフィール" will-be-published: "これらのプロフィールは公開されます。" name: "名前" + account: "アカウント" location: "場所" description: "自己紹介" birthday: "誕生日" @@ -837,6 +838,7 @@ mobile/views/pages/settings.vue: specify-language: "言語を指定" design: "デザインと表示" dark-mode: "ダークモード" + i-am-under-limited-internet: "私は通信を制限されている" circle-icons: "円形のアイコンを使用" timeline: "タイムライン" show-reply-target: "リプライ先を表示する" diff --git a/src/client/app/common/views/components/avatar.vue b/src/client/app/common/views/components/avatar.vue index 8ec359e83..8cc72fb51 100644 --- a/src/client/app/common/views/components/avatar.vue +++ b/src/client/app/common/views/components/avatar.vue @@ -21,10 +21,13 @@ export default Vue.extend({ } }, computed: { + lightmode(): boolean { + return localStorage.getItem('lightmode') == 'true'; + }, style(): any { return { backgroundColor: this.user.avatarColor && this.user.avatarColor.length == 3 ? `rgb(${ this.user.avatarColor.join(',') })` : null, - backgroundImage: `url(${ this.user.avatarUrl }?thumbnail)`, + backgroundImage: this.lightmode ? null : `url(${ this.user.avatarUrl }?thumbnail)`, borderRadius: (this as any).clientSettings.circleIcons ? '100%' : null }; } diff --git a/src/client/app/mobile/views/components/media-image.vue b/src/client/app/mobile/views/components/media-image.vue index 9e0f8e5f7..d4ee0c66a 100644 --- a/src/client/app/mobile/views/components/media-image.vue +++ b/src/client/app/mobile/views/components/media-image.vue @@ -16,10 +16,13 @@ export default Vue.extend({ } }, computed: { + lightmode(): boolean { + return localStorage.getItem('lightmode') == 'true'; + }, style(): any { return { 'background-color': this.image.properties.avgColor && this.image.properties.avgColor.length == 3 ? `rgb(${this.image.properties.avgColor.join(',')})` : 'transparent', - 'background-image': this.raw ? `url(${this.image.url})` : `url(${this.image.url}?thumbnail&size=512)` + 'background-image': this.lightmode ? null : this.raw ? `url(${this.image.url})` : `url(${this.image.url}?thumbnail&size=512)` }; } } diff --git a/src/client/app/mobile/views/pages/settings.vue b/src/client/app/mobile/views/pages/settings.vue index 5143a96dd..307593e21 100644 --- a/src/client/app/mobile/views/pages/settings.vue +++ b/src/client/app/mobile/views/pages/settings.vue @@ -51,6 +51,10 @@
%i18n:@disable-via-mobile%
+ +
+ %i18n:@i-am-under-limited-internet% +
@@ -134,6 +138,7 @@ export default Vue.extend({ version, codename, darkmode: localStorage.getItem('darkmode') == 'true', + lightmode: localStorage.getItem('lightmode') == 'true', lang: localStorage.getItem('lang') || '', latestVersion: undefined, checkingForUpdate: false @@ -150,6 +155,11 @@ export default Vue.extend({ darkmode() { (this as any)._updateDarkmode_(this.darkmode); }, + + lightmode() { + localStorage.setItem('lightmode', this.lightmode); + }, + lang() { localStorage.setItem('lang', this.lang); } diff --git a/src/client/app/mobile/views/pages/settings/settings.profile.vue b/src/client/app/mobile/views/pages/settings/settings.profile.vue index 0315fc56b..8d98e11a8 100644 --- a/src/client/app/mobile/views/pages/settings/settings.profile.vue +++ b/src/client/app/mobile/views/pages/settings/settings.profile.vue @@ -10,6 +10,13 @@ + + + @ + + @{{ host }} + + %fa:map-marker-alt% @@ -54,12 +61,14 @@