From aa867f1a49a98741a046bc6c2ebdf1ff58e4511d Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Mon, 2 Oct 2023 10:18:28 -0700 Subject: [PATCH] nxsetup: fix nx theme Signed-off-by: Varun Patil --- src/native/Setup.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/native/Setup.vue b/src/native/Setup.vue index 609c93da4..538448b0e 100644 --- a/src/native/Setup.vue +++ b/src/native/Setup.vue @@ -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);