nxsetup: fix nx theme

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/807/merge
Varun Patil 2023-10-02 10:18:28 -07:00
parent b4eb9c1fc1
commit aa867f1a49
1 changed files with 11 additions and 0 deletions

View File

@ -105,6 +105,17 @@ export default defineComponent({
} }
}, },
async mounted() {
await this.$nextTick();
// set nativex theme
nativex.setTheme(getComputedStyle(document.body).getPropertyValue('--color-background-plain'));
},
beforeDestroy() {
nativex.setTheme(); // reset theme
},
methods: { methods: {
updateDeviceFolders() { updateDeviceFolders() {
nativex.setLocalFolders(this.localFolders); nativex.setLocalFolders(this.localFolders);