From 2dbc35b2855cdb0f9f0e02638b7c6ea6407f0b43 Mon Sep 17 00:00:00 2001 From: gramps Date: Fri, 30 Oct 2026 08:00:43 -0700 Subject: [PATCH] =?UTF-8?q?design:=20left=20panel=20to=20tokens=20(surface?= =?UTF-8?q?=203=20of=20the=20sweep)=20=E2=80=94=20101=20colours=20gone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The layers/properties panel is the surface the creator looks at most, and it carried the largest hardcoded palette in the app: 50 label greys, 15 icon blues, and a scatter of one-off hexes. All of it resolves from tokens now. Three sites needed a decision rather than a mapping, because the same hex meant different things: - the + add icon and the chat author name were the old brand red → interactive accent (blue) - the webcam lock alert is an ERROR, not decoration → error surface + error border - the ✕ revert affordance was red, which the standard reserves for live/record → muted. ✓ stays a positive confirm, now in the interactive accent rather than a green that exists nowhere else in the palette. If green checks are missed, a `positive` token is the way back, not a literal. - Super Chat gold was #eab308; it is the standard's amber now (game audio + Super Chat only). Guard list extended: Controls/LeftPanel.xaml can no longer regress to a raw colour. --- Controls/LeftPanel.xaml | 198 +++++++++++++++--------------- ytLive.Tests/DesignTokensTests.cs | 3 +- 2 files changed, 101 insertions(+), 100 deletions(-) diff --git a/Controls/LeftPanel.xaml b/Controls/LeftPanel.xaml index f58805f..de8145b 100644 --- a/Controls/LeftPanel.xaml +++ b/Controls/LeftPanel.xaml @@ -13,20 +13,20 @@ + BorderBrush="{StaticResource Brush.Outline}" BorderThickness="1"/> + Foreground="{StaticResource Brush.OnSurface}" VerticalAlignment="Center"/> + BorderBrush="{StaticResource Brush.Outline}" BorderThickness="1"/> + Foreground="{StaticResource Brush.OnSurface}" VerticalAlignment="Center"/> + Foreground="{StaticResource Brush.OnSurfaceVariant}" VerticalAlignment="Center"/> - + @@ -55,11 +55,11 @@ - - + @@ -95,7 +95,7 @@ PreviewMouseLeftButtonDown="List_PreviewMouseLeftButtonDown" PreviewMouseMove="List_PreviewMouseMove" PreviewMouseLeftButtonUp="List_PreviewMouseLeftButtonUp" - Foreground="#e0e0e0" FontSize="13"> + Foreground="{StaticResource Brush.OnSurface}" FontSize="13"> - + - + - + - + - + - + - + - + - + @@ -247,13 +247,13 @@ Command="{Binding DataContext.EditElementCommand, RelativeSource={RelativeSource AncestorType=ListBox}}" CommandParameter="{Binding}" Style="{StaticResource IconButton}"> + Fill="{StaticResource Brush.OnSurface}" Width="13" Height="13" Stretch="Uniform"/> @@ -262,7 +262,7 @@ CommandParameter="{Binding}" Style="{StaticResource IconButton}" Visibility="{Binding IsBackground, Converter={StaticResource HiddenBoolToVis}}"> + Fill="{StaticResource Brush.OnSurface}" Width="13" Height="13" Stretch="Uniform"/> @@ -277,10 +277,10 @@ Red when a required resource (the one-and-only webcam) could not be locked; persists and re-polls until resolved. --> - - - + - + - + - + - + - + - + - + - + - - + - - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -635,12 +635,12 @@ - + - + @@ -654,7 +654,7 @@ + IsReadOnly="True" Foreground="{StaticResource Brush.OnSurfaceVariant}" VerticalAlignment="Center"/>