0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-22 03:05:15 +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() {
//--- Load Saved Theme ---//
const theme = localStorage.getItem('darkTheme');
if (theme != undefined) {
/*
this.$vuetify.theme.themes.dark.accent = '#222',
this.$vuetify.theme.themes.dark.accent2 = '#222',
this.$vuetify.theme.themes.dark.background = '#333'
*/
this.$vuetify.theme.dark = theme;
}
setTimeout(() => {
const theme = Boolean(localStorage.getItem('darkTheme'));
if (theme != undefined) {
this.$vuetify.theme.themes.dark.accent = '#222',
this.$vuetify.theme.themes.dark.accent2 = '#222',
this.$vuetify.theme.themes.dark.background = '#333'
this.$vuetify.theme.dark = theme;
}
}, 1000);
//--- Back Button Listener ---//
CapacitorApp.addListener('backButton', ({canGoBack}) => {

View file

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

View file

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