fix: remove device darkmode because its unreliable #285

This commit is contained in:
Daan Wijns 2021-08-29 10:47:34 +02:00
parent 059f6053c9
commit e6c0863545
3 changed files with 0 additions and 30 deletions

View file

@ -59,14 +59,6 @@ export default {
this.$store.commit('LOGIN', authenticated)
this.$store.commit('updateMainData')
if (!authenticated && !this.onLoginPage) return this.$router.push('login')
},
checkDeviceDarkTheme() {
if (this.webuiSettings.useDeviceDarkMode) {
const darkMediaQuery = window.matchMedia('(prefers-color-scheme: dark)')
if (darkMediaQuery.matches) {
setTimeout(() => this.$vuetify.theme.dark = true, 0)
}
}
}
}
}

View file

@ -69,19 +69,6 @@
</v-col>
</v-row>
</v-list-item>
<v-list-item>
<v-row dense>
<v-col>
<v-switch
v-model="useDeviceDarkMode"
class="v-input--reverse pa-0 ma-0"
hide-details
inset
label="Use device dark/light mode"
/>
</v-col>
</v-row>
</v-list-item>
<v-list-item>
<v-row dense>
<v-col>
@ -225,14 +212,6 @@ export default {
this.webuiSettings.showTrackerFilter = val
}
},
useDeviceDarkMode: {
get() {
return this.webuiSettings.useDeviceDarkMode
},
set(val) {
this.webuiSettings.useDeviceDarkMode = val
}
},
rightDrawer: {
get() {
return this.webuiSettings.rightDrawer

View file

@ -58,7 +58,6 @@ export default new Vuex.Store({
showTrackerFilter: false,
showSpeedInTitle: false,
title: 'Default',
useDeviceDarkMode: true,
rightDrawer: false,
paginationSize: 15,
busyTorrentProperties: [