From 5c9dd50c2eaa3125df58626d833d44e3ee0596fb Mon Sep 17 00:00:00 2001 From: purian23 Date: Sun, 23 Aug 2026 02:57:35 -0400 Subject: [PATCH] add(dankisland): lower min thresholds for compact & reserved heights --- quickshell/Common/SettingsData.qml | 4 ++-- quickshell/Modules/DankIsland/DankIslandHostWindow.qml | 4 ++-- quickshell/Modules/DankIsland/IslandController.qml | 4 ++-- quickshell/Modules/Settings/DankIslandTab.qml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/quickshell/Common/SettingsData.qml b/quickshell/Common/SettingsData.qml index cc1feb54a..bca0e5cbc 100644 --- a/quickshell/Common/SettingsData.qml +++ b/quickshell/Common/SettingsData.qml @@ -977,8 +977,8 @@ Singleton { readonly property int dankIslandPosition: islandBarConfig?.position ?? SettingsData.Position.Top readonly property string dankIslandEdge: dankIslandPosition === SettingsData.Position.Bottom ? "bottom" : "top" readonly property int dankIslandReservedStripHeight: { - const reserve = Math.max(36, Math.min(128, dankIslandReserveHeight)); - const compact = Math.max(36, Math.min(72, dankIslandCompactHeight)); + const reserve = Math.max(24, Math.min(128, dankIslandReserveHeight)); + const compact = Math.max(24, Math.min(72, dankIslandCompactHeight)); const gap = Math.max(0, Math.min(48, dankIslandOuterGap)); return Math.max(reserve, gap + compact); } diff --git a/quickshell/Modules/DankIsland/DankIslandHostWindow.qml b/quickshell/Modules/DankIsland/DankIslandHostWindow.qml index 2d61fc591..a2184c935 100644 --- a/quickshell/Modules/DankIsland/DankIslandHostWindow.qml +++ b/quickshell/Modules/DankIsland/DankIslandHostWindow.qml @@ -41,8 +41,8 @@ PanelWindow { return false; } - readonly property int reserveHeight: Math.max(36, Math.min(128, SettingsData.dankIslandReserveHeight)) - readonly property int compactHeight: Math.max(36, Math.min(72, SettingsData.dankIslandCompactHeight)) + readonly property int reserveHeight: Math.max(24, Math.min(128, SettingsData.dankIslandReserveHeight)) + readonly property int compactHeight: Math.max(24, Math.min(72, SettingsData.dankIslandCompactHeight)) readonly property bool floating: SettingsData.dankIslandFloating readonly property bool usesOverlayLayer: LayerShell.envUsesOverlay("DMS_DANKISLAND_LAYER", SettingsData.dankIslandUseOverlayLayer) readonly property var islandLayer: LayerShell.fromEnv("DMS_DANKISLAND_LAYER", usesOverlayLayer ? WlrLayer.Overlay : WlrLayer.Top) diff --git a/quickshell/Modules/DankIsland/IslandController.qml b/quickshell/Modules/DankIsland/IslandController.qml index 49595ee6f..7fef4acca 100644 --- a/quickshell/Modules/DankIsland/IslandController.qml +++ b/quickshell/Modules/DankIsland/IslandController.qml @@ -82,9 +82,9 @@ QtObject { // Below the pill threshold every compact face drops to a single text line. readonly property bool compactDense: compactHeight < 40 readonly property real compactFaceHeight: compactHeight + (compactDense ? 2 : 4) - readonly property real compactIconSize: Math.max(22, Math.min(32, compactHeight - 8)) + readonly property real compactIconSize: Math.max(14, Math.min(32, compactHeight - 8)) readonly property bool homeCompactTight: SettingsData.dankIslandHomeCompactTight - readonly property real homeCompactFaceHeight: homeCompactTight ? Math.max(28, Math.min(32, compactHeight - 8)) : compactFaceHeight + readonly property real homeCompactFaceHeight: homeCompactTight ? Math.max(16, Math.min(32, compactHeight - 8)) : compactFaceHeight property int unreadNotificationCount: 0 readonly property bool homeNotificationBadge: unreadNotificationCount > 0 diff --git a/quickshell/Modules/Settings/DankIslandTab.qml b/quickshell/Modules/Settings/DankIslandTab.qml index b248c73c8..6e37bfee2 100644 --- a/quickshell/Modules/Settings/DankIslandTab.qml +++ b/quickshell/Modules/Settings/DankIslandTab.qml @@ -94,7 +94,7 @@ Item { text: I18n.tr("Reserved Height") description: I18n.tr("Space kept clear for compact island and satellites") unit: "px" - minimum: 36 + minimum: 24 maximum: 128 step: 1 defaultValue: 40 @@ -109,7 +109,7 @@ Item { text: I18n.tr("Compact Island Height") description: I18n.tr("Resize the resting island to align with nearby widgets") unit: "px" - minimum: 36 + minimum: 24 maximum: 72 step: 1 defaultValue: 38