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 {
|
Loader {
|
||||||
id: screencopy
|
id: screencopy
|
||||||
|
|
||||||
|
asynchronous: true
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
active: root.loader.freeze
|
active: root.loader.freeze
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ import Quickshell.Wayland
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
asynchronous: true
|
||||||
active: Config.background.enabled
|
active: Config.background.enabled
|
||||||
|
|
||||||
sourceComponent: Variants {
|
sourceComponent: Variants {
|
||||||
|
|
@ -39,6 +40,8 @@ Loader {
|
||||||
Loader {
|
Loader {
|
||||||
id: wallpaper
|
id: wallpaper
|
||||||
|
|
||||||
|
asynchronous: true
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
active: Config.background.wallpaperEnabled
|
active: Config.background.wallpaperEnabled
|
||||||
|
|
||||||
|
|
@ -54,6 +57,8 @@ Loader {
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
id: clockLoader
|
id: clockLoader
|
||||||
|
|
||||||
|
asynchronous: true
|
||||||
active: Config.background.desktopClock.enabled
|
active: Config.background.desktopClock.enabled
|
||||||
|
|
||||||
anchors.margins: Appearance.padding.large * 2
|
anchors.margins: Appearance.padding.large * 2
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
asynchronous: true
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
active: root.blurEnabled
|
active: root.blurEnabled
|
||||||
|
|
||||||
|
|
@ -101,6 +102,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
asynchronous: true
|
||||||
Layout.alignment: Qt.AlignTop
|
Layout.alignment: Qt.AlignTop
|
||||||
Layout.topMargin: Appearance.padding.large * 1.4 * root.scale
|
Layout.topMargin: Appearance.padding.large * 1.4 * root.scale
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ Item {
|
||||||
opacity: shouldBeActive ? 1 : 0
|
opacity: shouldBeActive ? 1 : 0
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
asynchronous: true
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
active: root.opacity > 0 && Config.background.visualiser.blur
|
active: root.opacity > 0 && Config.background.visualiser.blur
|
||||||
|
|
||||||
|
|
@ -42,6 +43,7 @@ Item {
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
asynchronous: true
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.topMargin: root.offset
|
anchors.topMargin: root.offset
|
||||||
anchors.bottomMargin: -root.offset
|
anchors.bottomMargin: -root.offset
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
asynchronous: true
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
active: root.completed && !root.source
|
active: root.completed && !root.source
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue