From 359022713ea70cb4ebe7b82ac39cd70bc732740e Mon Sep 17 00:00:00 2001 From: AlphaX-Projects <77661270+AlphaX-Projects@users.noreply.github.com> Date: Wed, 9 Mar 2022 02:06:28 -0800 Subject: [PATCH] Make it dark --- .../core/components/ChatWelcomePage.js | 4 +- .../group-management/group-management.src.js | 2 + .../chain-messaging/chain-messaging.src.js | 24 +- .../core/messaging/chain-messaging/index.html | 3 +- .../plugins/core/messaging/messaging.src.js | 2 + .../core/messaging/q-chat/q-chat.src.js | 4 +- .../plugins/core/minting/minting-info.src.js | 2 + .../name-registration.src.js | 2 + .../node-management/node-management.src.js | 2 + .../plugins/core/puzzles/puzzles.src.js | 2 + .../plugins/core/qdn/browser/browser.src.js | 2 + .../plugins/core/qdn/publish/index.html | 3 +- .../plugins/core/qdn/publish/publish.src.js | 344 +++++++++--------- .../plugins/core/qdn/websites.src.js | 24 +- .../core/reward-share/reward-share.src.js | 2 + .../plugins/core/send-coin/send-coin.src.js | 2 + .../core/trade-portal/trade-portal.src.js | 3 + .../plugins/core/wallet/wallet-app.src.js | 2 + 18 files changed, 247 insertions(+), 182 deletions(-) diff --git a/qortal-ui-plugins/plugins/core/components/ChatWelcomePage.js b/qortal-ui-plugins/plugins/core/components/ChatWelcomePage.js index ff26a780..38a77eb8 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatWelcomePage.js +++ b/qortal-ui-plugins/plugins/core/components/ChatWelcomePage.js @@ -239,9 +239,11 @@ class ChatWelcomePage extends LitElement { firstUpdated() { + this.changeTheme() + setInterval(() => { this.changeTheme(); - }, 250) + }, 100) const stopKeyEventPropagation = (e) => { e.stopPropagation(); diff --git a/qortal-ui-plugins/plugins/core/group-management/group-management.src.js b/qortal-ui-plugins/plugins/core/group-management/group-management.src.js index a8a2fbd5..76995965 100644 --- a/qortal-ui-plugins/plugins/core/group-management/group-management.src.js +++ b/qortal-ui-plugins/plugins/core/group-management/group-management.src.js @@ -429,6 +429,8 @@ class GroupManagement extends LitElement { firstUpdated() { + this.changeTheme() + setInterval(() => { this.changeTheme(); }, 100) diff --git a/qortal-ui-plugins/plugins/core/messaging/chain-messaging/chain-messaging.src.js b/qortal-ui-plugins/plugins/core/messaging/chain-messaging/chain-messaging.src.js index 3b301e28..c95668ef 100644 --- a/qortal-ui-plugins/plugins/core/messaging/chain-messaging/chain-messaging.src.js +++ b/qortal-ui-plugins/plugins/core/messaging/chain-messaging/chain-messaging.src.js @@ -3,7 +3,8 @@ import { LitElement, html, css } from 'lit' class ChainMessaging extends LitElement { static get properties() { return { - loading: { type: Boolean } + loading: { type: Boolean }, + theme: { type: String, reflect: true } } } @@ -22,7 +23,7 @@ class ChainMessaging extends LitElement { } #chain-messaging-page { - background:#fff; + background: var(--white); } ` @@ -30,18 +31,25 @@ class ChainMessaging extends LitElement { constructor() { super() + this.theme = localStorage.getItem('qortalTheme') ? localStorage.getItem('qortalTheme') : 'light' } render() { return html`
-

Coming Soon!

+

Coming Soon!

` } firstUpdated() { + this.changeTheme() + + setInterval(() => { + this.changeTheme(); + }, 100) + window.addEventListener("contextmenu", (event) => { event.preventDefault(); }); @@ -55,6 +63,16 @@ class ChainMessaging extends LitElement { } } + changeTheme() { + const checkTheme = localStorage.getItem('qortalTheme') + if (checkTheme === 'dark') { + this.theme = 'dark'; + } else { + this.theme = 'light'; + } + document.querySelector('html').setAttribute('theme', this.theme); + } + isEmptyArray(arr) { if (!arr) { return true } return arr.length === 0 diff --git a/qortal-ui-plugins/plugins/core/messaging/chain-messaging/index.html b/qortal-ui-plugins/plugins/core/messaging/chain-messaging/index.html index ff935638..8c089c59 100644 --- a/qortal-ui-plugins/plugins/core/messaging/chain-messaging/index.html +++ b/qortal-ui-plugins/plugins/core/messaging/chain-messaging/index.html @@ -3,6 +3,7 @@ + diff --git a/qortal-ui-plugins/plugins/core/messaging/messaging.src.js b/qortal-ui-plugins/plugins/core/messaging/messaging.src.js index 68ebe567..fa98bf55 100644 --- a/qortal-ui-plugins/plugins/core/messaging/messaging.src.js +++ b/qortal-ui-plugins/plugins/core/messaging/messaging.src.js @@ -136,6 +136,8 @@ class Messaging extends LitElement { firstUpdated() { + this.changeTheme() + setInterval(() => { this.changeTheme(); }, 100) diff --git a/qortal-ui-plugins/plugins/core/messaging/q-chat/q-chat.src.js b/qortal-ui-plugins/plugins/core/messaging/q-chat/q-chat.src.js index 61206236..41b883a7 100644 --- a/qortal-ui-plugins/plugins/core/messaging/q-chat/q-chat.src.js +++ b/qortal-ui-plugins/plugins/core/messaging/q-chat/q-chat.src.js @@ -345,9 +345,11 @@ class Chat extends LitElement { firstUpdated() { + this.changeTheme() + setInterval(() => { this.changeTheme(); - }, 250) + }, 100) const stopKeyEventPropagation = (e) => { e.stopPropagation(); diff --git a/qortal-ui-plugins/plugins/core/minting/minting-info.src.js b/qortal-ui-plugins/plugins/core/minting/minting-info.src.js index ee8784bf..1a41d45a 100644 --- a/qortal-ui-plugins/plugins/core/minting/minting-info.src.js +++ b/qortal-ui-plugins/plugins/core/minting/minting-info.src.js @@ -358,6 +358,8 @@ class MintingInfo extends LitElement { firstUpdated() { + this.changeTheme() + setInterval(() => { this.changeTheme(); }, 100) diff --git a/qortal-ui-plugins/plugins/core/name-registration/name-registration.src.js b/qortal-ui-plugins/plugins/core/name-registration/name-registration.src.js index acba8ff6..1d3f37f1 100644 --- a/qortal-ui-plugins/plugins/core/name-registration/name-registration.src.js +++ b/qortal-ui-plugins/plugins/core/name-registration/name-registration.src.js @@ -159,6 +159,8 @@ class NameRegistration extends LitElement { firstUpdated() { + this.changeTheme() + setInterval(() => { this.changeTheme(); }, 100) diff --git a/qortal-ui-plugins/plugins/core/node-management/node-management.src.js b/qortal-ui-plugins/plugins/core/node-management/node-management.src.js index 9915a034..d6a4d39b 100644 --- a/qortal-ui-plugins/plugins/core/node-management/node-management.src.js +++ b/qortal-ui-plugins/plugins/core/node-management/node-management.src.js @@ -287,6 +287,8 @@ class NodeManagement extends LitElement { firstUpdated() { + this.changeTheme() + setInterval(() => { this.changeTheme(); }, 100) diff --git a/qortal-ui-plugins/plugins/core/puzzles/puzzles.src.js b/qortal-ui-plugins/plugins/core/puzzles/puzzles.src.js index 6351e370..d218570a 100644 --- a/qortal-ui-plugins/plugins/core/puzzles/puzzles.src.js +++ b/qortal-ui-plugins/plugins/core/puzzles/puzzles.src.js @@ -171,6 +171,8 @@ class Puzzles extends LitElement { firstUpdated() { + this.changeTheme() + setInterval(() => { this.changeTheme(); }, 100) diff --git a/qortal-ui-plugins/plugins/core/qdn/browser/browser.src.js b/qortal-ui-plugins/plugins/core/qdn/browser/browser.src.js index a096aada..7f2a2514 100644 --- a/qortal-ui-plugins/plugins/core/qdn/browser/browser.src.js +++ b/qortal-ui-plugins/plugins/core/qdn/browser/browser.src.js @@ -203,6 +203,8 @@ class WebBrowser extends LitElement { firstUpdated() { + this.changeTheme() + setInterval(() => { this.changeTheme(); }, 100) diff --git a/qortal-ui-plugins/plugins/core/qdn/publish/index.html b/qortal-ui-plugins/plugins/core/qdn/publish/index.html index 41c23a29..318b76a3 100644 --- a/qortal-ui-plugins/plugins/core/qdn/publish/index.html +++ b/qortal-ui-plugins/plugins/core/qdn/publish/index.html @@ -3,6 +3,7 @@ + diff --git a/qortal-ui-plugins/plugins/core/qdn/publish/publish.src.js b/qortal-ui-plugins/plugins/core/qdn/publish/publish.src.js index 3731cdd8..fa0fb592 100644 --- a/qortal-ui-plugins/plugins/core/qdn/publish/publish.src.js +++ b/qortal-ui-plugins/plugins/core/qdn/publish/publish.src.js @@ -33,7 +33,8 @@ class PublishData extends LitElement { successMessage: { type: String }, errorMessage: { type: String }, loading: { type: Boolean }, - btnDisable: { type: Boolean } + btnDisable: { type: Boolean }, + theme: { type: String, reflect: true } } } @@ -47,6 +48,16 @@ class PublishData extends LitElement { --mdc-theme-primary: rgb(3, 169, 244); --mdc-theme-secondary: var(--mdc-theme-primary); --paper-input-container-focus-color: var(--mdc-theme-primary); + --lumo-primary-text-color: rgb(0, 167, 245); + --lumo-primary-color-50pct: rgba(0, 167, 245, 0.5); + --lumo-primary-color-10pct: rgba(0, 167, 245, 0.1); + --lumo-primary-color: hsl(199, 100%, 48%); + --lumo-base-color: var(--white); + --lumo-body-text-color: var(--black); + --lumo-secondary-text-color: var(--sectxt); + --lumo-contrast-60pct: var(--vdicon); + --_lumo-grid-border-color: var(--border); + --_lumo-grid-secondary-border-color: var(--border2); } #publishWrapper paper-button { @@ -68,6 +79,7 @@ class PublishData extends LitElement { .upload-text { display: block; font-size: 14px; + color: var(--black); } .address-bar { @@ -76,7 +88,7 @@ class PublishData extends LitElement { left: 0; right: 0; height: 100px; - background-color: white; + background-color: var(--white); height: 36px; } @@ -86,52 +98,181 @@ class PublishData extends LitElement { ` } + constructor() { + super() + + this.showName = false; + this.showService = false + this.showIdentifier = false + + const urlParams = new URLSearchParams(window.location.search) + this.name = urlParams.get('name') + this.service = urlParams.get('service') + this.identifier = urlParams.get('identifier') + this.category = urlParams.get('category') + this.uploadType = urlParams.get('uploadType') !== "null" ? urlParams.get('uploadType') : "file" + + if (urlParams.get('showName') === "true") { + this.showName = true + } + if (urlParams.get('showService') === "true") { + this.showService = true + } + if (urlParams.get('showIdentifier') === "true") { + this.showIdentifier = true + } + + if (this.identifier != null) { + if (this.identifier === "null" || this.identifier.trim().length == 0) { + this.identifier = null + } + } + + // Default to true so the message doesn't appear and disappear quickly + this.portForwardingEnabled = true + this.names = [] + this.myRegisteredName = '' + this.selectedName = 'invalid' + this.path = '' + this.successMessage = '' + this.generalMessage = '' + this.errorMessage = '' + this.loading = false + this.btnDisable = false + this.theme = localStorage.getItem('qortalTheme') ? localStorage.getItem('qortalTheme') : 'light' + + const fetchNames = () => { + parentEpml.request('apiCall', { + url: `/names/address/${this.selectedAddress.address}?limit=0&reverse=true` + }).then(res => { + + setTimeout(() => { + this.names = res + if (res[0] != null) { + this.myRegisteredName = res[0].name; + } + }, 1) + }) + setTimeout(fetchNames, this.config.user.nodeSettings.pingInterval) + } + + const fetchPeersSummary = () => { + parentEpml.request('apiCall', { + url: `/peers/summary` + }).then(res => { + + setTimeout(() => { + this.portForwardingEnabled = (res.inboundConnections != null && res.inboundConnections > 0); + }, 1) + }) + setTimeout(fetchPeersSummary, this.config.user.nodeSettings.pingInterval) + } + + let configLoaded = false + + parentEpml.ready().then(() => { + parentEpml.subscribe('selected_address', async selectedAddress => { + this.selectedAddress = {} + selectedAddress = JSON.parse(selectedAddress) + if (!selectedAddress || Object.entries(selectedAddress).length === 0) return + this.selectedAddress = selectedAddress + }) + parentEpml.subscribe('config', c => { + if (!configLoaded) { + setTimeout(fetchNames, 1) + setTimeout(fetchPeersSummary, 1) + configLoaded = true + } + this.config = JSON.parse(c) + }) + parentEpml.subscribe('copy_menu_switch', async value => { + + if (value === 'false' && window.getSelection().toString().length !== 0) { + this.clearSelection() + } + }) + }) + } + render() { return html` -
-
-
- this.goBack()} class="address-bar-button">arrow_back_ios Back +
+
+
+ this.goBack()} class="address-bar-button">arrow_back_ios Back +
+ +
+

Publish / Update ${this.category}

+

Note: it is recommended that you set up port forwarding before hosting data, so that it can more easily accessed by peers on the network.

- -
-

Publish / Update ${this.category}

-

Note: it is recommended that you set up port forwarding before hosting data, so that it can more easily accessed by peers on the network.

-
-
- -

- this.selectName(e)} style="min-width: 130px; max-width:100%; width:100%;"> - - ${this.myRegisteredName} - -

- ${this.renderUploadField()} -

- -

-

- -

- -

${this.generalMessage}

-

${this.errorMessage}

-

${this.successMessage}

+
+ +

+ this.selectName(e)} style="min-width: 130px; max-width:100%; width:100%;"> + + ${this.myRegisteredName} + +

