Working, but need to store selection in localstorage

This commit is contained in:
Ben Arc
2021-06-29 09:39:12 +01:00
parent b0c0b9f851
commit 78605982fc
4 changed files with 54 additions and 32 deletions
+6
View File
@@ -311,7 +311,13 @@ window.windowMixin = {
}
}
},
methods: {
changeColor: function(newValue) {
document.body.setAttribute('data-theme', newValue)
console.log(document.body.getAttribute('data-theme'))
console.log(newValue)
},
toggleDarkMode: function () {
this.$q.dark.toggle()
this.$q.localStorage.set('lnbits.darkMode', this.$q.dark.isActive)