Switch native wallpapers on all outputs at once with a shared reveal

Skip the provider helper for native rendering (its awww probe alone took
~0.5s per output), write every output in one go, and start each output's
reveal together once all have decoded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-10-13 15:48:43 +02:00
1 parent f6732dc3da
commit 1a2aba82b0
2 files changed
+62 -6

No files matched your search

+11 -2
View File
@@ -25,7 +25,7 @@ PanelWindow {
onTargetChanged:{
if(!shown.source.toString() || Theme.duration===0) {reveal.stop();incoming.source="";shown.source=target;}
else if(target===shown.source.toString()) {reveal.stop();incoming.source="";}
else {reveal.stop();progress=0;incoming.source=target;}
else {reveal.stop();progress=0;WallpaperService.revealLoading(modelData.name);incoming.source=target;}
}
Component.onCompleted:shown.source=target
function settle() {
@@ -64,7 +64,10 @@ PanelWindow {
fillMode:Image.PreserveAspectCrop
// Settles from a slight zoom while the circle widens, like swww/awww "grow".
scale:1.06-0.06*root.progress
onStatusChanged:if(status===Image.Ready && source.toString())reveal.restart()
onStatusChanged:{
if(status===Image.Ready && source.toString())WallpaperService.revealReady(root.modelData.name);
else if(status===Image.Error)incoming.source="";
}
layer.enabled:root.transitioning
layer.effect:MultiEffect {
maskEnabled:true
@@ -73,6 +76,12 @@ PanelWindow {
maskSpreadAtMin:1
}
}
Connections {
target:WallpaperService
function onRevealSerialChanged() {
if(incoming.status===Image.Ready && incoming.source.toString() && !reveal.running && root.progress===0)reveal.restart();
}
}
NumberAnimation {
id:reveal
target:root;property:"progress"