From 0275e30103636278073e490342068fe07b323efe Mon Sep 17 00:00:00 2001 From: gramps Date: Fri, 30 Oct 2026 07:56:02 -0700 Subject: [PATCH] =?UTF-8?q?design:=20shell=20to=20tokens=20=E2=80=94=20top?= =?UTF-8?q?=20bar,=20window,=20scene=20strip=20(surface=202=20of=20the=20s?= =?UTF-8?q?weep)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Telemetry readouts (bitrate, FPS, dropped, live duration) now wear JetBrains Mono, so the tabular digits stop shifting width as values change — the first place the bundled mono face is actually visible. - Scene tiles: staged = blue (selection), live/program = red. Both were orange, which meant the same colour marked two different states and neither was the live colour. - EDIT toggle: "on" is the interactive accent, not orange. Orange now means warning only. - Wordmark's two-tone accent, avatar chrome, readout panel, tile borders and the program badge all resolve from tokens. Guard list extended: MainWindow.xaml, Controls/TopBar.xaml, Controls/SceneThumbnailStrip.xaml — these three can no longer regress to a hardcoded colour. --- Controls/SceneThumbnailStrip.xaml | 14 +++++++------- Controls/TopBar.xaml | 20 ++++++++++---------- MainWindow.xaml | 24 ++++++++++++------------ ytLive.Tests/DesignTokensTests.cs | 5 +++-- 4 files changed, 32 insertions(+), 31 deletions(-) diff --git a/Controls/SceneThumbnailStrip.xaml b/Controls/SceneThumbnailStrip.xaml index f0295c9..7b16a35 100644 --- a/Controls/SceneThumbnailStrip.xaml +++ b/Controls/SceneThumbnailStrip.xaml @@ -1,7 +1,7 @@ - + @@ -16,26 +16,26 @@ MouseLeftButtonDown="Thumbnail_MouseLeftButtonDown"> - + + CornerRadius="3" Background="{StaticResource Brush.Primary}"> - + diff --git a/Controls/TopBar.xaml b/Controls/TopBar.xaml index cbaac03..1d4fb0b 100644 --- a/Controls/TopBar.xaml +++ b/Controls/TopBar.xaml @@ -23,9 +23,9 @@ - @@ -44,7 +44,7 @@ + Fill="{StaticResource Brush.OnSurfaceVariant}" Width="18" Height="18" Stretch="Uniform"/> @@ -57,15 +57,15 @@ + FontWeight="Bold" FontSize="12" Foreground="{StaticResource Brush.OnTertiary}" BorderThickness="0"> - + - + @@ -76,7 +76,7 @@ family — segments host, Start/Go Live, and Test all sit at 32. --> - + @@ -135,11 +135,11 @@ - + - diff --git a/MainWindow.xaml b/MainWindow.xaml index c8edca6..a5959a7 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -12,7 +12,7 @@ Title="{Binding WindowTitle}" Height="1040" Width="1920" MinWidth="1366" MinHeight="768" Icon="/ytLive;component/Assets/llamacasty-icon.png" - Background="#1a1a2e" + Background="{StaticResource Brush.Background}" FontFamily="{StaticResource FontFamily.Sans}" WindowStartupLocation="Manual" Closing="MainWindow_Closing" @@ -39,7 +39,7 @@ - + @@ -82,7 +82,7 @@ - + @@ -97,17 +97,17 @@ - - + + - + + Foreground="{StaticResource Brush.OnSurface}" FontSize="13" FontFamily="{StaticResource FontFamily.Mono}" HorizontalAlignment="Right" Margin="0,0,0,2"/> - - + @@ -118,12 +118,12 @@ - + + Foreground="{StaticResource Brush.Attention}" FontSize="13" FontFamily="{StaticResource FontFamily.Mono}" FontWeight="SemiBold" HorizontalAlignment="Right" Margin="0,0,0,2"/> + Foreground="{StaticResource Brush.Attention}" FontSize="12" TextWrapping="Wrap" Margin="0,0,0,6"/> m.Value) - .Where(v => v is not "#ffffff" and not "#000000" and not "#FFFFFF" and not "#000000") + .Where(v => !v.Equals("#ffffff", StringComparison.OrdinalIgnoreCase) + && !v.Equals("#000000", StringComparison.OrdinalIgnoreCase)) .Distinct(StringComparer.OrdinalIgnoreCase) .ToList();