Fixed jukebox to match style

This commit is contained in:
Ben Arc
2021-06-30 13:38:10 +01:00
parent eac125a28e
commit 55c564fe21
5 changed files with 29 additions and 29 deletions
+8 -6
View File
@@ -307,14 +307,13 @@ window.windowMixin = {
extensions: [],
user: null,
wallet: null,
payments: [],
payments: []
}
}
},
methods: {
changeColor: function(newValue) {
changeColor: function (newValue) {
document.body.setAttribute('data-theme', newValue)
console.log(document.body.getAttribute('data-theme'))
console.log(newValue)
@@ -336,8 +335,11 @@ window.windowMixin = {
},
created: function () {
this.$q.dark.set(this.$q.localStorage.getItem('lnbits.darkMode'))
if (this.$q.localStorage.getItem('lnbits.theme')){
document.body.setAttribute('data-theme', this.$q.localStorage.getItem('lnbits.theme'))
if (this.$q.localStorage.getItem('lnbits.theme')) {
document.body.setAttribute(
'data-theme',
this.$q.localStorage.getItem('lnbits.theme')
)
}
if (window.user) {
this.g.user = Object.freeze(window.LNbits.map.user(window.user))
+3 -2
View File
@@ -25,7 +25,7 @@ $themes: (
),
'flamingo': (
primary: #c64242,
secondary: #ff7474,
secondary: #cf5656,
dark: #e75480,
info: #ec7599,
marginal-bg: #e75480,
@@ -55,7 +55,8 @@ $themes: (
}
}
@if $name == 'info' {
[data-theme='#{$theme}'] .q-card--dark {
[data-theme='#{$theme}'] .q-card--dark,
[data-theme='#{$theme}'] .q-stepper--dark {
background: $color !important;
}
}