mica will now start loading when selected, mica is disabled in devmode by default
This commit is contained in:
parent
376031190a
commit
c874d09f8e
3 changed files with 14 additions and 3 deletions
|
@ -105,7 +105,7 @@ function fallbackinitMusicKit() {
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
app.init()
|
app.init()
|
||||||
if(app.cfg.visual.window_background_style == "mica") {
|
if(app.cfg.visual.window_background_style == "mica" && !app.isDev) {
|
||||||
app.spawnMica()
|
app.spawnMica()
|
||||||
}
|
}
|
||||||
}, 1000)
|
}, 1000)
|
||||||
|
@ -134,7 +134,7 @@ document.addEventListener('musickitloaded', function () {
|
||||||
function waitForApp() {
|
function waitForApp() {
|
||||||
if (typeof app.init !== "undefined") {
|
if (typeof app.init !== "undefined") {
|
||||||
app.init()
|
app.init()
|
||||||
if(app.cfg.visual.window_background_style == "mica") {
|
if(app.cfg.visual.window_background_style == "mica" && !app.isDev) {
|
||||||
app.spawnMica()
|
app.spawnMica()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
async function spawnMica() {
|
async function spawnMica() {
|
||||||
|
if(typeof window.micaSpawned !== "undefined") {
|
||||||
|
return
|
||||||
|
}else{
|
||||||
|
window.micaSpawned = true
|
||||||
|
}
|
||||||
const micaDiv = document.createElement('div');
|
const micaDiv = document.createElement('div');
|
||||||
const blurIterations = 6
|
const blurIterations = 6
|
||||||
micaDiv.id = 'micaEffect';
|
micaDiv.id = 'micaEffect';
|
||||||
|
|
|
@ -164,7 +164,7 @@
|
||||||
{{$root.getLz('settings.option.visual.windowBackgroundStyle')}}
|
{{$root.getLz('settings.option.visual.windowBackgroundStyle')}}
|
||||||
</div>
|
</div>
|
||||||
<div class="md-option-segment md-option-segment_auto">
|
<div class="md-option-segment md-option-segment_auto">
|
||||||
<select class="md-select" @change="$root.getNowPlayingArtworkBG(undefined, true)"
|
<select class="md-select" @change="windowBgStyleChange"
|
||||||
v-model="app.cfg.visual.window_background_style">
|
v-model="app.cfg.visual.window_background_style">
|
||||||
<option value="none">{{$root.getLz('settings.header.visual.windowBackgroundStyle.none')}}
|
<option value="none">{{$root.getLz('settings.header.visual.windowBackgroundStyle.none')}}
|
||||||
</option>
|
</option>
|
||||||
|
@ -881,6 +881,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
windowBgStyleChange() {
|
||||||
|
this.$root.getNowPlayingArtworkBG(undefined, true)
|
||||||
|
if(this.$root.cfg.visual.window_background_style == "mica") {
|
||||||
|
this.$root.spawnMica()
|
||||||
|
}
|
||||||
|
},
|
||||||
reinstallWidevineCDM () {
|
reinstallWidevineCDM () {
|
||||||
bootbox.confirm("Are you sure you want to reinstall Widevine?", (ok)=>{
|
bootbox.confirm("Are you sure you want to reinstall Widevine?", (ok)=>{
|
||||||
if(ok) {
|
if(ok) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue