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 implicitHeight: moduleHeight
implicitWidth: batLayout.implicitWidth + 16 implicitWidth: batLayout.implicitWidth + 16
radius: Config.rounding radius: Config.rounding
function batteryIcon(percent, charging) { function batteryIcon() {
if (percent <= 15) if (root.charging) { return "\uea33"; }
return charging ? "battery_charging_20" : "battery_alert"; else if(root.percent <= 20) { return "\uea34" }
if (percent <= 30) else if(root.percent <= 40) { return "\uea2f" }
return charging ? "battery_charging_30" : "battery_2_bar"; else if(root.percent <= 60) { return "\uea30" }
if (percent <= 50) else if(root.percent <= 80) { return "\uea31" }
return charging ? "battery_charging_50" : "battery_3_bar"; else if(root.percent >= 80) { return "\uea32" }
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";
} }
RowLayout { RowLayout {
id: batLayout id: batLayout
anchors.centerIn: root anchors.centerIn: root
MaterialIcon { MaterialIcon {
text: root.batteryIcon(root.percent, root.charging) text: root.batteryIcon()
} }
StyledText { StyledText {
text: Math.floor(root.percent) + "%" text: Math.floor(root.percent) + "%"

View file

@ -26,7 +26,7 @@ Rectangle {
id: songLayout id: songLayout
anchors.centerIn: root anchors.centerIn: root
MaterialIcon { MaterialIcon {
text: "music_note_2" text: "\ueafc"
} }
StyledText { StyledText {
Layout.maximumWidth: 400 Layout.maximumWidth: 400

View file

@ -18,18 +18,19 @@ Rectangle {
function getVolumeIcon() { function getVolumeIcon() {
let volume = Pipewire.ready ? root.defaultAudio.audio.volume : null; let volume = Pipewire.ready ? root.defaultAudio.audio.volume : null;
if (root.mute) { if (root.mute) {
return "\ue04f"; return "\uf1c3";
} }
if (volume <= 0.33) { if (volume <= 0.33) {
return "\ue04e"; return "\u1019d";
} }
if (volume <= 0.66) { if (volume <= 0.66) {
return "\ue04d"; return "\ueb4f";
} }
if (volume >= 0.66) { if (volume >= 0.66) {
return "\ue050"; return "\ueb51";
} }
} }
PwObjectTracker { PwObjectTracker {
objects: [Pipewire.ready ? Pipewire.defaultAudioSink : null] objects: [Pipewire.ready ? Pipewire.defaultAudioSink : null]
} }

View file

@ -43,7 +43,7 @@ WrapperRectangle {
RowLayout { RowLayout {
Layout.alignment: Qt.AlignTop Layout.alignment: Qt.AlignTop
MaterialIcon { MaterialIcon {
text: "\ue7f4" text: "\uea35"
font.pixelSize: 12 font.pixelSize: 12
} }
StyledText { StyledText {

View file

@ -3,15 +3,7 @@ import qs.settings
import QtQuick import QtQuick
Text { Text {
font.family: "Material Symbols Rounded" font.family: "tabler-icons"
color: Colors.base07 color: Colors.base07
font.pixelSize: Config.iconSize font.pixelSize: Config.iconSize
property bool fill: false
renderType: Text.NativeRendering
font.variableAxes: {
"FILL": fill ? 1 : 0,
"opsz": 24,
"wght": 400,
"GRAD": 24
}
} }