summaryrefslogtreecommitdiff
path: root/modules/bar/popouts
diff options
context:
space:
mode:
Diffstat (limited to 'modules/bar/popouts')
-rw-r--r--modules/bar/popouts/Content.qml5
-rw-r--r--modules/bar/popouts/Network.qml22
2 files changed, 27 insertions, 0 deletions
diff --git a/modules/bar/popouts/Content.qml b/modules/bar/popouts/Content.qml
index 6b65f56..43f2c8e 100644
--- a/modules/bar/popouts/Content.qml
+++ b/modules/bar/popouts/Content.qml
@@ -27,6 +27,11 @@ Item {
}
Popout {
+ name: "network"
+ source: "Network.qml"
+ }
+
+ Popout {
name: "battery"
source: "Battery.qml"
}
diff --git a/modules/bar/popouts/Network.qml b/modules/bar/popouts/Network.qml
new file mode 100644
index 0000000..7a79ef1
--- /dev/null
+++ b/modules/bar/popouts/Network.qml
@@ -0,0 +1,22 @@
+import "root:/widgets"
+import "root:/services"
+import "root:/config"
+import QtQuick
+
+Column {
+ id: root
+
+ spacing: Appearance.spacing.normal
+
+ StyledText {
+ text: qsTr("Connected to: %1").arg(Network.active?.ssid ?? "None")
+ }
+
+ StyledText {
+ text: qsTr("Strength: %1/100").arg(Network.active?.strength ?? 0)
+ }
+
+ StyledText {
+ text: qsTr("Frequency: %1 MHz").arg(Network.active?.frequency ?? 0)
+ }
+}