summaryrefslogtreecommitdiff
path: root/modules/bar/components/Power.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-30 17:46:47 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-30 17:46:47 +1000
commit472ed40289078c7f6dff2bdda55b27cc55ccd2e4 (patch)
tree9346ec870de82d52d5e153285a894ee0b9f9c096 /modules/bar/components/Power.qml
parentbluetooth: lazy update devices (diff)
downloadcaelestia-shell-472ed40289078c7f6dff2bdda55b27cc55ccd2e4.tar.gz
caelestia-shell-472ed40289078c7f6dff2bdda55b27cc55ccd2e4.tar.bz2
caelestia-shell-472ed40289078c7f6dff2bdda55b27cc55ccd2e4.zip
refactor: use layout for bar
Also add power icon
Diffstat (limited to 'modules/bar/components/Power.qml')
-rw-r--r--modules/bar/components/Power.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/bar/components/Power.qml b/modules/bar/components/Power.qml
new file mode 100644
index 0000000..ba34238
--- /dev/null
+++ b/modules/bar/components/Power.qml
@@ -0,0 +1,10 @@
+import "root:/widgets"
+import "root:/config"
+
+MaterialIcon {
+ text: "power_settings_new"
+ color: Appearance.colours.red
+ font.bold: true
+ x: implicitWidth + Appearance.padding.large * 2 - BarConfig.sizes.height
+ width: BarConfig.sizes.height - Appearance.padding.large * 2
+}