From ad305b3754deac4f70e0cf7fc51626894398666f Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Fri, 5 Sep 2025 18:53:24 -0400 Subject: [PATCH] Dock: converted to Layout --- Modules/Dock/Dock.qml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Modules/Dock/Dock.qml b/Modules/Dock/Dock.qml index 2fa9e98..9a71bba 100644 --- a/Modules/Dock/Dock.qml +++ b/Modules/Dock/Dock.qml @@ -130,7 +130,7 @@ Variants { Rectangle { id: dockContainer - width: dock.width + 48 * scaling + width: dockLayout.implicitWidth + 48 * scaling height: iconSize * 1.4 * scaling color: Qt.alpha(Color.mSurface, Settings.data.dock.backgroundOpacity) anchors.horizontalCenter: parent.horizontalCenter @@ -178,7 +178,7 @@ Variants { Item { id: dock - width: runningAppsRow.width + width: dockLayout.implicitWidth height: parent.height - (20 * scaling) anchors.centerIn: parent @@ -194,10 +194,10 @@ Variants { return Icons.iconForAppId(toplevel.appId?.toLowerCase()) } - Row { - id: runningAppsRow + RowLayout { + id: dockLayout spacing: Style.marginL * scaling - height: parent.height + Layout.preferredHeight: parent.height anchors.centerIn: parent Repeater { @@ -205,8 +205,10 @@ Variants { delegate: Rectangle { id: appButton - width: iconSize * scaling - height: iconSize * scaling + Layout.preferredWidth: iconSize * scaling + Layout.preferredHeight: iconSize * scaling + Layout.alignment: Qt.AlignCenter + color: Color.transparent radius: Style.radiusM * scaling