diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-05-20 17:37:30 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-05-20 17:37:30 +0900 |
| commit | f6449a7f3269a31c1f44fe2b7a3783f1c14e5803 (patch) | |
| tree | 916161a787e8f122ba754afbe23a6f48d1ed2340 /src/client/app/common | |
| parent | Merge branch 'master' of https://github.com/syuilo/misskey (diff) | |
| download | misskey-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.vue | 5 |
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 }; } |