+ ${this.renderUploadField()} +

+ +

+

+ +

- ${this.loading ? html` ` : ''} +

${this.generalMessage}

+

${this.errorMessage}

+

${this.successMessage}

-
-
- this.doPublish(e)}>Publish   -
+ ${this.loading ? html` ` : ''} + +
+
+ this.doPublish(e)}>Publish  
- ` +
+ ` + } + + firstUpdated() { + + this.changeTheme() + + setInterval(() => { + this.changeTheme(); + }, 100) + + window.addEventListener('contextmenu', (event) => { + event.preventDefault() + this._textMenu(event) + }) + + window.addEventListener('click', () => { + parentEpml.request('closeCopyTextMenu', null) + }) + + window.onkeyup = (e) => { + if (e.keyCode === 27) { + parentEpml.request('closeCopyTextMenu', null) + } + } + } + + changeTheme() { + const checkTheme = localStorage.getItem('qortalTheme') + if (checkTheme === 'dark') { + this.theme = 'dark'; + } else { + this.theme = 'light'; + } + document.querySelector('html').setAttribute('theme', this.theme); } // Navigation - goBack() { window.history.back(); } @@ -140,13 +281,13 @@ class PublishData extends LitElement { renderUploadField() { if (this.uploadType === "file") { return html`

