0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-29 06:33:05 +00:00

Fix dark theme resetting on app close #8

This commit is contained in:
Front 2022-03-15 16:01:16 -04:00
parent 6c8ed7cc96
commit 480f27513e
3 changed files with 19 additions and 11 deletions

View file

@ -106,15 +106,15 @@ export default {
mounted() { mounted() {
//--- Load Saved Theme ---// //--- Load Saved Theme ---//
const theme = localStorage.getItem('darkTheme'); setTimeout(() => {
const theme = Boolean(localStorage.getItem('darkTheme'));
if (theme != undefined) { if (theme != undefined) {
/*
this.$vuetify.theme.themes.dark.accent = '#222', this.$vuetify.theme.themes.dark.accent = '#222',
this.$vuetify.theme.themes.dark.accent2 = '#222', this.$vuetify.theme.themes.dark.accent2 = '#222',
this.$vuetify.theme.themes.dark.background = '#333' this.$vuetify.theme.themes.dark.background = '#333'
*/
this.$vuetify.theme.dark = theme; this.$vuetify.theme.dark = theme;
} }
}, 1000);
//--- Back Button Listener ---// //--- Back Button Listener ---//
CapacitorApp.addListener('backButton', ({canGoBack}) => { CapacitorApp.addListener('backButton', ({canGoBack}) => {

View file

@ -2,5 +2,9 @@
"appId": "com.Frontesque.vuetube", "appId": "com.Frontesque.vuetube",
"appName": "VueTube", "appName": "VueTube",
"webDir": "dist", "webDir": "dist",
"bundledWebRuntime": false "bundledWebRuntime": false,
"server": {
"hostname": "youtube.com",
"androidScheme": "https"
}
} }

View file

@ -2,5 +2,9 @@
"appId": "com.Frontesque.vuetube", "appId": "com.Frontesque.vuetube",
"appName": "VueTube", "appName": "VueTube",
"webDir": "dist", "webDir": "dist",
"bundledWebRuntime": false "bundledWebRuntime": false,
"server": {
"hostname": "youtube.com",
"androidScheme": "https"
}
} }