mirror of
https://github.com/romancm/gamebrary
synced 2024-11-24 04:03:06 +00:00
Removed transparent wallpaper setting
This commit is contained in:
parent
aacf22514b
commit
02a45d3636
3 changed files with 1 additions and 31 deletions
|
@ -1,6 +1,6 @@
|
|||
<!-- eslint-disable max-len -->
|
||||
<template lang="html">
|
||||
<div :class="['list', viewClass, { unique }, transparent]">
|
||||
<div :class="['list', viewClass, { unique }]">
|
||||
<header>
|
||||
<span>
|
||||
<i
|
||||
|
@ -186,16 +186,6 @@ export default {
|
|||
viewClass() {
|
||||
return this.list[this.listIndex].view || 'single';
|
||||
},
|
||||
|
||||
transparent() {
|
||||
return this.settings
|
||||
&& this.settings.wallpapers
|
||||
&& this.settings.wallpapers[this.platform.code]
|
||||
&& this.settings.wallpapers[this.platform.code].url
|
||||
&& this.settings.wallpapers[this.platform.code].transparent
|
||||
? 'transparent'
|
||||
: '';
|
||||
},
|
||||
},
|
||||
|
||||
watch: {
|
||||
|
|
|
@ -28,16 +28,6 @@
|
|||
<template v-if="showBoardSpecificSettings">
|
||||
<wallpaper-upload />
|
||||
|
||||
<div class="setting" v-if="value.wallpapers && value.wallpapers[platform.code]">
|
||||
<i class="fas fa-images"></i>
|
||||
<h5>{{ $t('settings.wallpaper.transparency') }}</h5>
|
||||
|
||||
<toggle-switch
|
||||
id="wallpaperTransparency"
|
||||
v-model="value.wallpapers[platform.code].transparent"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="setting">
|
||||
<i class="fas fa-palette" />
|
||||
<h5>Global theme</h5>
|
||||
|
|
|
@ -74,7 +74,6 @@ export default {
|
|||
file: File,
|
||||
uploadTask: '',
|
||||
wallpapers: {},
|
||||
transparent: false,
|
||||
loading: false,
|
||||
};
|
||||
},
|
||||
|
@ -91,16 +90,9 @@ export default {
|
|||
if (!this.wallpapers[this.platform.code]) {
|
||||
this.wallpapers[this.platform.code] = {};
|
||||
}
|
||||
|
||||
this.transparent = this.wallpapers[this.platform.code].transparent || false;
|
||||
},
|
||||
|
||||
methods: {
|
||||
setTransparent(value) {
|
||||
this.transparent = value;
|
||||
this.saveSettings();
|
||||
},
|
||||
|
||||
triggerUpload() {
|
||||
this.$refs.fileInput.click();
|
||||
},
|
||||
|
@ -112,8 +104,6 @@ export default {
|
|||
},
|
||||
|
||||
saveSettings() {
|
||||
this.wallpapers[this.platform.code].transparent = this.transparent;
|
||||
|
||||
const settings = {
|
||||
...this.settings,
|
||||
wallpapers: this.wallpapers,
|
||||
|
|
Loading…
Reference in a new issue