Commit Graph

639 Commits

Author SHA1 Message Date
rabbitism
8ee920bde4 feat: add CanClose hook to easily block window closing. 2024-10-07 17:53:41 +08:00
Dong Bin
2bce32ae97 Merge pull request #419 from irihitech/loading
Introducing background and foreground for LoadingContainer
2024-09-22 19:12:09 +08:00
LUJIAN2020
f57b882924 Update OverlayDialog.cs
DataContext repeated assignment
2024-09-22 10:56:59 +08:00
rabbitism
34811c6884 feat: fix loading animation issue. 2024-09-21 19:27:05 +08:00
rabbitism
054ab858b4 fix: fix loading type. 2024-09-20 23:04:26 +08:00
rabbitism
150ff5410a feat: introducing background and foreground setting for loading container. 2024-09-20 23:02:36 +08:00
rabbitism
f5c772679b feat: change resizer default direction. 2024-09-18 16:22:39 +08:00
rabbitism
381c90a7b7 fix: fix initial thumbs' visibility. 2024-09-18 15:42:32 +08:00
rabbitism
c712a9faa5 fix: fix northwest resizing. 2024-09-18 11:53:28 +08:00
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
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
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
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
Dong Bin
a3b3a11644 Merge pull request #393 from irihitech/selectable
Introduce IsSelectable for TreeComboBoxItem.
2024-09-12 16:46:28 +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
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
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
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
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
285e04aa01 Merge pull request #387 from irihitech/nav
Ensure NavMenu initial selection is updated visually.
2024-09-09 23:55:31 +08:00
Dong Bin
07808745f8 Merge pull request #388 from irihitech/issue/383
Introduce CanDragMove to DialogWindow options.
2024-09-09 23:54:40 +08:00
Zhang Dian
f219acff49 feat: Notification Position. 2024-09-09 19:54:04 +08:00
Zhang Dian
b0bacfa0ae feat: add new Notification. 2024-09-09 19:09:05 +08:00
Zhang Dian
cd8bf3adaf feat: separate some Notification shared files. 2024-09-09 19:08:42 +08:00
lxymahatma
1b88a9b23a refactor ThemeSelectorBase and ThemeToggleButton 2024-09-07 12:49:02 +08:00
rabbitism
db1889d454 feat: Add CanDragMove option to dialogs and make sure it can be disabled. 2024-09-07 01:42:51 +08:00
rabbitism
fb6ecc72ac feat: make sure initialize selection is handled visually. 2024-09-07 00:35:51 +08:00
rabbitism
c678d82d6b misc: re-organize code. 2024-09-06 23:31:34 +08:00
rabbitism
747bfc4695 feat: make nav menu item focusable. 2024-09-06 23:28:05 +08:00
rabbitism
e03b659cfe feat: introducing DateTimePicker. 2024-09-05 22:47:49 +08:00
Zhang Dian
f830da7799 feat: animation. 2024-09-05 18:41:55 +08:00
Dong Bin
a552244b42 Merge pull request #316 from irihitech/286-modal
Automatically focus on overlay modal dialog/messagebox/drawer
2024-09-05 17:28:17 +08:00
Zhang Dian
f52d62f9f5 feat: add close button. 2024-09-05 03:31:27 +08:00