feat: async sidebar
This commit is contained in:
parent
1d75e9c6fc
commit
789c3fb6da
4 changed files with 6 additions and 0 deletions
|
|
@ -154,6 +154,7 @@ StyledRect {
|
|||
component WrappedLoader: Loader {
|
||||
required property bool shouldBeActive
|
||||
|
||||
asynchronous: true
|
||||
opacity: shouldBeActive ? 1 : 0
|
||||
active: opacity > 0
|
||||
|
||||
|
|
|
|||
|
|
@ -167,6 +167,7 @@ Item {
|
|||
id: iconComp
|
||||
|
||||
IconImage {
|
||||
asynchronous: true
|
||||
source: Quickshell.iconPath(action.modelData.identifier)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@ Item {
|
|||
color: "transparent"
|
||||
|
||||
Loader {
|
||||
asynchronous: true
|
||||
anchors.centerIn: parent
|
||||
active: opacity > 0
|
||||
opacity: root.notifCount > 0 ? 0 : 1
|
||||
|
|
@ -166,6 +167,7 @@ Item {
|
|||
}
|
||||
|
||||
Loader {
|
||||
asynchronous: true
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.margins: Appearance.padding.normal
|
||||
|
|
|
|||
|
|
@ -136,12 +136,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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue