add toggle for showing/hiding active window icon

This commit is contained in:
Kainoa Kanter 2025-08-20 07:57:19 -07:00
parent 604321e30e
commit db060fe5bb
No known key found for this signature in database
GPG key ID: 8703CACD01000000
3 changed files with 11 additions and 1 deletions

View file

@ -111,6 +111,7 @@ Singleton {
bar: JsonObject { bar: JsonObject {
property string position: "top" // Possible values: "top", "bottom" property string position: "top" // Possible values: "top", "bottom"
property bool showActiveWindow: true property bool showActiveWindow: true
property bool showActiveWindowIcon: true
property bool showSystemInfo: false property bool showSystemInfo: false
property bool showMedia: false property bool showMedia: false
property bool showBrightness: true property bool showBrightness: true

View file

@ -86,7 +86,7 @@ Row {
width: Style.fontSizeL * scaling * 1.2 width: Style.fontSizeL * scaling * 1.2
height: Style.fontSizeL * scaling * 1.2 height: Style.fontSizeL * scaling * 1.2
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
visible: getTitle() !== "" visible: getTitle() !== "" && Settings.data.bar.showActiveWindowIcon
IconImage { IconImage {
id: windowIcon id: windowIcon

View file

@ -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 { NToggle {
label: "Show System Info" label: "Show System Info"
description: "Display system statistics (CPU, RAM, Temperature)." description: "Display system statistics (CPU, RAM, Temperature)."