diff options
Diffstat (limited to 'quickshell/items/Electrons.qml')
| -rw-r--r-- | quickshell/items/Electrons.qml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/quickshell/items/Electrons.qml b/quickshell/items/Electrons.qml new file mode 100644 index 0000000..f3164a0 --- /dev/null +++ b/quickshell/items/Electrons.qml @@ -0,0 +1,23 @@ +import QtQuick +import QtQuick.Layouts + +RowLayout { + spacing: 0 + Text { + text: " Electrons:" + color: shellRoot.white + font { + family: shellRoot.fontFamily + pixelSize: shellRoot.fontSize + } + } + Text { + text: battery + color: (battery <= redBatteryPoint) ? shellRoot.red : ((battery <= orangeBatteryPoint) ? shellRoot.orange : shellRoot.green) + font { + family: shellRoot.fontFamily + pixelSize: shellRoot.fontSize + bold: true + } + } +} |
