Commit graph

506 commits

Author SHA1 Message Date
Daniel Bulant
899037d543
add filtermode to image example 2024-10-09 21:59:14 +02:00
Jonathan Johnson
7da5be6775
Merge branch 'main' of github.com:khonsulabs/gooey 2024-10-09 08:23:34 -07:00
Jonathan Johnson
a129e64d77
Fixed cursor hover events
Broken in 4f3ef7d9ed. Thanks to @pepone42
for reporting this.
2024-10-09 08:21:01 -07:00
Jonathan Johnson
e121cf8f4d
Merge pull request #175 from danbulant/image-docs
Add documentation about image widget
2024-10-08 07:23:33 -07:00
Daniel Bulant
bea18f97ae
Add example for the Image widget itself 2024-10-08 11:00:58 +02:00
Daniel Bulant
1429051cbb
Add documentation about image widget 2024-10-08 10:57:43 +02:00
Jonathan Johnson
b0a870aceb
CornerRadii conversion helpers 2024-10-07 13:01:03 -07:00
Jonathan Johnson
af208519eb
ImageCornerRadius
In the end I think people might be surprised by the default behavior to
clip corners, so I've opted to split this behavior into a separate
component that defaults to no corner radius.
2024-10-07 12:52:18 -07:00
Jonathan Johnson
2ed140a0fe
Updating Kludgine/Refactoring close 2024-10-07 12:52:05 -07:00
Jonathan Johnson
f96a5d2055
Unrecoverable errors as native dialogs 2024-10-07 08:06:07 -07:00
Jonathan Johnson
06c3391379
Fixing compilation with tracing disabled 2024-10-07 07:56:46 -07:00
Jonathan Johnson
e354d7d083
Merge branch 'main' of github.com:khonsulabs/gooey 2024-10-06 12:58:42 -07:00
Jonathan Johnson
223989410d
Merge pull request #174 from danbulant/image-corner-radii
Make images respect border radii
2024-10-06 12:58:19 -07:00
Daniel Bulant
8d11a900c6
Make images respect border radii 2024-10-06 20:31:02 +02:00
Jonathan Johnson
a2fcfc5cd0
Updated Changelog 2024-10-06 10:04:26 -07:00
Jonathan Johnson
432a84be04
Scroll::preserve_max_scroll 2024-10-06 09:44:37 -07:00
Jonathan Johnson
77f1bd46f7
() -> MessageButton 2024-10-04 10:57:00 -07:00
Jonathan Johnson
43a24501f9
Save overwrite prompt in widget file picker
Refs #172
2024-10-04 10:51:43 -07:00
Jonathan Johnson
75b7b888eb
Rename pending_handle to new_handle 2024-10-04 10:20:31 -07:00
Jonathan Johnson
4f3ef7d9ed
Nested modals 2024-10-04 10:17:40 -07:00
Jonathan Johnson
e78d1d28bf
Updating locked dependencies
Notably this brings in PartialEq additions in Kludgine
2024-10-03 13:49:46 -07:00
Jonathan Johnson
0f06b22431
Merge pull request #170 from khonsulabs/dialogs
MessageBox + App::execute
2024-10-03 13:48:49 -07:00
Jonathan Johnson
a7972309c3
File picker 2024-10-03 13:39:46 -07:00
Jonathan Johnson
a73dd0f1d4
Adding notes about non-PartialEq types
Refs #171
2024-10-03 07:41:26 -07:00
Jonathan Johnson
2cec30df31
MessageBox + App::execute
Refs #131
2024-09-29 19:58:12 -07:00
Jonathan Johnson
2045d5fb4a
Allowing change callbacks to recurse still
The last fix had a panic where a guard should have been allowed to be
created. Change callbacks detect when they are about to be fired from
themselves, and prevent the deadlock.
2024-09-25 11:21:38 -07:00
Jonathan Johnson
e54bbd743d
Fixed change callback deadlock
Very hard to intentionally reproduce, thankfully the second time I saw
it I was in the debugger and was able to reason about the code path that
could have gotten in that particular state. Comment explains the actual
situation.
2024-09-25 11:13:15 -07:00
Jonathan Johnson
8561b6cf5e
Delaying resize until after render 2024-09-22 11:53:11 -07:00
Jonathan Johnson
1aa7563bd2
Updating Kludgine 2024-09-22 11:36:50 -07:00
Jonathan Johnson
7dd3a88231
Removing debug code 2024-09-22 11:11:52 -07:00
Jonathan Johnson
7639517bd3
Calling Kludgine's request_inner_size 2024-09-22 11:09:35 -07:00
Jonathan Johnson
3c12363ec4
Animate for callbacks
on_complete fires once. Callbacks can be used in a cycling animation.
2024-09-22 10:41:30 -07:00
Jonathan Johnson
3359fe0d05
SharedCallback animation 2024-09-22 10:38:46 -07:00
Jonathan Johnson
fb1888d53f
WrapperWidget::activate passthrough 2024-09-22 10:35:11 -07:00
Jonathan Johnson
e178c088c0
Logging tweaks + documentation
Closes #169
2024-09-22 07:38:20 -07:00
Jonathan Johnson
07e418fceb
Updated changelog
These changes were accidentally committed in another commit yesterday
before I documented them.
2024-09-22 06:59:36 -07:00
Jonathan Johnson
b1616efeee
Updating appit 2024-09-21 13:59:00 -07:00
Jonathan Johnson
8bed71cfb5
Adding xdg to ci 2024-09-21 13:54:19 -07:00
Jonathan Johnson
357dbcbbe9
Updating appit 2024-09-21 13:51:22 -07:00
Jonathan Johnson
e0df3b0017
Image opacity support 2024-09-16 14:15:49 -07:00
Jonathan Johnson
01b764de0b
File drop events 2024-09-16 09:15:29 -07:00
Jonathan Johnson
e7ccbac18c
Support immediately resizing without refreshing
On some platforms, notably Wayland, the window immediately responds to
resize requests. This means that if the window resizes itself during the
prepare operation, the current graphics context is no longer the correct
size for the window. Before this change, Kludgine was working around
this by noticing the discrepency and forcing an extra refresh. This
workaround is still in place in Kludgine, but now Cushy supports
restarting redrawing upon resize.
2024-09-16 08:22:30 -07:00
Jonathan Johnson
b4058fc55b
Honoring request_inner_size results 2024-09-16 07:04:36 -07:00
Jonathan Johnson
08d1b08ea6
Switching to Kludgine v0.11.0 2024-09-14 10:59:54 -07:00
Jonathan Johnson
229bbd4913
Window::on_init 2024-09-14 10:33:42 -07:00
Jonathan Johnson
b5cdb93bb5
Resize ranges fix 2024-09-14 08:35:26 -07:00
Jonathan Johnson
e34d06ac13
Actually fixing the Resize layout fill bug 2024-09-14 08:07:32 -07:00
Jonathan Johnson
e4b8a73943
Resize layout fix for flexible children 2024-09-14 08:05:02 -07:00
Jonathan Johnson
5f832c304f
Window shortcuts
Due to complexities in input routing and how that interacts with layers,
it seemed prudent to support installing shortcuts directly on the
window.

This also enables overriding default shortcuts like Primary+W to close
the window.
2024-09-13 16:18:30 -07:00
Jonathan Johnson
7fc902a5a2
Dynamic<T>/Owned<T> serde support 2024-09-13 15:55:44 -07:00