From 3dc6111825c3bd6be4b80ba553f78a33f8130d7a Mon Sep 17 00:00:00 2001 From: Damocles Date: Sun, 12 Apr 2026 00:38:50 +0200 Subject: [PATCH] escape icons so edit tool does not break them --- modules/Battery.qml | 4 ++-- modules/Bluetooth.qml | 2 +- modules/Cpu.qml | 2 +- modules/Disk.qml | 2 +- modules/IdleInhibitor.qml | 2 +- modules/Memory.qml | 2 +- modules/Mpris.qml | 2 +- modules/Network.qml | 8 ++++---- modules/Notifications.qml | 6 +++--- modules/PowerProfile.qml | 8 ++++---- modules/Temperature.qml | 2 +- modules/Volume.qml | 2 +- modules/Wlogout.qml | 2 +- 13 files changed, 22 insertions(+), 22 deletions(-) diff --git a/modules/Battery.qml b/modules/Battery.qml index 56f532b..4290633 100644 --- a/modules/Battery.qml +++ b/modules/Battery.qml @@ -13,8 +13,8 @@ Row { M.BarIcon { icon: { - if (root.charging) return "󰂄"; - const icons = ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󱟢"]; + if (root.charging) return "\uDB80\uDC84"; + const icons = ["\uDB80\uDC8E", "\uDB80\uDC7A", "\uDB80\uDC7B", "\uDB80\uDC7C", "\uDB80\uDC7D", "\uDB80\uDC7E", "\uDB80\uDC7F", "\uDB80\uDC80", "\uDB80\uDC81", "\uDB80\uDC82", "\uDB85\uDFE2"]; return icons[Math.min(10, Math.floor(root.pct / 10))]; } color: root.pct < 15 ? M.Theme.base08 : M.Theme.base05 diff --git a/modules/Bluetooth.qml b/modules/Bluetooth.qml index 97d0ef9..a7ac784 100644 --- a/modules/Bluetooth.qml +++ b/modules/Bluetooth.qml @@ -30,7 +30,7 @@ Row { M.BarIcon { visible: root.status === "connected" - icon: "" + icon: "\uF294" anchors.verticalCenter: parent.verticalCenter } Text { diff --git a/modules/Cpu.qml b/modules/Cpu.qml index 03defe8..bb0a860 100644 --- a/modules/Cpu.qml +++ b/modules/Cpu.qml @@ -53,7 +53,7 @@ Row { } M.BarIcon { - icon: "" + icon: "\uF2DB" anchors.verticalCenter: parent.verticalCenter } Text { diff --git a/modules/Disk.qml b/modules/Disk.qml index a092c6d..d1e0417 100644 --- a/modules/Disk.qml +++ b/modules/Disk.qml @@ -32,7 +32,7 @@ Row { } M.BarIcon { - icon: "" + icon: "\uF0C9" anchors.verticalCenter: parent.verticalCenter } Text { diff --git a/modules/IdleInhibitor.qml b/modules/IdleInhibitor.qml index d5e20cd..41423f1 100644 --- a/modules/IdleInhibitor.qml +++ b/modules/IdleInhibitor.qml @@ -7,7 +7,7 @@ M.BarIcon { property bool active: false - icon: root.active ? "" : "" + icon: root.active ? "\uF06E" : "\uF070" Process { id: toggle diff --git a/modules/Memory.qml b/modules/Memory.qml index 65a9cc0..9711d86 100644 --- a/modules/Memory.qml +++ b/modules/Memory.qml @@ -32,7 +32,7 @@ Row { } M.BarIcon { - icon: "" + icon: "\uEFC5" anchors.verticalCenter: parent.verticalCenter } Text { diff --git a/modules/Mpris.qml b/modules/Mpris.qml index 49b5440..52e34f5 100644 --- a/modules/Mpris.qml +++ b/modules/Mpris.qml @@ -11,7 +11,7 @@ Row { readonly property bool playing: player?.playbackState === MprisPlaybackState.Playing M.BarIcon { - icon: root.playing ? "" : (root.player?.playbackState === MprisPlaybackState.Paused ? "󰏤" : "󰓛") + icon: root.playing ? "\uF04B" : (root.player?.playbackState === MprisPlaybackState.Paused ? "\uDB80\uDFE4" : "\uDB81\uDCDB") anchors.verticalCenter: parent.verticalCenter } M.BarLabel { diff --git a/modules/Network.qml b/modules/Network.qml index f05429c..74589e5 100644 --- a/modules/Network.qml +++ b/modules/Network.qml @@ -45,12 +45,12 @@ Row { M.BarIcon { icon: { if (root.state === "wifi") - return ""; + return "\uF1EB"; if (root.state === "eth") - return "󰈀"; + return "\uDB80\uDE00"; if (root.state === "linked") - return "󱘖"; - return "󰣽"; + return "\uDB85\uDE16"; + return "\uDB82\uDCFD"; } anchors.verticalCenter: parent.verticalCenter } diff --git a/modules/Notifications.qml b/modules/Notifications.qml index 8fe2178..63f3890 100644 --- a/modules/Notifications.qml +++ b/modules/Notifications.qml @@ -30,9 +30,9 @@ Row { M.BarIcon { icon: { - if (root.inhibited) return root.count > 0 ? "󰂛" : "󰪑"; - if (root.dnd) return root.count > 0 ? "󰂠" : "󰪓"; - return root.count > 0 ? "󱅫" : "󰂜"; + if (root.inhibited) return root.count > 0 ? "\uDB80\uDC9B" : "\uDB82\uDE91"; + if (root.dnd) return root.count > 0 ? "\uDB80\uDCA0" : "\uDB82\uDE93"; + return root.count > 0 ? "\uDB84\uDD6B" : "\uDB80\uDC9C"; } anchors.verticalCenter: parent.verticalCenter } diff --git a/modules/PowerProfile.qml b/modules/PowerProfile.qml index ff3e676..b26d6ff 100644 --- a/modules/PowerProfile.qml +++ b/modules/PowerProfile.qml @@ -8,10 +8,10 @@ M.BarIcon { property string profile: "" icon: { - if (root.profile === "performance") return ""; - if (root.profile === "power-saver") return ""; - if (root.profile === "balanced") return ""; - return ""; + if (root.profile === "performance") return "\uF0E7"; + if (root.profile === "power-saver") return "\uF06C"; + if (root.profile === "balanced") return "\uF24E"; + return "\uF0E7"; } Process { diff --git a/modules/Temperature.qml b/modules/Temperature.qml index 5c39f70..62d5dd1 100644 --- a/modules/Temperature.qml +++ b/modules/Temperature.qml @@ -21,7 +21,7 @@ Row { } M.BarIcon { - icon: "" + icon: "\uF2C9" color: root.celsius > 80 ? M.Theme.base08 : M.Theme.base05 anchors.verticalCenter: parent.verticalCenter } diff --git a/modules/Volume.qml b/modules/Volume.qml index e52e4e4..92a5609 100644 --- a/modules/Volume.qml +++ b/modules/Volume.qml @@ -15,7 +15,7 @@ Row { readonly property bool muted: sink?.audio?.muted ?? false M.BarIcon { - icon: root.muted ? "" : (root.volume > 0.5 ? "" : (root.volume > 0 ? "" : "")) + icon: root.muted ? "\uF026" : (root.volume > 0.5 ? "\uF028" : (root.volume > 0 ? "\uF027" : "\uF026")) anchors.verticalCenter: parent.verticalCenter } M.BarLabel { diff --git a/modules/Wlogout.qml b/modules/Wlogout.qml index 191d88b..dfcae8b 100644 --- a/modules/Wlogout.qml +++ b/modules/Wlogout.qml @@ -3,7 +3,7 @@ import Quickshell.Io import "." as M M.BarIcon { - icon: "" + icon: "\uF011" Process { id: proc