diff --git a/NUXT/layouts/default.vue b/NUXT/layouts/default.vue index 734add5..4b488b5 100644 --- a/NUXT/layouts/default.vue +++ b/NUXT/layouts/default.vue @@ -110,9 +110,18 @@ export default { const darkTheme = localStorage.getItem('darkTheme'); if (darkTheme == "true") { this.$vuetify.theme.dark = darkTheme; - this.$vuetify.theme.themes.dark.accent = '#222', - this.$vuetify.theme.themes.dark.accent2 = '#222', - this.$vuetify.theme.themes.dark.background = '#333' + + const isOled = localStorage.getItem('isOled') + + if(isOled == "true") { + this.$vuetify.theme.themes.dark.accent = '#000', + this.$vuetify.theme.themes.dark.accent2 = '#000', + this.$vuetify.theme.themes.dark.background = '#000' + } else { + this.$vuetify.theme.themes.dark.accent = '#222', + this.$vuetify.theme.themes.dark.accent2 = '#222', + this.$vuetify.theme.themes.dark.background = '#333' + } } }, 0); diff --git a/NUXT/pages/mods/theme.vue b/NUXT/pages/mods/theme.vue index 010ed47..e327e71 100644 --- a/NUXT/pages/mods/theme.vue +++ b/NUXT/pages/mods/theme.vue @@ -57,11 +57,14 @@ export default { this.$vuetify.theme.themes.dark.background === '#000' ? ( this.$vuetify.theme.themes.dark.accent = '#222', this.$vuetify.theme.themes.dark.accent2 = '#222', - this.$vuetify.theme.themes.dark.background = '#333' + this.$vuetify.theme.themes.dark.background = '#333', + localStorage.setItem("isOled", false) ) : ( this.$vuetify.theme.themes.dark.accent = '#000', this.$vuetify.theme.themes.dark.accent2 = '#000', - this.$vuetify.theme.themes.dark.background = '#000' + this.$vuetify.theme.themes.dark.background = '#000', + localStorage.setItem("isOled", true) + ) // doesn't work 😭 // console.log(document.getElementsByClassName('v-application--wrap')[0]) diff --git a/capacitor.config.json b/capacitor.config.json index 5ea4d82..41ce8be 100644 --- a/capacitor.config.json +++ b/capacitor.config.json @@ -5,7 +5,7 @@ "bundledWebRuntime": false, "server": { - "hostname": "youtube.com", - "androidScheme": "https" + "hostname": "youtube.com", + "androidScheme": "https" } }