revert dwm styling, just use dwm instead

This commit is contained in:
lucy 2026-06-09 11:36:43 +02:00
commit 1d96e74bb6
5 changed files with 95 additions and 108 deletions

View file

@ -18,26 +18,20 @@ Rectangle {
implicitHeight: moduleHeight
implicitWidth: batLayout.implicitWidth + 16
radius: Config.rounding
function batteryIcon(percent, charging) {
if (percent <= 15)
return charging ? "battery_charging_20" : "battery_alert";
if (percent <= 30)
return charging ? "battery_charging_30" : "battery_2_bar";
if (percent <= 50)
return charging ? "battery_charging_50" : "battery_3_bar";
if (percent <= 70)
return charging ? "battery_charging_60" : "battery_4_bar";
if (percent <= 85)
return charging ? "battery_charging_80" : "battery_5_bar";
if (percent <= 95)
return charging ? "battery_charging_90" : "battery_6_bar";
return charging ? "battery_charging_full" : "battery_full";
function batteryIcon() {
if (root.charging) { return "\uea33"; }
else if(root.percent <= 20) { return "\uea34" }
else if(root.percent <= 40) { return "\uea2f" }
else if(root.percent <= 60) { return "\uea30" }
else if(root.percent <= 80) { return "\uea31" }
else if(root.percent >= 80) { return "\uea32" }
}
RowLayout {
id: batLayout
anchors.centerIn: root
MaterialIcon {
text: root.batteryIcon(root.percent, root.charging)
text: root.batteryIcon()
}
StyledText {
text: Math.floor(root.percent) + "%"