From f3156126eed19b9ea306330336da67b2a3304526 Mon Sep 17 00:00:00 2001 From: Emmanuel Hansen Date: Wed, 9 Sep 2026 11:27:39 +0000 Subject: [PATCH] fluent 2 - fix pipspager button scale transition --- .../Controls/PipsPager.xaml | 62 +++++++++++-------- 1 file changed, 36 insertions(+), 26 deletions(-) diff --git a/src/Avalonia.Themes.Fluent2/Controls/PipsPager.xaml b/src/Avalonia.Themes.Fluent2/Controls/PipsPager.xaml index ceb5be7f2d..c08ac039f0 100644 --- a/src/Avalonia.Themes.Fluent2/Controls/PipsPager.xaml +++ b/src/Avalonia.Themes.Fluent2/Controls/PipsPager.xaml @@ -5,47 +5,61 @@ + Pip = 4px dot (ControlStrongFillColorDefault), 6px on hover/selection (hover TextFillColorSecondary, + selected ControlStrongFillColorDefault - WinUI does not use the accent for the selected pip). + Pip hit target 12x20 (20x12 vertical); nav buttons 20x20, ControlCornerRadius, 8px solid-caret glyphs + (EDDB/EDDC at FontSize 8), transparent fills. Brush values below are the Fluent 2 token colors inlined + per variant (token key noted per group). WinUI's 0.875 press scale on the nav buttons is intentionally + not reproduced (no press-scale in this theme). --> M 8.12,2.29 L 3.41,7.00 C 3.14,7.27 3.14,7.71 3.41,7.98 L 8.12,12.69 C 8.57,13.14 9.33,12.82 9.33,12.19 L 9.33,2.79 C 9.33,2.16 8.57,1.84 8.12,2.29 Z M 3.88,2.29 L 8.59,7.00 C 8.86,7.27 8.86,7.71 8.59,7.98 L 3.88,12.69 C 3.43,13.14 2.67,12.82 2.67,12.19 L 2.67,2.79 C 2.67,2.16 3.43,1.84 3.88,2.29 Z - + M 2.29,8.12 L 7.00,3.41 C 7.27,3.14 7.71,3.14 7.98,3.41 L 12.69,8.12 C 13.14,8.57 12.82,9.33 12.19,9.33 L 2.79,9.33 C 2.16,9.33 1.84,8.57 2.29,8.12 Z M 2.29,3.88 L 7.00,8.59 C 7.27,8.86 7.71,8.86 7.98,8.59 L 12.69,3.88 C 13.14,3.43 12.82,2.67 12.19,2.67 L 2.79,2.67 C 2.16,2.67 1.84,3.43 2.29,3.88 Z + 20 + 12 + 24 + 24 + 1 + 8 + - - - - + + + + + VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" > + + + + + + + @@ -59,6 +73,7 @@ + - - + ControlStrongFillColorDefault #72000000; hover/pressed = TextFillColorSecondary #9E000000; + selected = ControlStrongFillColorDefault #72000000; disabled = ControlStrongFillColorDisabled #51000000. --> @@ -331,8 +341,8 @@ + ControlStrongFillColorDefault #8BFFFFFF; hover/pressed = TextFillColorSecondary #C5FFFFFF; + selected = ControlStrongFillColorDefault #8BFFFFFF; disabled = ControlStrongFillColorDisabled #3FFFFFFF. -->