From 099cec3f06283ef3d892a16469e1b5d3975877e3 Mon Sep 17 00:00:00 2001 From: rabbitism Date: Sat, 16 Nov 2024 14:41:47 +0800 Subject: [PATCH 1/6] feat: change overlay mask brush. --- src/Ursa.Themes.Semi/Themes/Dark/Dialog.axaml | 2 +- src/Ursa.Themes.Semi/Themes/Light/Dialog.axaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ursa.Themes.Semi/Themes/Dark/Dialog.axaml b/src/Ursa.Themes.Semi/Themes/Dark/Dialog.axaml index 733792aa..c8a82a2e 100644 --- a/src/Ursa.Themes.Semi/Themes/Dark/Dialog.axaml +++ b/src/Ursa.Themes.Semi/Themes/Dark/Dialog.axaml @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/src/Ursa.Themes.Semi/Themes/Light/Dialog.axaml b/src/Ursa.Themes.Semi/Themes/Light/Dialog.axaml index a9819865..c8a82a2e 100644 --- a/src/Ursa.Themes.Semi/Themes/Light/Dialog.axaml +++ b/src/Ursa.Themes.Semi/Themes/Light/Dialog.axaml @@ -1,3 +1,3 @@ - + \ No newline at end of file From 7eb234809cff7e8021d871b285a1a113a8f9ea0d Mon Sep 17 00:00:00 2001 From: rabbitism Date: Sat, 16 Nov 2024 15:31:02 +0800 Subject: [PATCH 2/6] feat: update dialog related background colors. --- demo/Ursa.Demo/Pages/DialogDemo.axaml | 1 + demo/Ursa.Demo/Pages/DrawerDemo.axaml | 1 + src/Ursa.Themes.Semi/Controls/Dialog.axaml | 6 ++++-- src/Ursa.Themes.Semi/Controls/Drawer.axaml | 2 ++ src/Ursa.Themes.Semi/Controls/MessageBox.axaml | 3 ++- 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/demo/Ursa.Demo/Pages/DialogDemo.axaml b/demo/Ursa.Demo/Pages/DialogDemo.axaml index b50c1ecc..2683c009 100644 --- a/demo/Ursa.Demo/Pages/DialogDemo.axaml +++ b/demo/Ursa.Demo/Pages/DialogDemo.axaml @@ -200,6 +200,7 @@ diff --git a/demo/Ursa.Demo/Pages/DrawerDemo.axaml b/demo/Ursa.Demo/Pages/DrawerDemo.axaml index c5202152..fb6dbbef 100644 --- a/demo/Ursa.Demo/Pages/DrawerDemo.axaml +++ b/demo/Ursa.Demo/Pages/DrawerDemo.axaml @@ -42,6 +42,7 @@ diff --git a/src/Ursa.Themes.Semi/Controls/Dialog.axaml b/src/Ursa.Themes.Semi/Controls/Dialog.axaml index 5d761cc2..4689866b 100644 --- a/src/Ursa.Themes.Semi/Controls/Dialog.axaml +++ b/src/Ursa.Themes.Semi/Controls/Dialog.axaml @@ -28,6 +28,7 @@ VerticalAlignment="{TemplateBinding VerticalAlignment}" Classes="Shadow" ClipToBounds="False" + Background="{DynamicResource SemiColorBackground2}" CornerRadius="{TemplateBinding CornerRadius}" Focusable="True" IsHitTestVisible="True" @@ -162,6 +163,7 @@ VerticalAlignment="{TemplateBinding VerticalAlignment}" BoxShadow="0 0 8 0 #1A000000" Classes="Shadow" + Background="{DynamicResource SemiColorBackground2}" ClipToBounds="False" CornerRadius="{TemplateBinding CornerRadius}" Focusable="True" @@ -463,7 +465,7 @@ - + @@ -535,7 +537,7 @@ - + diff --git a/src/Ursa.Themes.Semi/Controls/Drawer.axaml b/src/Ursa.Themes.Semi/Controls/Drawer.axaml index 207a3faa..82eabdc4 100644 --- a/src/Ursa.Themes.Semi/Controls/Drawer.axaml +++ b/src/Ursa.Themes.Semi/Controls/Drawer.axaml @@ -19,6 +19,7 @@ Name="PART_Root" Margin="{TemplateBinding Padding, Converter={x:Static c:ThicknessTakeConverter.Left}}" + Background="{DynamicResource SemiColorBackground2}" Padding="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" @@ -111,6 +112,7 @@ Name="PART_Root" Margin="{TemplateBinding Padding, Converter={x:Static c:ThicknessTakeConverter.Left}}" + Background="{DynamicResource SemiColorBackground2}" Padding="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" diff --git a/src/Ursa.Themes.Semi/Controls/MessageBox.axaml b/src/Ursa.Themes.Semi/Controls/MessageBox.axaml index c000c89d..5797196a 100644 --- a/src/Ursa.Themes.Semi/Controls/MessageBox.axaml +++ b/src/Ursa.Themes.Semi/Controls/MessageBox.axaml @@ -6,7 +6,7 @@ - + @@ -178,6 +178,7 @@ VerticalAlignment="Center" Classes="Shadow" ClipToBounds="False" + Background="{DynamicResource SemiColorBackground2}" CornerRadius="{TemplateBinding CornerRadius}" IsHitTestVisible="True" Theme="{DynamicResource CardBorder}"> From 4cb60fe9ce221875e00460f09c90b8f097bffb6c Mon Sep 17 00:00:00 2001 From: rabbitism Date: Sat, 16 Nov 2024 15:39:09 +0800 Subject: [PATCH 3/6] fix: use base resource for multicombobox. --- .../Controls/MultiComboBox.axaml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/Ursa.Themes.Semi/Controls/MultiComboBox.axaml b/src/Ursa.Themes.Semi/Controls/MultiComboBox.axaml index aacc0c7f..7c854222 100644 --- a/src/Ursa.Themes.Semi/Controls/MultiComboBox.axaml +++ b/src/Ursa.Themes.Semi/Controls/MultiComboBox.axaml @@ -217,12 +217,8 @@ - - - - - + From c133c7e1ffab0004d1eae2a8c763c37d9b041eb4 Mon Sep 17 00:00:00 2001 From: rabbitism Date: Sat, 16 Nov 2024 15:55:55 +0800 Subject: [PATCH 4/6] feat: utilize combobox popup resources. --- src/Ursa.Themes.Semi/Controls/DatePicker.axaml | 2 +- src/Ursa.Themes.Semi/Controls/DateRangePicker.axaml | 2 +- src/Ursa.Themes.Semi/Controls/DateTimePicker.axaml | 2 +- src/Ursa.Themes.Semi/Controls/MultiComboBox.axaml | 2 +- src/Ursa.Themes.Semi/Controls/TimePicker.axaml | 2 +- src/Ursa.Themes.Semi/Controls/TimeRangePicker.axaml | 2 +- src/Ursa.Themes.Semi/Controls/TreeComboBox.axaml | 2 +- src/Ursa.Themes.Semi/Index.axaml | 2 ++ 8 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/Ursa.Themes.Semi/Controls/DatePicker.axaml b/src/Ursa.Themes.Semi/Controls/DatePicker.axaml index ae353b1f..1ee23c42 100644 --- a/src/Ursa.Themes.Semi/Controls/DatePicker.axaml +++ b/src/Ursa.Themes.Semi/Controls/DatePicker.axaml @@ -74,7 +74,7 @@ Placement="BottomEdgeAlignedLeft" PlacementTarget="{TemplateBinding}"> + + 4 From aaeb4c8cb0eb7263aae4667bf892247c3c3b03eb Mon Sep 17 00:00:00 2001 From: rabbitism Date: Sat, 16 Nov 2024 15:56:51 +0800 Subject: [PATCH 5/6] feat: move resource location. --- src/Ursa.Themes.Semi/Index.axaml | 2 -- src/Ursa.Themes.Semi/Themes/Shared/_index.axaml | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ursa.Themes.Semi/Index.axaml b/src/Ursa.Themes.Semi/Index.axaml index 49e499a8..5db88d3e 100644 --- a/src/Ursa.Themes.Semi/Index.axaml +++ b/src/Ursa.Themes.Semi/Index.axaml @@ -15,8 +15,6 @@ - - 4 diff --git a/src/Ursa.Themes.Semi/Themes/Shared/_index.axaml b/src/Ursa.Themes.Semi/Themes/Shared/_index.axaml index e6a449ce..9d1bb413 100644 --- a/src/Ursa.Themes.Semi/Themes/Shared/_index.axaml +++ b/src/Ursa.Themes.Semi/Themes/Shared/_index.axaml @@ -24,4 +24,6 @@ + + 4 \ No newline at end of file From 983c6c3b807e0bf4426e08a8de3dbbc571eba84d Mon Sep 17 00:00:00 2001 From: rabbitism Date: Sat, 16 Nov 2024 16:02:30 +0800 Subject: [PATCH 6/6] feat: remove clip. --- src/Ursa.Themes.Semi/Controls/MultiComboBox.axaml | 1 - src/Ursa.Themes.Semi/Controls/TimePicker.axaml | 1 - src/Ursa.Themes.Semi/Controls/TimeRangePicker.axaml | 1 - src/Ursa.Themes.Semi/Controls/TreeComboBox.axaml | 1 - 4 files changed, 4 deletions(-) diff --git a/src/Ursa.Themes.Semi/Controls/MultiComboBox.axaml b/src/Ursa.Themes.Semi/Controls/MultiComboBox.axaml index 3ccf8d03..0b6a8280 100644 --- a/src/Ursa.Themes.Semi/Controls/MultiComboBox.axaml +++ b/src/Ursa.Themes.Semi/Controls/MultiComboBox.axaml @@ -116,7 +116,6 @@ BorderBrush="{DynamicResource ComboBoxPopupBorderBrush}" BorderThickness="{DynamicResource ComboBoxPopupBorderThickness}" BoxShadow="{DynamicResource ComboBoxPopupBoxShadow}" - ClipToBounds="True" CornerRadius="6"> diff --git a/src/Ursa.Themes.Semi/Controls/TimePicker.axaml b/src/Ursa.Themes.Semi/Controls/TimePicker.axaml index dd0bde78..ad197c86 100644 --- a/src/Ursa.Themes.Semi/Controls/TimePicker.axaml +++ b/src/Ursa.Themes.Semi/Controls/TimePicker.axaml @@ -165,7 +165,6 @@ BorderBrush="{DynamicResource ComboBoxPopupBorderBrush}" BorderThickness="{DynamicResource ComboBoxPopupBorderThickness}" BoxShadow="{DynamicResource ComboBoxPopupBoxShadow}" - ClipToBounds="True" CornerRadius="6"> diff --git a/src/Ursa.Themes.Semi/Controls/TimeRangePicker.axaml b/src/Ursa.Themes.Semi/Controls/TimeRangePicker.axaml index bf0d53ad..8f08ba09 100644 --- a/src/Ursa.Themes.Semi/Controls/TimeRangePicker.axaml +++ b/src/Ursa.Themes.Semi/Controls/TimeRangePicker.axaml @@ -89,7 +89,6 @@ BorderBrush="{DynamicResource ComboBoxPopupBorderBrush}" BorderThickness="{DynamicResource ComboBoxPopupBorderThickness}" BoxShadow="{DynamicResource ComboBoxPopupBoxShadow}" - ClipToBounds="True" CornerRadius="6"> diff --git a/src/Ursa.Themes.Semi/Controls/TreeComboBox.axaml b/src/Ursa.Themes.Semi/Controls/TreeComboBox.axaml index 2e533395..0baf38ef 100644 --- a/src/Ursa.Themes.Semi/Controls/TreeComboBox.axaml +++ b/src/Ursa.Themes.Semi/Controls/TreeComboBox.axaml @@ -116,7 +116,6 @@ BorderBrush="{DynamicResource ComboBoxPopupBorderBrush}" BorderThickness="{DynamicResource ComboBoxPopupBorderThickness}" BoxShadow="{DynamicResource ComboBoxPopupBoxShadow}" - ClipToBounds="True" CornerRadius="6">