From d52f97a058f6c2d090931ed653d5149e54ff19ad Mon Sep 17 00:00:00 2001 From: rabbitism Date: Thu, 3 Oct 2024 01:50:07 +0800 Subject: [PATCH] feat: finish. --- .../Controls/MultiComboBox.axaml | 2 + .../Controls/SelectionList.axaml | 2 +- src/Ursa.Themes.Semi/Controls/TagInput.axaml | 29 +-- src/Ursa.Themes.Semi/Controls/TextBox.axaml | 79 ------- src/Ursa.Themes.Semi/Controls/TimeBox.axaml | 208 ++++++++++-------- .../Controls/TreeComboBox.axaml | 57 ++--- src/Ursa.Themes.Semi/Controls/_index.axaml | 1 - .../Themes/Dark/SelectionList.axaml | 5 + .../Themes/Dark/TagInput.axaml | 2 + .../Themes/Dark/TimeBox.axaml | 12 - src/Ursa.Themes.Semi/Themes/Dark/_index.axaml | 36 +-- .../Themes/HighContrast/Base.axaml | 17 ++ .../Themes/Light/SelectionList.axaml | 5 + .../Themes/Light/TagInput.axaml | 2 + .../Themes/Light/TimeBox.axaml | 12 - .../Themes/Light/_index.axaml | 2 +- .../Themes/Shared/TagInput.axaml | 1 - .../Themes/Shared/TimeBox.axaml | 8 - .../Themes/Shared/_index.axaml | 1 - 19 files changed, 211 insertions(+), 270 deletions(-) delete mode 100644 src/Ursa.Themes.Semi/Controls/TextBox.axaml create mode 100644 src/Ursa.Themes.Semi/Themes/Dark/SelectionList.axaml delete mode 100644 src/Ursa.Themes.Semi/Themes/Dark/TimeBox.axaml create mode 100644 src/Ursa.Themes.Semi/Themes/Light/SelectionList.axaml delete mode 100644 src/Ursa.Themes.Semi/Themes/Light/TimeBox.axaml delete mode 100644 src/Ursa.Themes.Semi/Themes/Shared/TimeBox.axaml diff --git a/src/Ursa.Themes.Semi/Controls/MultiComboBox.axaml b/src/Ursa.Themes.Semi/Controls/MultiComboBox.axaml index 59bce8d..d5ec4cd 100644 --- a/src/Ursa.Themes.Semi/Controls/MultiComboBox.axaml +++ b/src/Ursa.Themes.Semi/Controls/MultiComboBox.axaml @@ -267,11 +267,13 @@ diff --git a/src/Ursa.Themes.Semi/Controls/SelectionList.axaml b/src/Ursa.Themes.Semi/Controls/SelectionList.axaml index 3a7138c..e41ca89 100644 --- a/src/Ursa.Themes.Semi/Controls/SelectionList.axaml +++ b/src/Ursa.Themes.Semi/Controls/SelectionList.axaml @@ -10,7 +10,7 @@ Margin="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" - Background="{DynamicResource SemiBlue1}" + Background="{DynamicResource SelectionListIndicatorBackground}" Theme="{DynamicResource CardBorder}" /> diff --git a/src/Ursa.Themes.Semi/Controls/TagInput.axaml b/src/Ursa.Themes.Semi/Controls/TagInput.axaml index 6357f4a..40ef851 100644 --- a/src/Ursa.Themes.Semi/Controls/TagInput.axaml +++ b/src/Ursa.Themes.Semi/Controls/TagInput.axaml @@ -6,7 +6,7 @@ - + @@ -22,8 +22,8 @@ VerticalAlignment="Stretch" Background="{DynamicResource TextBoxDefaultBackground}" BorderBrush="{DynamicResource TextBoxDefaultBorderBrush}" - BorderThickness="1" - CornerRadius="3"> + BorderThickness="{DynamicResource TextBoxBorderThickness}" + CornerRadius="{DynamicResource TextBoxDefaultCornerRadius}"> - - diff --git a/src/Ursa.Themes.Semi/Controls/TimeBox.axaml b/src/Ursa.Themes.Semi/Controls/TimeBox.axaml index 479b100..0eed466 100644 --- a/src/Ursa.Themes.Semi/Controls/TimeBox.axaml +++ b/src/Ursa.Themes.Semi/Controls/TimeBox.axaml @@ -1,52 +1,58 @@ - - + + - + - + - - - - - - - - - - - - + + + + + + + + + + + + + - - + - - + + - + - - + + - + - - + + - + - - + + @@ -135,20 +150,21 @@ diff --git a/src/Ursa.Themes.Semi/Controls/TreeComboBox.axaml b/src/Ursa.Themes.Semi/Controls/TreeComboBox.axaml index bf8bfcd..e5211dc 100644 --- a/src/Ursa.Themes.Semi/Controls/TreeComboBox.axaml +++ b/src/Ursa.Themes.Semi/Controls/TreeComboBox.axaml @@ -18,7 +18,7 @@ - + @@ -69,7 +69,7 @@ + Theme="{DynamicResource InnerIconButton}" /> + IsHitTestVisible="True" + UseLayoutRounding="False" /> + DockPanel.Dock="Top" + IsVisible="{TemplateBinding PopupInnerTopContent, + Converter={x:Static ObjectConverters.IsNotNull}}" /> + DockPanel.Dock="Bottom" + IsVisible="{TemplateBinding PopupInnerBottomContent, + Converter={x:Static ObjectConverters.IsNotNull}}" /> @@ -142,23 +142,23 @@ - + - + - + - + + +