Skip to content

Commit

Permalink
nxsetup: fix nx theme
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <radialapps@gmail.com>
  • Loading branch information
pulsejet committed Oct 2, 2023
1 parent b4eb9c1 commit aa867f1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/native/Setup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aa867f1

Please sign in to comment.