added accent color and window color tinting

- rearranged some of visual tab in settings
- added advanced section to visual
This commit is contained in:
booploops 2022-06-06 01:46:41 -07:00
parent 11586b251c
commit d0c2d6d36e
7 changed files with 156 additions and 91 deletions

View file

@ -283,6 +283,17 @@ const app = new Vue({
ipcRenderer.invoke("renderer-ready", true)
document.querySelector("#LOADER").remove()
},
getAppStyle() {
let finalStyle = {}
if(this.cfg.visual.window_background_style === "color") {
finalStyle["background-color"] = this.cfg.visual.windowColor
}
if(this.cfg.visual.customAccentColor) {
finalStyle["--keyColor"] = this.cfg.visual.accentColor
finalStyle["--songProgressColor"] = this.cfg.visual.accentColor
}
return finalStyle
},
setTimeout(func, time) {
return setTimeout(func, time);
},