Circular app indicators
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.
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
added 771346c8fa401d5de49e18b9caacb28025118b84
@bbedward Thank you for adding this! However, it seems the margins are still missing and circles are too close to the icons?