mirror of
https://github.com/tuxdotrs/tshell.git
synced 2026-09-19 18:49:02 +05:30
refactor(bar): modularize bar widgets and layout
This commit is contained in:
11
modules/bar/BatteryIndicator.qml
Normal file
11
modules/bar/BatteryIndicator.qml
Normal file
@@ -0,0 +1,11 @@
|
||||
pragma ComponentBehavior: Bound
|
||||
|
||||
import qs.ui
|
||||
import qs.services
|
||||
|
||||
BarButton {
|
||||
hoverHighlight: false
|
||||
pointerCursor: false
|
||||
label: `${Battery.percentage}% ${Battery.energyRate}W`
|
||||
iconSource: Battery.icon
|
||||
}
|
||||
Reference in New Issue
Block a user