lux-shell/modules/bar/components/notifications/NotificationMenu.qml
2025-08-02 21:09:08 -04:00

34 lines
698 B
QML

pragma ComponentBehavior: Bound
import qs.config
import qs.widgets
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import Quickshell
import Quickshell.Services.Notifications
import Quickshell.Widgets
StyledPopupWindow {
id: root
backgroundColor: Theme.palette.base300
margins: 16
radius: 8
content: ColumnLayout {
spacing: 8
RowLayout {
StyledText {
text: "Enabled"
}
Switch {
checkable: !!Notifications
checked: Bluetooth.defaultAdapter?.enabled ?? false
onClicked: Bluetooth.defaultAdapter.enabled = checked
}
}
}
}