Commit Graph

1043 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
dcba26e8af feat: Update demo. improve resizer margin for drawer. 2024-09-17 23:13:56 +08:00
rabbitism
219ead2172 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.
2024-09-17 23:06:00 +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
a70f7205e9 feat: support dialog resize. 2024-09-17 21:10:54 +08:00
Dong Bin
8493d8454c Merge pull request #411 from irihitech/resize
Introduce Resizer for UrsaWindow
2024-09-17 17:23:23 +08:00
rabbitism
4964289159 feat: Resize activation now requires left mouse button press. 2024-09-17 17:14:51 +08:00
rabbitism
cd39edb5f1 feat: add window resizer for Ursa. 2024-09-16 13:31:25 +08:00
rabbitism
388992f237 misc: include symbols in package. 2024-09-14 17:00:54 +08:00
Dong Bin
784770c967 Create SECURITY.md 2024-09-14 15:51:11 +08:00
Dong Bin
16106d9483 Merge pull request #408 from irihitech/buildscript
Add simple build scripts.
2024-09-14 15:16:59 +08:00
Zhang Dian
52e44f2f5d feat: add build.sh. 2024-09-14 14:04:09 +08:00
rabbitism
ce39dd28b5 misc: add powershell build script. 2024-09-14 13:19:34 +08:00
Dong Bin
11bdbe66b8 Create CONTRIBUTING.md 2024-09-14 13:01:59 +08:00
Dong Bin
95f5d68c09 Create CODE_OF_CONDUCT.md 2024-09-14 12:09:36 +08:00
rabbitism
40ad757ee4 misc: bump version. 2024-09-13 19:13:32 +08:00
Dong Bin
ef326e8e9f Merge pull request #405 from irihitech/order
Fix navigation order in demo
2024-09-13 15:09:08 +08:00
Zhang Dian
62a2f1d4cd fix: fix navigation order in demo. 2024-09-13 14:41:39 +08:00
Dong Bin
514412c733 Merge pull request #402 from irihitech/badge
Fix Badge template binding issue.
2024-09-12 20:35:16 +08:00
rabbitism
5a48b51602 Fix binding issue in Badge control template by replacing incorrect binding syntax with a converter for visibility check. 2024-09-12 19:57:56 +08:00
Dong Bin
927f4121b4 Merge pull request #401 from irihitech/dialog
Introduce IsTopLevel to OverlayDialogHost
2024-09-12 18:55:59 +08:00
Dong Bin
dc80d80337 Merge pull request #398 from irihitech/toast
New Control: Notification & Toast
2024-09-12 18:55:40 +08:00
Zhang Dian
850339f324 feat: enhancement. 2024-09-12 18:48:26 +08:00
rabbitism
ea385ee194 feat: support uninstall. 2024-09-12 18:38:27 +08:00
Zhang Dian
a054d17fd7 fix: remove Manager OnDetachedFromVisualTree. 2024-09-12 18:28:13 +08:00
Zhang Dian
4258e4bbea feat: add ScaleY animation. 2024-09-12 17:07:11 +08:00
Dong Bin
a3b3a11644 Merge pull request #393 from irihitech/selectable
Introduce IsSelectable for TreeComboBoxItem.
2024-09-12 16:46:28 +08:00
Dong Bin
8551744bc5 Merge pull request #399 from irihitech/window
Enable UrsaWindow and Dialog border customization.
2024-09-12 16:46:04 +08:00
rabbitism
a81fe88eb6 feat: add IsTopLevel property to OverlayDialogHost. only marked Host can trigger window movement. 2024-09-12 15:41:12 +08:00
Dong Bin
95f28e14f4 Merge pull request #396 from irihitech/caption
Fix: Caption buttons should update visibility upon UrsaWindow property change.
2024-09-12 12:00:00 +08:00
Dong Bin
ebbffa8895 Merge pull request #400 from irihitech/full-dialog
FullScreen overlay dialog updates
2024-09-12 11:28:49 +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
bcaa3f7e23 feat: enable UrsaWindow and Dialog border customization. 2024-09-11 22:28:56 +08:00
Zhang Dian
c724a71aeb feat: replace some Notification resources in Toast.axaml. 2024-09-11 21:58:06 +08:00
Zhang Dian
70d0f236d6 feat: add Content Attribute. 2024-09-11 21:30:15 +08:00
Dong Bin
7271fb290a Merge pull request #397 from irihitech/date
Introduce DateTimePicker
2024-09-11 21:27:43 +08:00
rabbitism
a653751d47 misc: remove debug log. 2024-09-11 21:26:28 +08:00
Zhang Dian
62a277cc16 feat: Toast Alignment. 2024-09-11 21:07:36 +08:00
Zhang Dian
b730d3abbe feat: extract color resources. 2024-09-11 21:07:07 +08:00
Zhang Dian
621f55674c feat: add ShowIcon property. 2024-09-11 19:32:13 +08:00
rabbitism
13fbe74144 feat: update button visibility upon root property change. 2024-09-11 19:15:34 +08:00
Dong Bin
60605de2c8 Updates to FormItem label and A11y (#395)
* feat: 1. add AccessKey support for form item.
2. Support label positioning for different content height.
3. polish demo.

* feat: add a transparent background for label.
2024-09-11 18:47:42 +08:00
Zhang Dian
c1e58d5e71 fix:fix Toast Alignments. 2024-09-11 15:56:05 +08:00
Zhang Dian
73bfed8632 fix: fix binding method. 2024-09-11 15:55:02 +08:00
Zhang Dian
88f6bb138b feat: Notification size. 2024-09-11 14:25:37 +08:00
Zhang Dian
01c2133012 feat: Notification animations. 2024-09-11 10:32:32 +08:00
rabbitism
1661026cdc feat: introduce IsSelectable for TreeComboBox. 2024-09-11 01:32:11 +08:00
Dong Bin
eb72a717c3 Source link (#391)
* misc: add source link
2024-09-10 23:35:40 +08:00
Dong Bin
cc48853e58 Merge pull request #390 from irihitech/issue/384
misc: Update Semi.Avalonia installation guide in README.
2024-09-10 14:15:05 +08:00