From 54902cb8380403ac13b135a2b42534de6fbc13ed Mon Sep 17 00:00:00 2001 From: gramps Date: Sun, 1 Nov 2026 16:26:20 -0800 Subject: [PATCH] ui(properties): no raw typography left in the panel, and one heading rank MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The earlier pass checked wiring only; this is the typography sweep. Raw Foreground/FontSize labels are gone from the elements panel: - Opacity, Timer (minutes) and URI are headings above their control (PropertyHeader), with the control row on the panel's 10px indent — the same shape as Border Thickness/Opacity. - Scroll speed, scoreboard Opacity/Text size and their value readouts are PropertyFieldLabel. - The drag hint and the scoreboard sign-in note are PropertyHint. - Simulate (dev) keeps its orange, gains the field-label typography. - Edge, Text colour and Background were PropertySubHeader/SubHeader: ONE heading rank now, so PropertySubHeader and the legacy SubHeader are deleted from Themes/Controls.xaml. - DeveloperPanel — the last panel with raw typography and an unstyled CheckBox — now uses the same styles, and PropertiesStyleTests accepts PropertyPillCheck (the guard went stale when every check box became a pill switch). 18 tests pass; Release 0 warnings. --- Controls/DeveloperPanel.xaml | 10 +++--- Controls/LeftPanel.xaml | 50 +++++++++++++--------------- Themes/Controls.xaml | 23 +++++-------- ytLive.Tests/PropertiesStyleTests.cs | 12 +++++-- 4 files changed, 47 insertions(+), 48 deletions(-) diff --git a/Controls/DeveloperPanel.xaml b/Controls/DeveloperPanel.xaml index 64774bf..020fb7f 100644 --- a/Controls/DeveloperPanel.xaml +++ b/Controls/DeveloperPanel.xaml @@ -7,15 +7,15 @@ to a window or reference it from code that compiles in Release; the only host is OverlayHost.xaml.cs inside #if DEBUG. --> - + - diff --git a/Controls/LeftPanel.xaml b/Controls/LeftPanel.xaml index f5cd0b3..f6a5b91 100644 --- a/Controls/LeftPanel.xaml +++ b/Controls/LeftPanel.xaml @@ -315,10 +315,10 @@ - - - + + + @@ -375,7 +375,7 @@ + Style="{StaticResource PropertyHint}" Margin="10,2,0,0"/> @@ -500,21 +500,21 @@ Visibility="{Binding IsDevelopmentBuild, Converter={StaticResource BoolToVis}}"> - + - + - - + @@ -540,7 +540,7 @@ IsChecked="{Binding ScoreboardShowLastGift, Mode=TwoWay}"/> - + @@ -551,20 +551,18 @@ ItemsSource="{Binding ScoreboardColorOptions}" DisplayMemberPath="Name" SelectedValuePath="Hex" SelectedValue="{Binding ScoreboardBackgroundColor, Mode=TwoWay}"/> - - + - - + @@ -573,8 +571,8 @@ - - + +