diff --git a/hanatui/publish/hanatui b/hanatui/publish/hanatui index 50b0eaf..8a8abd0 100755 Binary files a/hanatui/publish/hanatui and b/hanatui/publish/hanatui differ diff --git a/hanatui/src/Tui/Components/StatsPanel.cs b/hanatui/src/Tui/Components/StatsPanel.cs index 8a5920e..7e2255a 100644 --- a/hanatui/src/Tui/Components/StatsPanel.cs +++ b/hanatui/src/Tui/Components/StatsPanel.cs @@ -98,6 +98,7 @@ public static class StatsPanel /// /// Renders a horizontal block bar of the given width. /// e.g. [████████░░░░] + /// Result is a markup string safe for embedding inside a larger Markup call. /// private static string BuildBar(double percent, int width, string color) { @@ -105,8 +106,11 @@ public static class StatsPanel filled = Math.Clamp(filled, 0, width); var empty = width - filled; - var bar = new string('\u2588', filled) + new string('\u2591', empty); - return $"[[{color}]{bar}[/]]"; + // \u2588 = █ \u2591 = ░ + // [[ and ]] are Spectre escape sequences for literal [ and ] + var filledStr = new string('\u2588', filled); + var emptyStr = new string('\u2591', empty); + return $"[[[{color}]{filledStr}[/][dim]{emptyStr}[/]]]"; } private static string CpuColor(double pct) => pct switch