From feef763035bf53466589b70bfd1c6912969f374c Mon Sep 17 00:00:00 2001 From: gramps Date: Fri, 30 Oct 2026 10:45:24 -0700 Subject: [PATCH] fix(ui): EDIT label is white in both states MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The armed state was fixed to on-accent last build, but the resting state kept on-surface-variant (#94a3b8) — so with EDIT off, which is its normal state, the label was grey on the dark bar. The label is white always now; only the fill changes (neutral → blue). The redundant foreground setter is gone, and UiShellTests asserts the resting colour rather than the trigger. --- Controls/TopBar.xaml | 3 +-- ytLive.Tests/UiShellTests.cs | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Controls/TopBar.xaml b/Controls/TopBar.xaml index eb137b4..93b13f8 100644 --- a/Controls/TopBar.xaml +++ b/Controls/TopBar.xaml @@ -59,7 +59,7 @@ looked pressed. --> + FontWeight="Bold" FontSize="12" Foreground="{StaticResource Brush.OnAccent}" BorderThickness="0"> @@ -68,7 +68,6 @@ - diff --git a/ytLive.Tests/UiShellTests.cs b/ytLive.Tests/UiShellTests.cs index 829f736..259b733 100644 --- a/ytLive.Tests/UiShellTests.cs +++ b/ytLive.Tests/UiShellTests.cs @@ -30,7 +30,9 @@ public class UiShellTests // 2. EDIT: resting face differs from the armed face, and the label follows it. Assert.Contains("x:Name=\"EditBody\" Background=\"{StaticResource Brush.SurfaceContainerHigh}\"", topBar); Assert.Contains("", topBar); - Assert.Contains("", topBar); + // The label is white in BOTH states — only the fill changes. A muted resting colour is + // what made it illegible on the dark bar (creator, 2026-10-30). + Assert.Contains("FontSize=\"12\" Foreground=\"{StaticResource Brush.OnAccent}\"", topBar); // 3. Active scene = orange; live stays red. Assert.Contains("IsStaged}\" Value=\"True\">\n ", strip);