BG image/gradient to light fix (#2945)

This commit is contained in:
Arc 2025-02-10 20:37:08 +00:00 committed by GitHub
parent 4a640dc123
commit 61e8d0059b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

File diff suppressed because one or more lines are too long

View file

@ -622,9 +622,11 @@ window.windowMixin = {
toggleDarkMode() {
this.$q.dark.toggle()
this.$q.localStorage.set('lnbits.darkMode', this.$q.dark.isActive)
if (this.gradientChoice && !this.$q.dark.isActive) {
if (!this.$q.dark.isActive) {
this.bgimageSelection = 'null'
this.$q.localStorage.set('lnbits.gradientBg', false)
this.$q.localStorage.remove(`lnbits.backgroundImage`)
this.$q.localStorage.set('lnbits.backgroundImage', 'null')
window.location.hash = '#theme'
window.location.reload()
}
},