From 06ab6cd7d5e68199219e38d854b95431a5b48dd4 Mon Sep 17 00:00:00 2001 From: rabbitism Date: Thu, 22 Dec 2022 01:36:14 +0800 Subject: [PATCH] feat: add flyout dynamic resource. Pending on Menu/MenuItem to add menu flyout theme. --- .../Controls/FlyoutPresenter.axaml | 20 +++++++++---------- src/Semi.Avalonia/Themes/Light/Flyout.axaml | 19 ++++++++++++++++++ src/Semi.Avalonia/Themes/Light/Light.axaml | 1 + 3 files changed, 30 insertions(+), 10 deletions(-) create mode 100644 src/Semi.Avalonia/Themes/Light/Flyout.axaml diff --git a/src/Semi.Avalonia/Controls/FlyoutPresenter.axaml b/src/Semi.Avalonia/Controls/FlyoutPresenter.axaml index 3239e54..d8f0ff8 100644 --- a/src/Semi.Avalonia/Controls/FlyoutPresenter.axaml +++ b/src/Semi.Avalonia/Controls/FlyoutPresenter.axaml @@ -3,18 +3,18 @@ - - - - - - - - + + + + + + + + - + @@ -23,7 +23,7 @@ Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" - BoxShadow="0 0 8 0 #1A000000" + BoxShadow="{DynamicResource FlyoutBorderBoxShadow}" ClipToBounds="False" CornerRadius="{TemplateBinding CornerRadius}" UseLayoutRounding="False"> diff --git a/src/Semi.Avalonia/Themes/Light/Flyout.axaml b/src/Semi.Avalonia/Themes/Light/Flyout.axaml new file mode 100644 index 0000000..d98d967 --- /dev/null +++ b/src/Semi.Avalonia/Themes/Light/Flyout.axaml @@ -0,0 +1,19 @@ + + + + 1 + 0 0 8 0 #1A000000 + 100 + 100 + 600 + 600 + 6 + 8 + + diff --git a/src/Semi.Avalonia/Themes/Light/Light.axaml b/src/Semi.Avalonia/Themes/Light/Light.axaml index 53c60ac..0a5a374 100644 --- a/src/Semi.Avalonia/Themes/Light/Light.axaml +++ b/src/Semi.Avalonia/Themes/Light/Light.axaml @@ -16,5 +16,6 @@ +