forked from Shinonome/dots-hyprland
player control: default to accent when there's no cover
This commit is contained in:
@@ -66,7 +66,10 @@ Item { // Player instance
|
|||||||
}
|
}
|
||||||
|
|
||||||
onArtUrlChanged: {
|
onArtUrlChanged: {
|
||||||
if (playerController.artUrl.length == 0) return;
|
if (playerController.artUrl.length == 0) {
|
||||||
|
playerController.artDominantColor = Appearance.m3colors.m3secondaryContainer
|
||||||
|
return;
|
||||||
|
}
|
||||||
colorQuantizer.targetFile = playerController.artUrl // Yes this binding break is intentional
|
colorQuantizer.targetFile = playerController.artUrl // Yes this binding break is intentional
|
||||||
colorQuantizer.running = true
|
colorQuantizer.running = true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user