Dock: add position option

This commit is contained in:
Ly-sec
2025-10-04 18:27:32 +02:00
parent c212fd411e
commit 6235d2b3d6
11 changed files with 399 additions and 27 deletions
+27
View File
@@ -29,6 +29,33 @@ ColumnLayout {
description: I18n.tr("settings.dock.appearance.section.description")
}
ColumnLayout {
spacing: Style.marginXXS * scaling
Layout.fillWidth: true
NLabel {
label: I18n.tr("settings.dock.appearance.position.label")
description: I18n.tr("settings.dock.appearance.position.description")
}
NComboBox {
Layout.fillWidth: true
model: [{
"key": "bottom",
"name": I18n.tr("settings.dock.appearance.position.bottom")
}, {
"key": "top",
"name": I18n.tr("settings.dock.appearance.position.top")
}, {
"key": "left",
"name": I18n.tr("settings.dock.appearance.position.left")
}, {
"key": "right",
"name": I18n.tr("settings.dock.appearance.position.right")
}]
currentKey: Settings.data.dock.position || "bottom"
onSelected: key => Settings.data.dock.position = key
}
}
NToggle {
label: I18n.tr("settings.dock.appearance.auto-hide.label")
description: I18n.tr("settings.dock.appearance.auto-hide.description")