From a6fe50e6bc47a3ca34b9adf6dc3515d7c80e211c Mon Sep 17 00:00:00 2001 From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Date: Mon, 14 Aug 2023 11:17:07 +0800 Subject: [PATCH] feat: transform style resources. --- src/Semi.Avalonia/Controls/ListBox.axaml | 68 +++++++++---------- src/Semi.Avalonia/Themes/Dark/ListBox.axaml | 49 +++++++++++++ src/Semi.Avalonia/Themes/Light/ListBox.axaml | 50 ++++++++++++++ src/Semi.Avalonia/Themes/Shared/ListBox.axaml | 25 +++++++ 4 files changed, 158 insertions(+), 34 deletions(-) diff --git a/src/Semi.Avalonia/Controls/ListBox.axaml b/src/Semi.Avalonia/Controls/ListBox.axaml index 5ba9a52..cc06cc2 100644 --- a/src/Semi.Avalonia/Controls/ListBox.axaml +++ b/src/Semi.Avalonia/Controls/ListBox.axaml @@ -120,11 +120,11 @@ - - - - - + + + + + - @@ -167,8 +167,8 @@ ContentTemplate="{TemplateBinding ContentTemplate}" Foreground="{TemplateBinding Foreground}" RecognizesAccessKey="True" - TextElement.FontSize="{DynamicResource RadioButtonFontSize}" - TextElement.Foreground="{DynamicResource RadioButtonForeground}" /> + TextElement.FontSize="{DynamicResource ListBoxItemRadioGroupFontSize}" + TextElement.Foreground="{DynamicResource ListBoxItemRadioGroupForeground}" /> @@ -178,8 +178,8 @@ diff --git a/src/Semi.Avalonia/Themes/Dark/ListBox.axaml b/src/Semi.Avalonia/Themes/Dark/ListBox.axaml index 15a5cc8..f30abc8 100644 --- a/src/Semi.Avalonia/Themes/Dark/ListBox.axaml +++ b/src/Semi.Avalonia/Themes/Dark/ListBox.axaml @@ -11,4 +11,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Semi.Avalonia/Themes/Light/ListBox.axaml b/src/Semi.Avalonia/Themes/Light/ListBox.axaml index 8dbf5be..038ed4a 100644 --- a/src/Semi.Avalonia/Themes/Light/ListBox.axaml +++ b/src/Semi.Avalonia/Themes/Light/ListBox.axaml @@ -11,4 +11,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Semi.Avalonia/Themes/Shared/ListBox.axaml b/src/Semi.Avalonia/Themes/Shared/ListBox.axaml index c920a66..8cb6391 100644 --- a/src/Semi.Avalonia/Themes/Shared/ListBox.axaml +++ b/src/Semi.Avalonia/Themes/Shared/ListBox.axaml @@ -1,4 +1,29 @@ 8 4 3 + + 16 + 6 + 14 + 0 2 8 0 + + + 3 + + 3 + 3 + + 600 + 16 2 + 16 4 + 24 6 + + 12 + 12 + 14 + + 16 12 + + 3 + \ No newline at end of file