mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-17 16:55:12 +00:00
Merge branch 'Frontesque:main' into main
This commit is contained in:
commit
ca46d37f6a
3 changed files with 19 additions and 7 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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])
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"bundledWebRuntime": false,
|
||||
|
||||
"server": {
|
||||
"hostname": "youtube.com",
|
||||
"androidScheme": "https"
|
||||
"hostname": "youtube.com",
|
||||
"androidScheme": "https"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue