From 53119a193395635775b1202ae5d6ee42d8743685 Mon Sep 17 00:00:00 2001 From: tibssy Date: Mon, 16 Mar 2026 03:37:23 +0000 Subject: [PATCH] feat(dock): add setting to use distro logo as launcher icon --- Assets/Translations/en.json | 2 ++ Assets/settings-default.json | 1 + Commons/Settings.qml | 1 + Modules/Panels/Settings/Tabs/Dock/AppearanceSubTab.qml | 10 ++++++++++ 4 files changed, 14 insertions(+) diff --git a/Assets/Translations/en.json b/Assets/Translations/en.json index b72d12c60..9187f112f 100644 --- a/Assets/Translations/en.json +++ b/Assets/Translations/en.json @@ -1141,6 +1141,8 @@ "appearance-launcher-position-end": "End", "appearance-launcher-position-label": "Launcher position", "appearance-launcher-position-start": "Start", + "appearance-launcher-use-distro-logo-description": "Use your distribution logo as the dock launcher icon.", + "appearance-launcher-use-distro-logo-label": "Use distro logo instead of icon", "appearance-pinned-static-description": "Always push pinned app icons to the left in static order.", "appearance-pinned-static-label": "Static pinned apps", "appearance-position-description": "Choose where the dock appears on screen.", diff --git a/Assets/settings-default.json b/Assets/settings-default.json index 600745016..1f74bb2a0 100644 --- a/Assets/settings-default.json +++ b/Assets/settings-default.json @@ -361,6 +361,7 @@ "colorizeIcons": false, "showLauncherIcon": false, "launcherPosition": "end", + "launcherUseDistroLogo": false, "launcherIconColor": "none", "pinnedStatic": false, "inactiveIndicators": false, diff --git a/Commons/Settings.qml b/Commons/Settings.qml index c5663a0fc..c85faace8 100644 --- a/Commons/Settings.qml +++ b/Commons/Settings.qml @@ -555,6 +555,7 @@ Singleton { property bool colorizeIcons: false property bool showLauncherIcon: false property string launcherPosition: "end" // "start", "end" + property bool launcherUseDistroLogo: false property string launcherIconColor: "none" property bool pinnedStatic: false property bool inactiveIndicators: false diff --git a/Modules/Panels/Settings/Tabs/Dock/AppearanceSubTab.qml b/Modules/Panels/Settings/Tabs/Dock/AppearanceSubTab.qml index 13f7dcf98..77abf5b0a 100644 --- a/Modules/Panels/Settings/Tabs/Dock/AppearanceSubTab.qml +++ b/Modules/Panels/Settings/Tabs/Dock/AppearanceSubTab.qml @@ -350,6 +350,16 @@ ColumnLayout { onSelected: key => Settings.data.dock.launcherPosition = key } + NToggle { + Layout.fillWidth: true + visible: Settings.data.dock.showLauncherIcon + label: I18n.tr("panels.dock.appearance-launcher-use-distro-logo-label") + description: I18n.tr("panels.dock.appearance-launcher-use-distro-logo-description") + checked: Settings.data.dock.launcherUseDistroLogo + defaultValue: Settings.getDefaultValue("dock.launcherUseDistroLogo") + onToggled: checked => Settings.data.dock.launcherUseDistroLogo = checked + } + NColorChoice { Layout.fillWidth: true visible: Settings.data.dock.showLauncherIcon