Commit Graph

14 Commits

Author SHA1 Message Date
rabbitism
dccb3c029c Refactor and optimize overlay dialog handling and resizing logic
- Remove unused `_moveDragging` variable in `OverlayFeedbackElement.cs`
- Rename private static animations to follow PascalCase in `OverlayDialogHost.Shared.cs`
- Simplify and streamline `ClickMaskToCloseDialog`, `OnPointerMoved`, `OnPointerPressed`, and `OnPointerReleased` methods in `OverlayDialogHost.Dialog.cs`
- Remove redundant null checks and streamline method calls in various files
- Optimize `_moveDragging` logic and pointer event handling in `DialogControlBase.cs`

This commit enhances readability, maintains consistency in naming conventions, and optimizes the code for better performance and clarity.
2024-09-18 02:37:17 +08:00
rabbitism
5799646488 Refactor and enhance overlay feedback handling
- Promote `_containerPanel` to a protected property for better accessibility
- Extract `CoerceDelta` method to centralize constraint logic
- Implement `AnchorAndUpdatePositionInfo` across dialog controls for consistent positioning behavior
- Adjust margin binding for `DialogResizer` to include parent border margin
- Simplify pointer movement calculations and conditional checks
2024-09-18 02:08:58 +08:00
rabbitism
c512cb6e13 Add resize functionality and improve dialog controls
This commit introduces the ability to resize dialogs by adding `CanResize` properties to dialog options and control classes. It also refines dialog controls' behavior and layout, ensuring consistent resizing capabilities across different dialog types. Additionally, it enhances the overlay feedback element's positioning logic and updates the resizer's appearance and visibility handling.
2024-09-17 22:44:35 +08:00
rabbitism
e90189bbca feat: 1. make full-screen dialog draggable to trigger window moving
2. Make sure full-screen is always full-screen when resizing window.
2024-09-11 22:49:37 +08:00
rabbitism
f5726dbafc feat: respect close button visibility in all options. 2024-08-25 15:14:55 +08:00
rabbitism
15fb5a2d1b feat: clean up warnings. 2024-07-30 18:33:30 +08:00
rabbitism
13e5629b21 feat: support full screen. 2024-03-27 18:29:54 +08:00
rabbitism
0349f6ad95 feat: make sure MessageBox support drag move. 2024-03-27 17:37:46 +08:00
rabbitism
7a9bdf231d feat: simplify dialog option. 2024-02-10 00:42:44 +08:00
rabbitism
974afa33c5 feat: add two attached properties to mark an custom element triggering drag move or close. 2024-02-08 23:15:26 +08:00
rabbitism
9259228365 fix: fix close order. 2024-02-07 19:07:51 +08:00
rabbitism
7e57a0c0ef feat: refactor to simplify null control property and event initialization. 2024-02-07 19:04:51 +08:00
rabbitism
8e085bc264 feat: refactor layer storage and index reset rule. 2024-02-05 17:56:36 +08:00
rabbitism
dbbf6b62b6 feat: refactor dialog host to accept drawer. 2024-02-04 17:13:01 +08:00