Improve mobile settings

This commit is contained in:
syuilo
2018-05-20 17:37:30 +09:00
parent 42849da497
commit f6449a7f32
6 changed files with 34 additions and 3 deletions

View File

@ -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
};
}