mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-14 20:20:04 +03:00
fix: remove device darkmode because its unreliable #285
This commit is contained in:
parent
059f6053c9
commit
e6c0863545
3 changed files with 0 additions and 30 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -58,7 +58,6 @@ export default new Vuex.Store({
|
|||
showTrackerFilter: false,
|
||||
showSpeedInTitle: false,
|
||||
title: 'Default',
|
||||
useDeviceDarkMode: true,
|
||||
rightDrawer: false,
|
||||
paginationSize: 15,
|
||||
busyTorrentProperties: [
|
||||
|
|
Loading…
Add table
Reference in a new issue