diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-23 23:04:28 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-23 23:04:28 +1000 |
| commit | 982a5a3e8de4abb322b53ea0bf77b5e57860540f (patch) | |
| tree | 59bff3a6eb8ea4c8de6d208465d0ea1361f15465 /modules/bar/popouts/Bluetooth.qml | |
| parent | internal: better styled switch (diff) | |
| download | caelestia-shell-982a5a3e8de4abb322b53ea0bf77b5e57860540f.tar.gz caelestia-shell-982a5a3e8de4abb322b53ea0bf77b5e57860540f.tar.bz2 caelestia-shell-982a5a3e8de4abb322b53ea0bf77b5e57860540f.zip | |
dcontent: create bluetooth panel
Diffstat (limited to 'modules/bar/popouts/Bluetooth.qml')
| -rw-r--r-- | modules/bar/popouts/Bluetooth.qml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/modules/bar/popouts/Bluetooth.qml b/modules/bar/popouts/Bluetooth.qml index 5b1127f..56dd4a4 100644 --- a/modules/bar/popouts/Bluetooth.qml +++ b/modules/bar/popouts/Bluetooth.qml @@ -12,6 +12,8 @@ import QtQuick.Layouts ColumnLayout { id: root + required property Item wrapper + spacing: Appearance.spacing.small StyledText { @@ -170,6 +172,42 @@ ColumnLayout { } } + StyledRect { + Layout.topMargin: Appearance.spacing.small + implicitWidth: expandBtn.implicitWidth + Appearance.padding.normal * 2 + implicitHeight: expandBtn.implicitHeight + Appearance.padding.small + + radius: Appearance.rounding.normal + color: Colours.palette.m3primaryContainer + + StateLayer { + color: Colours.palette.m3onPrimaryContainer + + function onClicked(): void { + root.wrapper.detach("bluetooth"); + } + } + + RowLayout { + id: expandBtn + + anchors.centerIn: parent + spacing: Appearance.spacing.small + + StyledText { + Layout.leftMargin: Appearance.padding.smaller + text: qsTr("Open panel") + color: Colours.palette.m3onPrimaryContainer + } + + MaterialIcon { + text: "chevron_right" + color: Colours.palette.m3onPrimaryContainer + font.pointSize: Appearance.font.size.large + } + } + } + component Toggle: RowLayout { required property string label property alias checked: toggle.checked |