Dock: add tiny space between indicator and icon

This commit is contained in:
Lysec
2026-02-02 13:49:24 +01:00
parent b0d64f0e77
commit 7834786c12
+3 -3
View File
@@ -712,7 +712,7 @@ Loader {
delegate: Item {
id: appButton
readonly property real indicatorMargin: Math.max(2, Math.round(iconSize * 0.12))
readonly property real indicatorMargin: Math.max(3, Math.round(iconSize * 0.18))
Layout.preferredWidth: isVertical ? iconSize + indicatorMargin * 2 : iconSize
Layout.preferredHeight: isVertical ? iconSize : iconSize + indicatorMargin * 2
Layout.alignment: Qt.AlignCenter
@@ -1074,8 +1074,8 @@ Loader {
// Active indicator - positioned at the edge of the delegate area
Rectangle {
visible: Settings.data.dock.inactiveIndicators ? isRunning : isActive
width: isVertical ? indicatorMargin * 0.8 : iconSize * 0.2
height: isVertical ? iconSize * 0.2 : indicatorMargin * 0.8
width: isVertical ? indicatorMargin * 0.6 : iconSize * 0.2
height: isVertical ? iconSize * 0.2 : indicatorMargin * 0.6
color: Color.mPrimary
radius: Style.radiusXS