From 219ead217289a52b298856eccd2e1a75189fe5ed Mon Sep 17 00:00:00 2001 From: rabbitism Date: Tue, 17 Sep 2024 23:06:00 +0800 Subject: [PATCH] Add CanResize property to drawers and dialogs with corresponding UI controls This commit introduces a new `CanResize` property to `DrawerOptions`, `OverlayDialogOptions`, and their respective controls. It also adds UI resizing functionality through the `DialogResizer` control, with styles adjusted to support different drawer positions. Code formatting and organization have been improved for readability across modified files. --- src/Ursa.Themes.Semi/Controls/Drawer.axaml | 315 ++++++++++-------- src/Ursa.Themes.Semi/Controls/Resizer.axaml | 151 +++++++-- .../Dialog/Options/OverlayDialogOptions.cs | 2 +- src/Ursa/Controls/Drawer/Drawer.cs | 18 +- src/Ursa/Controls/Drawer/DrawerControlBase.cs | 9 + .../Controls/Drawer/Options/DrawerOptions.cs | 2 + 6 files changed, 320 insertions(+), 177 deletions(-) diff --git a/src/Ursa.Themes.Semi/Controls/Drawer.axaml b/src/Ursa.Themes.Semi/Controls/Drawer.axaml index 66bb9d9..ac3657f 100644 --- a/src/Ursa.Themes.Semi/Controls/Drawer.axaml +++ b/src/Ursa.Themes.Semi/Controls/Drawer.axaml @@ -1,154 +1,60 @@ - - - - - - - + + + + + + + + + - + - - - - - -