nosignal-shell/modules/nexus/pages/panels/taskbar/BarActiveWindow.qml
2026-06-07 18:32:26 +10:00

51 lines
1.5 KiB
QML

pragma ComponentBehavior: Bound
import QtQuick.Layouts
import Caelestia.Config
import qs.modules.nexus.common
PageBase {
id: root
title: qsTr("Active window")
isSubPage: true
ColumnLayout {
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
width: root.cappedWidth
spacing: Tokens.spacing.extraSmall / 2
ToggleRow {
Layout.fillWidth: true
first: true
text: qsTr("Compact")
checked: Config.bar.activeWindow.compact
onToggled: GlobalConfig.bar.activeWindow.compact = checked
}
ToggleRow {
Layout.fillWidth: true
text: qsTr("Inverted")
checked: Config.bar.activeWindow.inverted
onToggled: GlobalConfig.bar.activeWindow.inverted = checked
}
ToggleRow {
Layout.fillWidth: true
text: qsTr("Show on hover")
subtext: qsTr("Only show the active window title while hovering")
checked: Config.bar.activeWindow.showOnHover
onToggled: GlobalConfig.bar.activeWindow.showOnHover = checked
}
ToggleRow {
Layout.fillWidth: true
last: true
text: qsTr("Popout on hover")
subtext: qsTr("Show a window details popout when hovering")
checked: Config.bar.popouts.activeWindow
onToggled: GlobalConfig.bar.popouts.activeWindow = checked
}
}
}