feat: async lock
This commit is contained in:
parent
a39a2fcd18
commit
80b34c8c7c
5 changed files with 9 additions and 0 deletions
|
|
@ -54,6 +54,7 @@ ColumnLayout {
|
|||
}
|
||||
|
||||
Loader {
|
||||
asynchronous: true
|
||||
Layout.leftMargin: Appearance.spacing.small
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
|
||||
|
|
|
|||
|
|
@ -162,6 +162,7 @@ ColumnLayout {
|
|||
}
|
||||
|
||||
component WrappedLoader: Loader {
|
||||
asynchronous: true
|
||||
visible: active
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ ColumnLayout {
|
|||
color: "transparent"
|
||||
|
||||
Loader {
|
||||
asynchronous: true
|
||||
anchors.centerIn: parent
|
||||
active: opacity > 0
|
||||
opacity: Notifs.list.length > 0 && !Config.lock.hideNotifs ? 0 : 1
|
||||
|
|
|
|||
|
|
@ -109,12 +109,14 @@ StyledRect {
|
|||
radius: Appearance.rounding.full
|
||||
|
||||
Loader {
|
||||
asynchronous: true
|
||||
anchors.centerIn: parent
|
||||
sourceComponent: root.image ? imageComp : root.appIcon ? appIconComp : materialIconComp
|
||||
}
|
||||
}
|
||||
|
||||
Loader {
|
||||
asynchronous: true
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
active: root.appIcon && root.image
|
||||
|
|
@ -270,6 +272,7 @@ StyledRect {
|
|||
}
|
||||
|
||||
Loader {
|
||||
asynchronous: true
|
||||
Layout.fillWidth: true
|
||||
|
||||
opacity: root.expanded ? 1 : 0
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ ColumnLayout {
|
|||
spacing: Appearance.spacing.small
|
||||
|
||||
Loader {
|
||||
asynchronous: true
|
||||
Layout.topMargin: Appearance.padding.large * 2
|
||||
Layout.bottomMargin: -Appearance.padding.large
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
|
|
@ -71,6 +72,7 @@ ColumnLayout {
|
|||
}
|
||||
|
||||
Loader {
|
||||
asynchronous: true
|
||||
Layout.rightMargin: Appearance.padding.smaller
|
||||
active: root.width > 400
|
||||
visible: active
|
||||
|
|
@ -107,6 +109,7 @@ ColumnLayout {
|
|||
Loader {
|
||||
id: forecastLoader
|
||||
|
||||
asynchronous: true
|
||||
Layout.topMargin: Appearance.spacing.smaller
|
||||
Layout.bottomMargin: Appearance.padding.large * 2
|
||||
Layout.fillWidth: true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue