summaryrefslogtreecommitdiff
path: root/modules/detachedcontent/bluetooth/BtPane.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-26 23:11:28 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-26 23:11:28 +1000
commitdb1e2ea3bf7dd1f5ac1960ca4c9dc17757649460 (patch)
tree49db4ec68518e475f6e24f96373b28dd85e40e19 /modules/detachedcontent/bluetooth/BtPane.qml
parentdcontent: add bt pane (diff)
downloadcaelestia-shell-db1e2ea3bf7dd1f5ac1960ca4c9dc17757649460.tar.gz
caelestia-shell-db1e2ea3bf7dd1f5ac1960ca4c9dc17757649460.tar.bz2
caelestia-shell-db1e2ea3bf7dd1f5ac1960ca4c9dc17757649460.zip
dcontent: impl bt settings
Diffstat (limited to 'modules/detachedcontent/bluetooth/BtPane.qml')
-rw-r--r--modules/detachedcontent/bluetooth/BtPane.qml42
1 files changed, 38 insertions, 4 deletions
diff --git a/modules/detachedcontent/bluetooth/BtPane.qml b/modules/detachedcontent/bluetooth/BtPane.qml
index 750166b..e72b1ab 100644
--- a/modules/detachedcontent/bluetooth/BtPane.qml
+++ b/modules/detachedcontent/bluetooth/BtPane.qml
@@ -1,23 +1,30 @@
pragma ComponentBehavior: Bound
+import ".."
import qs.widgets
import qs.config
import QtQuick
import QtQuick.Layouts
RowLayout {
+ id: root
+
+ required property Session session
+
anchors.fill: parent
spacing: 0
Item {
- Layout.preferredWidth: Math.floor(parent.width / 3)
+ Layout.preferredWidth: Math.floor(parent.width * 0.4)
Layout.fillHeight: true
DeviceList {
anchors.margins: Appearance.padding.large + Appearance.padding.normal
anchors.leftMargin: Appearance.padding.large
anchors.rightMargin: Appearance.padding.large + Appearance.padding.normal / 2
+
+ session: root.session
}
InnerBorder {
@@ -30,13 +37,40 @@ RowLayout {
Layout.fillWidth: true
Layout.fillHeight: true
- Details {
- anchors.margins: Appearance.padding.normal
- anchors.leftMargin: Appearance.padding.normal / 2
+ Loader {
+ anchors.fill: parent
+ anchors.margins: Appearance.padding.large * 2 + Appearance.padding.normal
+ anchors.leftMargin: Appearance.padding.large * 2
+ anchors.rightMargin: Appearance.padding.large * 2 + Appearance.padding.normal / 2
+
+ asynchronous: true
+ sourceComponent: root.session.bt.active ? details : settings
}
InnerBorder {
leftThickness: Appearance.padding.normal / 2
}
+
+ Component {
+ id: settings
+
+ Settings {
+ anchors.margins: Appearance.padding.normal
+ anchors.leftMargin: Appearance.padding.normal / 2
+
+ session: root.session
+ }
+ }
+
+ Component {
+ id: details
+
+ Details {
+ anchors.margins: Appearance.padding.normal
+ anchors.leftMargin: Appearance.padding.normal / 2
+
+ session: root.session
+ }
+ }
}
}