diff --git a/lnbits/extensions/copilot/templates/copilot/index.html b/lnbits/extensions/copilot/templates/copilot/index.html index accebff07..0e652e71a 100644 --- a/lnbits/extensions/copilot/templates/copilot/index.html +++ b/lnbits/extensions/copilot/templates/copilot/index.html @@ -8,11 +8,6 @@ New copilot instance - @@ -465,16 +460,7 @@ data: null }, options: ['bitcoin', 'confetti', 'rocket', 'face', 'martijn', 'rick'], - currencyOptions: ['None', 'btcusd', 'btceur', 'btcgbp'], - theOptions: ['classic', 'dark', 'light', 'green'], - theme: '' - } - }, - watch: { - theme(newValue) { - document.body.setAttribute('data-theme', newValue) - console.log(document.body.getAttribute('data-theme')) - console.log(newValue) + currencyOptions: ['None', 'btcusd', 'btceur', 'btcgbp'] } }, methods: { diff --git a/lnbits/static/js/base.js b/lnbits/static/js/base.js index cebd5cfc4..863d022ce 100644 --- a/lnbits/static/js/base.js +++ b/lnbits/static/js/base.js @@ -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) diff --git a/lnbits/static/scss/base.scss b/lnbits/static/scss/base.scss index 443e6b47c..76d0fbf9e 100644 --- a/lnbits/static/scss/base.scss +++ b/lnbits/static/scss/base.scss @@ -7,22 +7,6 @@ $themes: ( marginal-bg: #1f2234, marginal-text: #fff ), - 'dark': ( - primary: #3b2169, - secondary: #551561, - dark: #020203, - info: #15161d, - marginal-bg: #020203, - marginal-text: #fff - ), - 'light': ( - primary: #703ec7, - secondary: #a32cb8, - dark: #4c4c74, - info: #555974, - marginal-bg: #4c4c74, - marginal-text: #fff - ), 'green': ( primary: #3ab77d, secondary: #27b065, @@ -30,6 +14,14 @@ $themes: ( info: #334642, marginal-bg: #1f342b, marginal-text: #fff + ), + 'orange': ( + primary: #b7763a, + secondary: #b07927, + dark: #34291f, + info: #463f33, + marginal-bg: #342a1f, + marginal-text: rgb(255, 255, 255) ) ); diff --git a/lnbits/templates/base.html b/lnbits/templates/base.html index 6ac09382a..0842ca0ac 100644 --- a/lnbits/templates/base.html +++ b/lnbits/templates/base.html @@ -47,13 +47,51 @@ > {% endblock %} + +
+ + + + +
+
+ Toggle Dark Mode