diff --git a/modules/bar/Bar.qml b/modules/bar/Bar.qml index 95c166e6..5a7c3ce6 100644 --- a/modules/bar/Bar.qml +++ b/modules/bar/Bar.qml @@ -194,6 +194,7 @@ ColumnLayout { return null; } + asynchronous: true Layout.alignment: Qt.AlignHCenter // Cursed ahh thing to add padding to first and last enabled components diff --git a/modules/bar/components/ActiveWindow.qml b/modules/bar/components/ActiveWindow.qml index 990a65a6..0ae727b3 100644 --- a/modules/bar/components/ActiveWindow.qml +++ b/modules/bar/components/ActiveWindow.qml @@ -39,6 +39,7 @@ Item { implicitHeight: icon.implicitHeight + current.implicitWidth + current.anchors.topMargin Loader { + asynchronous: true anchors.fill: parent active: !Config.bar.activeWindow.showOnHover diff --git a/modules/bar/components/Clock.qml b/modules/bar/components/Clock.qml index 089bc5a8..96885764 100644 --- a/modules/bar/components/Clock.qml +++ b/modules/bar/components/Clock.qml @@ -23,6 +23,7 @@ StyledRect { spacing: Appearance.spacing.small Loader { + asynchronous: true anchors.horizontalCenter: parent.horizontalCenter active: Config.bar.clock.showIcon diff --git a/modules/bar/components/OsIcon.qml b/modules/bar/components/OsIcon.qml index 6710294a..0ad3bf30 100644 --- a/modules/bar/components/OsIcon.qml +++ b/modules/bar/components/OsIcon.qml @@ -21,6 +21,7 @@ Item { } Loader { + asynchronous: true anchors.centerIn: parent sourceComponent: SysInfo.isDefaultLogo ? caelestiaLogo : distroIcon } diff --git a/modules/bar/components/StatusIcons.qml b/modules/bar/components/StatusIcons.qml index ca7dc2e3..b1cc133f 100644 --- a/modules/bar/components/StatusIcons.qml +++ b/modules/bar/components/StatusIcons.qml @@ -264,6 +264,7 @@ StyledRect { component WrappedLoader: Loader { required property string name + asynchronous: true Layout.alignment: Qt.AlignHCenter visible: active } diff --git a/modules/bar/components/Tray.qml b/modules/bar/components/Tray.qml index 7bafda16..b5f0b020 100644 --- a/modules/bar/components/Tray.qml +++ b/modules/bar/components/Tray.qml @@ -82,6 +82,8 @@ StyledRect { Loader { id: expandIcon + asynchronous: true + anchors.horizontalCenter: parent.horizontalCenter anchors.bottom: parent.bottom diff --git a/modules/bar/components/workspaces/SpecialWorkspaces.qml b/modules/bar/components/workspaces/SpecialWorkspaces.qml index cd3572be..555bb3b4 100644 --- a/modules/bar/components/workspaces/SpecialWorkspaces.qml +++ b/modules/bar/components/workspaces/SpecialWorkspaces.qml @@ -164,6 +164,8 @@ Item { Loader { id: label + asynchronous: true + Layout.alignment: Qt.AlignHCenter | Qt.AlignTop Layout.preferredHeight: Config.bar.sizes.innerWidth - Appearance.padding.small * 2 @@ -192,6 +194,8 @@ Item { Loader { id: windows + asynchronous: true + Layout.alignment: Qt.AlignHCenter Layout.fillHeight: true Layout.preferredHeight: implicitHeight @@ -293,6 +297,7 @@ Item { } Loader { + asynchronous: true active: Config.bar.workspaces.activeIndicator anchors.fill: parent diff --git a/modules/bar/components/workspaces/Workspace.qml b/modules/bar/components/workspaces/Workspace.qml index f6e767ef..32efc125 100644 --- a/modules/bar/components/workspaces/Workspace.qml +++ b/modules/bar/components/workspaces/Workspace.qml @@ -55,6 +55,8 @@ ColumnLayout { Loader { id: windows + asynchronous: true + Layout.alignment: Qt.AlignHCenter Layout.fillHeight: true Layout.topMargin: -Config.bar.sizes.innerWidth / 10 diff --git a/modules/bar/components/workspaces/Workspaces.qml b/modules/bar/components/workspaces/Workspaces.qml index b9fe87fa..a2231b74 100644 --- a/modules/bar/components/workspaces/Workspaces.qml +++ b/modules/bar/components/workspaces/Workspaces.qml @@ -45,6 +45,7 @@ StyledClippingRect { } Loader { + asynchronous: true active: Config.bar.workspaces.occupiedBg anchors.fill: parent @@ -77,6 +78,7 @@ StyledClippingRect { } Loader { + asynchronous: true anchors.horizontalCenter: parent.horizontalCenter active: Config.bar.workspaces.activeIndicator @@ -110,6 +112,8 @@ StyledClippingRect { Loader { id: specialWs + asynchronous: true + anchors.fill: parent anchors.margins: Appearance.padding.small diff --git a/modules/bar/popouts/ActiveWindow.qml b/modules/bar/popouts/ActiveWindow.qml index adf7b774..fe89c9e8 100644 --- a/modules/bar/popouts/ActiveWindow.qml +++ b/modules/bar/popouts/ActiveWindow.qml @@ -31,6 +31,7 @@ Item { IconImage { id: icon + asynchronous: true Layout.alignment: Qt.AlignVCenter implicitSize: details.implicitHeight source: Icons.getAppIcon(Hypr.activeToplevel?.lastIpcObject.class ?? "", "image-missing") diff --git a/modules/bar/popouts/Battery.qml b/modules/bar/popouts/Battery.qml index ac975e1b..78bd324e 100644 --- a/modules/bar/popouts/Battery.qml +++ b/modules/bar/popouts/Battery.qml @@ -37,6 +37,7 @@ Column { } Loader { + asynchronous: true anchors.horizontalCenter: parent.horizontalCenter active: PowerProfiles.degradationReason !== PerformanceDegradationReason.None diff --git a/modules/bar/popouts/Bluetooth.qml b/modules/bar/popouts/Bluetooth.qml index 676da82f..91ac5604 100644 --- a/modules/bar/popouts/Bluetooth.qml +++ b/modules/bar/popouts/Bluetooth.qml @@ -142,6 +142,7 @@ ColumnLayout { } Loader { + asynchronous: true active: device.modelData.bonded sourceComponent: Item { implicitWidth: connectBtn.implicitWidth diff --git a/modules/bar/popouts/TrayMenu.qml b/modules/bar/popouts/TrayMenu.qml index 027552d8..a6680f44 100644 --- a/modules/bar/popouts/TrayMenu.qml +++ b/modules/bar/popouts/TrayMenu.qml @@ -81,6 +81,7 @@ StackView { Loader { id: children + asynchronous: true anchors.left: parent.left anchors.right: parent.right @@ -114,11 +115,13 @@ StackView { Loader { id: icon + asynchronous: true anchors.left: parent.left active: item.modelData.icon !== "" sourceComponent: IconImage { + asynchronous: true implicitSize: label.implicitHeight source: item.modelData.icon @@ -149,6 +152,7 @@ StackView { Loader { id: expand + asynchronous: true anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right @@ -165,6 +169,7 @@ StackView { } Loader { + asynchronous: true active: menu.isSubMenu sourceComponent: Item {