escape icons so edit tool does not break them

This commit is contained in:
Damocles 2026-04-12 00:38:50 +02:00
parent de2be39a88
commit 3dc6111825
13 changed files with 22 additions and 22 deletions

View file

@ -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