From 8a51f98532d577e783e079634c013eabf8bf53ff Mon Sep 17 00:00:00 2001 From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Date: Mon, 14 Aug 2023 17:05:52 +0800 Subject: [PATCH] feat: separate resource dictionary. --- src/Semi.Avalonia/Controls/ListBox.axaml | 158 ++++++++++-------- src/Semi.Avalonia/Themes/Dark/ListBox.axaml | 11 +- src/Semi.Avalonia/Themes/Light/ListBox.axaml | 10 +- src/Semi.Avalonia/Themes/Shared/ListBox.axaml | 9 +- 4 files changed, 101 insertions(+), 87 deletions(-) diff --git a/src/Semi.Avalonia/Controls/ListBox.axaml b/src/Semi.Avalonia/Controls/ListBox.axaml index 955c455..eb1c353 100644 --- a/src/Semi.Avalonia/Controls/ListBox.axaml +++ b/src/Semi.Avalonia/Controls/ListBox.axaml @@ -280,14 +280,15 @@ - + - - - - + + + + @@ -342,16 +345,16 @@ - + - + - - + + - + @@ -395,8 +398,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}" /> @@ -404,8 +407,8 @@ @@ -518,13 +531,13 @@ - + - - - + + + - + diff --git a/src/Semi.Avalonia/Themes/Dark/ListBox.axaml b/src/Semi.Avalonia/Themes/Dark/ListBox.axaml index f30abc8..a06e53b 100644 --- a/src/Semi.Avalonia/Themes/Dark/ListBox.axaml +++ b/src/Semi.Avalonia/Themes/Dark/ListBox.axaml @@ -1,4 +1,5 @@ + @@ -11,8 +12,9 @@ + - + @@ -40,9 +42,7 @@ - - - + @@ -50,14 +50,13 @@ + - - \ 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 038ed4a..080871e 100644 --- a/src/Semi.Avalonia/Themes/Light/ListBox.axaml +++ b/src/Semi.Avalonia/Themes/Light/ListBox.axaml @@ -1,4 +1,5 @@ + @@ -11,6 +12,7 @@ + @@ -40,9 +42,7 @@ - - - + @@ -50,15 +50,13 @@ - + - - \ 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 8cb6391..8ef49a9 100644 --- a/src/Semi.Avalonia/Themes/Shared/ListBox.axaml +++ b/src/Semi.Avalonia/Themes/Shared/ListBox.axaml @@ -1,16 +1,16 @@ + 8 4 3 + 16 6 14 0 2 8 0 - - 3 - 3 + 3 600 @@ -22,8 +22,7 @@ 12 14 + 16 12 - 3 - \ No newline at end of file