Skip to content

Commit

Permalink
fix: remove device darkmode because its unreliable #285
Browse files Browse the repository at this point in the history
  • Loading branch information
WDaan committed Aug 29, 2021
1 parent 059f605 commit e6c0863
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 30 deletions.
8 changes: 0 additions & 8 deletions src/App.vue
Expand Up @@ -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)
}
}
}
}
}
Expand Down
21 changes: 0 additions & 21 deletions src/components/Modals/SettingsModal/Tabs/Vuetorrent/General.vue
Expand Up @@ -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>
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/store/index.js
Expand Up @@ -58,7 +58,6 @@ export default new Vuex.Store({
showTrackerFilter: false,
showSpeedInTitle: false,
title: 'Default',
useDeviceDarkMode: true,
rightDrawer: false,
paginationSize: 15,
busyTorrentProperties: [
Expand Down

0 comments on commit e6c0863

Please sign in to comment.