summaryrefslogtreecommitdiff
path: root/modules/controlcenter/network/NetworkPane.qml
diff options
context:
space:
mode:
authorATMDA <atdma2600@gmail.com>2025-11-09 19:17:26 -0500
committerATMDA <atdma2600@gmail.com>2025-11-09 19:17:26 -0500
commit81a8157b67c4d2416d9c4550afc5b50c943352e4 (patch)
tree344276e5f9610aa5e6bb106441d9dbe524036ef3 /modules/controlcenter/network/NetworkPane.qml
parentfix: window title while keeping new panels (diff)
downloadcaelestia-shell-81a8157b67c4d2416d9c4550afc5b50c943352e4.tar.gz
caelestia-shell-81a8157b67c4d2416d9c4550afc5b50c943352e4.tar.bz2
caelestia-shell-81a8157b67c4d2416d9c4550afc5b50c943352e4.zip
fix: panels (i'm debugging)
new file: modules/bar/components/Settings.qml new file: modules/bar/components/SettingsIcon.qml new file: modules/controlcenter/audio/AudioPane.qml new file: modules/controlcenter/network/Details.qml new file: modules/controlcenter/network/NetworkList.qml new file: modules/controlcenter/network/NetworkPane.qml new file: modules/controlcenter/network/Settings.qml
Diffstat (limited to 'modules/controlcenter/network/NetworkPane.qml')
-rw-r--r--modules/controlcenter/network/NetworkPane.qml79
1 files changed, 79 insertions, 0 deletions
diff --git a/modules/controlcenter/network/NetworkPane.qml b/modules/controlcenter/network/NetworkPane.qml
new file mode 100644
index 0000000..f37eedd
--- /dev/null
+++ b/modules/controlcenter/network/NetworkPane.qml
@@ -0,0 +1,79 @@
+pragma ComponentBehavior: Bound
+
+import ".."
+import qs.components
+import qs.components.effects
+import qs.components.containers
+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 * 0.4)
+ Layout.minimumWidth: 420
+ Layout.fillHeight: true
+
+ NetworkList {
+ anchors.fill: parent
+ 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 {
+ leftThickness: 0
+ rightThickness: Appearance.padding.normal / 2
+ }
+ }
+
+ Item {
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+
+ Loader {
+ id: loader
+
+ anchors.fill: parent
+ anchors.margins: Appearance.padding.large * 2
+
+ sourceComponent: root.session.network.active ? details : settings
+
+ Behavior on opacity {
+ NumberAnimation {
+ duration: 200
+ }
+ }
+ }
+
+ InnerBorder {
+ leftThickness: Appearance.padding.normal / 2
+ }
+
+ Component {
+ id: settings
+
+ Settings {
+ session: root.session
+ }
+ }
+
+ Component {
+ id: details
+
+ Details {
+ session: root.session
+ }
+ }
+ }
+}