mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
add toggle for showing/hiding active window icon
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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)."
|
||||||
|
|||||||
Reference in New Issue
Block a user