From 35b3a2f659c7d77ea2bed6844219a1d651917963 Mon Sep 17 00:00:00 2001 From: rabbitism Date: Mon, 5 Feb 2024 13:54:58 +0800 Subject: [PATCH] feat: replace mask with pure rectangle to reduce layout calculation --- src/Ursa.Themes.Semi/Controls/Dialog.axaml | 9 ++++ .../OverlayShared/OverlayDialogHost.Dialog.cs | 9 ++-- .../OverlayShared/OverlayDialogHost.Drawer.cs | 4 +- .../OverlayShared/OverlayDialogHost.Shared.cs | 43 +++++++++++++++---- .../OverlayShared/OverlayFeedbackElement.cs | 17 +++++++- src/Ursa/Controls/Shapes/PureRectangle.cs | 35 +++++++++++++++ 6 files changed, 99 insertions(+), 18 deletions(-) create mode 100644 src/Ursa/Controls/Shapes/PureRectangle.cs diff --git a/src/Ursa.Themes.Semi/Controls/Dialog.axaml b/src/Ursa.Themes.Semi/Controls/Dialog.axaml index 28cf0d0..4c88769 100644 --- a/src/Ursa.Themes.Semi/Controls/Dialog.axaml +++ b/src/Ursa.Themes.Semi/Controls/Dialog.axaml @@ -9,6 +9,12 @@ + + + + + + +