Basic no-wallpaper support

This commit is contained in:
Henry Jameson 2020-12-16 18:25:07 +02:00
parent 674c302350
commit c197756767
13 changed files with 38 additions and 11 deletions

View file

@ -54,13 +54,16 @@ export default {
return this.currentUser.background_image || this.$store.state.instance.background
},
bgStyle () {
return {
'background-image': `url(${this.background})`
}
},
bgAppStyle () {
return {
'--body-background-image': `url(${this.background})`
if (
this.currentUser.background_image ||
(
this.$store.state.instance.background &&
!this.$store.getters.mergedConfig.hideInstanceWallpaper
)
) {
return {
'--body-background-image': `url(${this.background})`
}
}
},
chat () { return this.$store.state.chat.channel.state === 'joined' },