diff --git a/src/native/Setup.vue b/src/native/Setup.vue index 609c93da..538448b0 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);