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

50 lines
1.3 KiB
QML

pragma ComponentBehavior: Bound
import QtQuick.Layouts
import Caelestia.Config
import qs.modules.nexus.common
PageBase {
id: root
title: qsTr("Tray")
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("Background")
checked: Config.bar.tray.background
onToggled: GlobalConfig.bar.tray.background = checked
}
ToggleRow {
Layout.fillWidth: true
text: qsTr("Recolour icons")
checked: Config.bar.tray.recolour
onToggled: GlobalConfig.bar.tray.recolour = checked
}
ToggleRow {
Layout.fillWidth: true
text: qsTr("Compact")
checked: Config.bar.tray.compact
onToggled: GlobalConfig.bar.tray.compact = checked
}
ToggleRow {
Layout.fillWidth: true
last: true
text: qsTr("Popout on hover")
subtext: qsTr("Show the tray menu popout when hovering")
checked: Config.bar.popouts.tray
onToggled: GlobalConfig.bar.popouts.tray = checked
}
}
}