From db060fe5bb78f1859ec9e0027d72188f6fcb2ffd Mon Sep 17 00:00:00 2001 From: Kainoa Kanter Date: Wed, 20 Aug 2025 07:57:19 -0700 Subject: [PATCH] add toggle for showing/hiding active window icon --- Commons/Settings.qml | 1 + Modules/Bar/ActiveWindow.qml | 2 +- Modules/SettingsPanel/Tabs/BarTab.qml | 9 +++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Commons/Settings.qml b/Commons/Settings.qml index bc5d6c4..102dbbd 100644 --- a/Commons/Settings.qml +++ b/Commons/Settings.qml @@ -111,6 +111,7 @@ Singleton { bar: JsonObject { property string position: "top" // Possible values: "top", "bottom" property bool showActiveWindow: true + property bool showActiveWindowIcon: true property bool showSystemInfo: false property bool showMedia: false property bool showBrightness: true diff --git a/Modules/Bar/ActiveWindow.qml b/Modules/Bar/ActiveWindow.qml index 7e54e82..40a154f 100644 --- a/Modules/Bar/ActiveWindow.qml +++ b/Modules/Bar/ActiveWindow.qml @@ -86,7 +86,7 @@ Row { width: Style.fontSizeL * scaling * 1.2 height: Style.fontSizeL * scaling * 1.2 anchors.verticalCenter: parent.verticalCenter - visible: getTitle() !== "" + visible: getTitle() !== "" && Settings.data.bar.showActiveWindowIcon IconImage { id: windowIcon diff --git a/Modules/SettingsPanel/Tabs/BarTab.qml b/Modules/SettingsPanel/Tabs/BarTab.qml index f3f26da..328b5ca 100644 --- a/Modules/SettingsPanel/Tabs/BarTab.qml +++ b/Modules/SettingsPanel/Tabs/BarTab.qml @@ -87,6 +87,15 @@ ColumnLayout { } } + NToggle { + label: "Show App Icon Next To Active Window" + description: "Display the app icon next to the title of the currently focused window." + checked: Settings.data.bar.showActiveWindowIcon + onToggled: checked => { + Settings.data.bar.showActiveWindowIcon = checked + } + } + NToggle { label: "Show System Info" description: "Display system statistics (CPU, RAM, Temperature)."