feat: async picker and background

This commit is contained in:
2 * r + 2 * t 2026-03-20 01:02:04 +11:00
parent 52e7e9732b
commit 94387e7770
5 changed files with 11 additions and 0 deletions

View file

@ -206,6 +206,7 @@ MouseArea {
Loader {
id: screencopy
asynchronous: true
anchors.fill: parent
active: root.loader.freeze

View file

@ -9,6 +9,7 @@ import Quickshell.Wayland
import QtQuick
Loader {
asynchronous: true
active: Config.background.enabled
sourceComponent: Variants {
@ -39,6 +40,8 @@ Loader {
Loader {
id: wallpaper
asynchronous: true
anchors.fill: parent
active: Config.background.wallpaperEnabled
@ -54,6 +57,8 @@ Loader {
Loader {
id: clockLoader
asynchronous: true
active: Config.background.desktopClock.enabled
anchors.margins: Appearance.padding.large * 2

View file

@ -40,6 +40,7 @@ Item {
}
Loader {
asynchronous: true
anchors.fill: parent
active: root.blurEnabled
@ -101,6 +102,7 @@ Item {
}
Loader {
asynchronous: true
Layout.alignment: Qt.AlignTop
Layout.topMargin: Appearance.padding.large * 1.4 * root.scale

View file

@ -21,6 +21,7 @@ Item {
opacity: shouldBeActive ? 1 : 0
Loader {
asynchronous: true
anchors.fill: parent
active: root.opacity > 0 && Config.background.visualiser.blur
@ -42,6 +43,7 @@ Item {
layer.enabled: true
Loader {
asynchronous: true
anchors.fill: parent
anchors.topMargin: root.offset
anchors.bottomMargin: -root.offset

View file

@ -33,6 +33,7 @@ Item {
}
Loader {
asynchronous: true
anchors.fill: parent
active: root.completed && !root.source