- +

`; } else if (this.uploadType === "zip") { return html`

Select zip file containing static content:
- +

`; } else { @@ -291,7 +432,6 @@ class PublishData extends LitElement { url: `${uploadDataUrl}?apiKey=${this.getApiKey()}`, body: `${postBody}`, }) - return uploadDataRes } @@ -302,7 +442,6 @@ class PublishData extends LitElement { url: `/transactions/convert`, body: `${transactionBytesBase58}`, }) - return convertedBytes } @@ -345,20 +484,11 @@ class PublishData extends LitElement { else { myResponse = response } - return myResponse } - validate() } - - // Helper Functions (Re-Used in Most part of the UI ) - - textColor(color) { - return color == 'light' ? 'rgba(255,255,255,0.7)' : 'rgba(0,0,0,0.87)' - } - _textMenu(event) { const getSelectedText = () => { var text = '' @@ -380,123 +510,9 @@ class PublishData extends LitElement { parentEpml.request('openCopyTextMenu', textMenuObject) } } - checkSelectedTextAndShowMenu() } - constructor() { - super() - - this.showName = false; - this.showService = false - this.showIdentifier = false - - const urlParams = new URLSearchParams(window.location.search) - this.name = urlParams.get('name') - this.service = urlParams.get('service') - this.identifier = urlParams.get('identifier') - this.category = urlParams.get('category') - this.uploadType = urlParams.get('uploadType') !== "null" ? urlParams.get('uploadType') : "file" - - if (urlParams.get('showName') === "true") { - this.showName = true - } - if (urlParams.get('showService') === "true") { - this.showService = true - } - if (urlParams.get('showIdentifier') === "true") { - this.showIdentifier = true - } - - if (this.identifier != null) { - if (this.identifier === "null" || this.identifier.trim().length == 0) { - this.identifier = null - } - } - - // Default to true so the message doesn't appear and disappear quickly - this.portForwardingEnabled = true - this.names = [] - this.myRegisteredName = '' - this.selectedName = 'invalid' - this.path = '' - this.successMessage = '' - this.generalMessage = '' - this.errorMessage = '' - this.loading = false - this.btnDisable = false - - const fetchNames = () => { - parentEpml.request('apiCall', { - url: `/names/address/${this.selectedAddress.address}?limit=0&reverse=true` - }).then(res => { - - setTimeout(() => { - this.names = res - if (res[0] != null) { - this.myRegisteredName = res[0].name; - } - }, 1) - }) - setTimeout(fetchNames, this.config.user.nodeSettings.pingInterval) - } - - const fetchPeersSummary = () => { - parentEpml.request('apiCall', { - url: `/peers/summary` - }).then(res => { - - setTimeout(() => { - this.portForwardingEnabled = (res.inboundConnections != null && res.inboundConnections > 0); - }, 1) - }) - setTimeout(fetchPeersSummary, this.config.user.nodeSettings.pingInterval) - } - - let configLoaded = false - parentEpml.ready().then(() => { - parentEpml.subscribe('selected_address', async selectedAddress => { - this.selectedAddress = {} - selectedAddress = JSON.parse(selectedAddress) - if (!selectedAddress || Object.entries(selectedAddress).length === 0) return - this.selectedAddress = selectedAddress - }) - parentEpml.subscribe('config', c => { - if (!configLoaded) { - setTimeout(fetchNames, 1) - setTimeout(fetchPeersSummary, 1) - configLoaded = true - } - this.config = JSON.parse(c) - }) - parentEpml.subscribe('copy_menu_switch', async value => { - - if (value === 'false' && window.getSelection().toString().length !== 0) { - - this.clearSelection() - } - }) - }) - } - - firstUpdated() { - - window.addEventListener('contextmenu', (event) => { - event.preventDefault() - this._textMenu(event) - }) - - window.addEventListener('click', () => { - parentEpml.request('closeCopyTextMenu', null) - }) - - window.onkeyup = (e) => { - if (e.keyCode === 27) { - parentEpml.request('closeCopyTextMenu', null) - } - } - } - selectName(e) { let name = this.shadowRoot.getElementById('registeredName') this.selectedName = (name.value) diff --git a/qortal-ui-plugins/plugins/core/qdn/websites.src.js b/qortal-ui-plugins/plugins/core/qdn/websites.src.js index 3eb65edf..116450bc 100644 --- a/qortal-ui-plugins/plugins/core/qdn/websites.src.js +++ b/qortal-ui-plugins/plugins/core/qdn/websites.src.js @@ -388,6 +388,8 @@ class Websites extends LitElement { firstUpdated() { + this.changeTheme() + setInterval(() => { this.changeTheme(); }, 100) @@ -404,7 +406,7 @@ class Websites extends LitElement { }) this.followedNames = followedNames - setTimeout(getFollowedNames, 60000) + setTimeout(getFollowedNames, 120000) } const getBlockedNames = async () => { @@ -413,7 +415,7 @@ class Websites extends LitElement { }) this.blockedNames = blockedNames - setTimeout(getBlockedNames, 60000) + setTimeout(getBlockedNames, 120000) } const getWebFollowedNames = async () => { @@ -422,7 +424,7 @@ class Websites extends LitElement { }) this.webFollowedNames = webFollowedNames - setTimeout(getWebFollowedNames, 60000) + setTimeout(getWebFollowedNames, 120000) } const getWebBlockedNames = async () => { @@ -431,7 +433,7 @@ class Websites extends LitElement { }) this.webBlockedNames = webBlockedNames - setTimeout(getWebBlockedNames, 60000) + setTimeout(getWebBlockedNames, 120000) } const getBlockFollowedNames = async () => { @@ -440,7 +442,7 @@ class Websites extends LitElement { }) this.blockFollowedNames = blockFollowedNames - setTimeout(getBlockFollowedNames, 60000) + setTimeout(getBlockFollowedNames, 120000) } const getBlockBlockedNames = async () => { @@ -449,7 +451,7 @@ class Websites extends LitElement { }) this.blockBlockedNames = blockBlockedNames - setTimeout(getBlockBlockedNames, 60000) + setTimeout(getBlockBlockedNames, 120000) } const getSearchFollowedNames = async () => { @@ -458,7 +460,7 @@ class Websites extends LitElement { }) this.searchFollowedNames = searchFollowedNames - setTimeout(getSearchFollowedNames, 60000) + setTimeout(getSearchFollowedNames, 120000) } const getSearchBlockedNames = async () => { @@ -467,7 +469,7 @@ class Websites extends LitElement { }) this.searchBlockedNames = searchBlockedNames - setTimeout(getSearchBlockedNames, 60000) + setTimeout(getSearchBlockedNames, 120000) } const getRelayMode = async () => { @@ -476,7 +478,7 @@ class Websites extends LitElement { }) this.relayMode = relayMode; - setTimeout(getRelayMode, 60000) + setTimeout(getRelayMode, 120000) } window.addEventListener("contextmenu", (event) => { @@ -518,8 +520,8 @@ class Websites extends LitElement { setTimeout(getSearchBlockedNames, 1) setTimeout(getRelayMode, 1) setInterval(this.getArbitraryResources, 120000) - setInterval(this.getFollowedWebsites, 60000) - setInterval(this.getBlockedWebsites, 60000) + setInterval(this.getFollowedWebsites, 120000) + setInterval(this.getBlockedWebsites, 120000) configLoaded = true } this.config = JSON.parse(c) diff --git a/qortal-ui-plugins/plugins/core/reward-share/reward-share.src.js b/qortal-ui-plugins/plugins/core/reward-share/reward-share.src.js index 2b8bff8c..454a6b3d 100644 --- a/qortal-ui-plugins/plugins/core/reward-share/reward-share.src.js +++ b/qortal-ui-plugins/plugins/core/reward-share/reward-share.src.js @@ -165,6 +165,8 @@ class RewardShare extends LitElement { firstUpdated() { + this.changeTheme() + setInterval(() => { this.changeTheme(); }, 100) diff --git a/qortal-ui-plugins/plugins/core/send-coin/send-coin.src.js b/qortal-ui-plugins/plugins/core/send-coin/send-coin.src.js index ab0bbe43..0381c714 100644 --- a/qortal-ui-plugins/plugins/core/send-coin/send-coin.src.js +++ b/qortal-ui-plugins/plugins/core/send-coin/send-coin.src.js @@ -275,6 +275,8 @@ class SendMoneyPage extends LitElement { firstUpdated() { + this.changeTheme() + setInterval(() => { this.changeTheme(); }, 100) diff --git a/qortal-ui-plugins/plugins/core/trade-portal/trade-portal.src.js b/qortal-ui-plugins/plugins/core/trade-portal/trade-portal.src.js index ebfdb2e1..affbd1e6 100644 --- a/qortal-ui-plugins/plugins/core/trade-portal/trade-portal.src.js +++ b/qortal-ui-plugins/plugins/core/trade-portal/trade-portal.src.js @@ -855,8 +855,11 @@ class TradePortal extends LitElement { } firstUpdated() { + let _this = this + this.changeTheme() + setInterval(() => { this.changeTheme(); }, 100) diff --git a/qortal-ui-plugins/plugins/core/wallet/wallet-app.src.js b/qortal-ui-plugins/plugins/core/wallet/wallet-app.src.js index 43f671ad..e21beca0 100644 --- a/qortal-ui-plugins/plugins/core/wallet/wallet-app.src.js +++ b/qortal-ui-plugins/plugins/core/wallet/wallet-app.src.js @@ -660,6 +660,8 @@ class MultiWallet extends LitElement { firstUpdated() { + this.changeTheme() + setInterval(() => { this.changeTheme(); }, 100)