From f3bee65da915e9d518ebe360a0669ecc8615b4bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tri=E1=BB=87u=20Kha?= Date: Mon, 23 Feb 2026 09:56:33 +0700 Subject: [PATCH] Fix dock visible when theres no app (#1797) * clipboard: improve image thumbnail - thumbnail image is now bigger - circular mask has been replaced with rounded rectangular mask * dock: fix dock still visible when there's no app --- quickshell/Modules/Dock/Dock.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quickshell/Modules/Dock/Dock.qml b/quickshell/Modules/Dock/Dock.qml index abe78cc6..0e5148ae 100644 --- a/quickshell/Modules/Dock/Dock.qml +++ b/quickshell/Modules/Dock/Dock.qml @@ -34,6 +34,8 @@ Variants { property bool groupByApp: SettingsData.dockGroupByApp readonly property int borderThickness: SettingsData.dockBorderEnabled ? SettingsData.dockBorderThickness : 0 + readonly property int hasApps: dockApps.implicitWidth > 0 || dockApps.implicitHeight > 0 + readonly property real widgetHeight: SettingsData.dockIconSize readonly property real effectiveBarHeight: widgetHeight + SettingsData.dockSpacing * 2 + 10 + borderThickness * 2 function getBarHeight(barConfig) { @@ -564,7 +566,7 @@ Variants { y: dockBackground.y - borderThickness width: dockBackground.width + borderThickness * 2 height: dockBackground.height + borderThickness * 2 - visible: SettingsData.dockBorderEnabled + visible: SettingsData.dockBorderEnabled && dock.hasApps preferredRendererType: Shape.CurveRenderer readonly property real borderThickness: Math.max(1, dock.borderThickness)