Workspace: ShowLabel replaced toggle by NComboBox so we can choose "Name" or "Index"

This commit is contained in:
LemmyCook 2025-08-26 20:55:45 -04:00
parent 94e59592f0
commit dd456edf90
3 changed files with 25 additions and 11 deletions

View file

@ -128,13 +128,27 @@ ColumnLayout {
}
}
NToggle {
label: "Show Workspaces Names"
description: "Display the workspace name in the workspace indicator"
checked: Settings.data.bar.showWorkspacesNames
onToggled: checked => {
Settings.data.bar.showWorkspacesNames = checked
}
NComboBox {
label: "Show Workspaces Labels"
description: "Display the workspace name or index in the workspace indicator"
model: ListModel {
ListElement {
key: "none"
name: "None"
}
ListElement {
key: "index"
name: "Index"
}
ListElement {
key: "name"
name: "Name"
}
}
currentKey: Settings.data.bar.showWorkspaceLabel
onSelected: key => {
Settings.data.bar.showWorkspaceLabel = key
}
}
NDivider {