feat: async picker and background
This commit is contained in:
parent
52e7e9732b
commit
94387e7770
5 changed files with 11 additions and 0 deletions
|
|
@ -206,6 +206,7 @@ MouseArea {
|
|||
Loader {
|
||||
id: screencopy
|
||||
|
||||
asynchronous: true
|
||||
anchors.fill: parent
|
||||
|
||||
active: root.loader.freeze
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ Item {
|
|||
}
|
||||
|
||||
Loader {
|
||||
asynchronous: true
|
||||
anchors.fill: parent
|
||||
|
||||
active: root.completed && !root.source
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue