nxsetup: fix nx theme
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/807/merge
parent
b4eb9c1fc1
commit
aa867f1a49
|
@ -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: {
|
||||
updateDeviceFolders() {
|
||||
nativex.setLocalFolders(this.localFolders);
|
||||
|
|
Loading…
Reference in New Issue