DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

Circular app indicators

Open rollecode opened this issue 1 year ago • 2 comments

Feature Description

Replace horizontal/vertical line indicators with circular dots for dock app indicators by default.

Use Case

Opinionated, but circular dots provide better visual clarity and a more modern appearance compared to the current line indicators.

Image

Compositor

Is this feature specific to one compositor? No.

Proposed Solution

Change the indicator shapes from lines to circles by making width/height equal and setting radius: width / 2. Additionally, increase indicator spacing from icon for better visual hierarchy.

Optional enhancement: Make indicator style (circles vs lines) configurable via settings, allowing users to choose their preferred style.


Code Changes:

File: Modules/Dock/DockAppButton.qml Change 1: rowIndicator (horizontal dock positions)

--- a/Modules/Dock/DockAppButton.qml
+++ b/Modules/Dock/DockAppButton.qml
@@ -471,8 +471,8 @@
     Component {
         id: rowIndicator

         Row {
             spacing: 2

             Repeater {
                 model: {
@@ -486,8 +486,8 @@
                 }

                 Rectangle {
-                    width: appData && appData.type === "grouped" && appData.windowCount > 1 ? Math.max(3, actualIconSize * 0.1) : Math.max(6, actualIconSize * 0.2)
-                    height: Math.max(2, actualIconSize * 0.05)
-                    radius: Theme.cornerRadius
+                    width: Math.max(4, actualIconSize * 0.1)
+                    height: Math.max(4, actualIconSize * 0.1)
+                    radius: width / 2
                     color: {
                         if (!appData) {
                             return "transparent"

Change 2: columnIndicator (vertical dock positions)

@@ -518,8 +518,8 @@
     Component {
         id: columnIndicator

         Column {
             spacing: 2

             Repeater {
                 model: {
@@ -533,8 +533,8 @@
                 }

                 Rectangle {
-                    width: Math.max(2, actualIconSize * 0.05)
-                    height: appData && appData.type === "grouped" && appData.windowCount > 1 ? Math.max(3, actualIconSize * 0.1) : Math.max(6,  actualIconSize * 0.2)
-                    radius: Theme.cornerRadius
+                    width: Math.max(4, actualIconSize * 0.1)
+                    height: Math.max(4, actualIconSize * 0.1)
+                    radius: width / 2
                     color: {
                         if (!appData) {
                             return "transparent"

Change 3: Improve indicator positioning (optional but recommended)

@@ -452,10 +452,10 @@
             anchors.top: SettingsData.dockPosition === SettingsData.Position.Top ? parent.top : undefined
             anchors.left: SettingsData.dockPosition === SettingsData.Position.Left ? parent.left : undefined
             anchors.right: SettingsData.dockPosition === SettingsData.Position.Right ? parent.right : undefined
-            anchors.bottomMargin: SettingsData.dockPosition === SettingsData.Position.Bottom ? -2 : 0
-            anchors.topMargin: SettingsData.dockPosition === SettingsData.Position.Top ? -2 : 0
-            anchors.leftMargin: SettingsData.dockPosition === SettingsData.Position.Left ? -2 : 0
-            anchors.rightMargin: SettingsData.dockPosition === SettingsData.Position.Right ? -2 : 0
+            anchors.bottomMargin: SettingsData.dockPosition === SettingsData.Position.Bottom ? -8 : 0
+            anchors.topMargin: SettingsData.dockPosition === SettingsData.Position.Top ? -8 : 0
+            anchors.leftMargin: SettingsData.dockPosition === SettingsData.Position.Left ? -8 : 0
+            anchors.rightMargin: SettingsData.dockPosition === SettingsData.Position.Right ? -8 : 0

rollecode avatar Oct 20 '25 17:10 rollecode

added 771346c8fa401d5de49e18b9caacb28025118b84

bbedward avatar Oct 22 '25 18:10 bbedward

@bbedward Thank you for adding this! However, it seems the margins are still missing and circles are too close to the icons?

Image

rollecode avatar Oct 25 '25 07:10 rollecode