add(dankisland): lower min thresholds for compact & reserved heights

This commit is contained in:
purian23 committed 2026-08-23 02:57:35 -04:00
1 parent 7109a52ed1
commit 5c9dd50c2e
4 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -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);
}
@@ -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)
@@ -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
@@ -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