summaryrefslogtreecommitdiff
path: root/src/client/app/common
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-05-20 17:37:30 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-05-20 17:37:30 +0900
commitf6449a7f3269a31c1f44fe2b7a3783f1c14e5803 (patch)
tree916161a787e8f122ba754afbe23a6f48d1ed2340 /src/client/app/common
parentMerge branch 'master' of https://github.com/syuilo/misskey (diff)
downloadmisskey-f6449a7f3269a31c1f44fe2b7a3783f1c14e5803.tar.gz
misskey-f6449a7f3269a31c1f44fe2b7a3783f1c14e5803.tar.bz2
misskey-f6449a7f3269a31c1f44fe2b7a3783f1c14e5803.zip
Improve mobile settings
Diffstat (limited to 'src/client/app/common')
-rw-r--r--src/client/app/common/views/components/avatar.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/app/common/views/components/avatar.vue b/src/client/app/common/views/components/avatar.vue
index 8ec359e83c..8cc72fb518 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
};
}