mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
NTabBar + NTabBarButton
This commit is contained in:
@@ -124,18 +124,21 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
// Monitor tabs - only visible when not syncing
|
||||
TabBar {
|
||||
NTabBar {
|
||||
id: monitorTabBar
|
||||
Layout.fillWidth: true
|
||||
visible: !Settings.data.bar.syncAcrossMonitors
|
||||
currentIndex: currentMonitorIndex
|
||||
onCurrentIndexChanged: currentMonitorIndex = currentIndex
|
||||
|
||||
Repeater {
|
||||
model: Quickshell.screens
|
||||
TabButton {
|
||||
NTabButton {
|
||||
required property var modelData
|
||||
required property int index
|
||||
text: modelData.name
|
||||
onClicked: currentMonitorIndex = index
|
||||
tabIndex: index
|
||||
checked: monitorTabBar.currentIndex === index
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -150,6 +153,7 @@ ColumnLayout {
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
visible: !Settings.data.bar.syncAcrossMonitors
|
||||
//TODO TRANSLATE
|
||||
label: `Show bar on ${currentMonitorName}`
|
||||
description: `Enable or disable the bar on this monitor`
|
||||
checked: (Settings.data.bar.monitors || []).length === 0 || (Settings.data.bar.monitors || []).indexOf(currentMonitorName) !== -1
|
||||
|
||||
Reference in New Issue
Block a user