Commit graph

130 commits

Author SHA1 Message Date
Jonathan Johnson
0fe7f78969
Consistently apply overridden theme
Refs #196
2024-10-24 07:34:27 -07:00
Jonathan Johnson
0e0c26fa3b
Fixing Slider sizing when fully SizeToFit
Fixes #197
2024-10-23 10:48:09 -07:00
Jonathan Johnson
62dded16ef
GraphicsContext::fill fix
Fixes #193

Not really sure why this existed -- all attempts at reasoning at this
choice today are met with me scratching my head.
2024-10-22 08:09:11 -07:00
Jonathan Johnson
bc54893c1c
Disable resizable automatically with fixed roots
Closes #188
2024-10-19 09:10:12 -07:00
Jonathan Johnson
171cf3f733
Refactor ScrollBars to their own widget
Closes #181
2024-10-19 08:16:26 -07:00
Jonathan Johnson
5adb37d2f1
Merge branch 'virtual-scroll-list-example' 2024-10-17 09:47:35 -07:00
Jonathan Johnson
51649a3c05
Refactored Scroll to be UPx
Also addressed comments in #185
2024-10-17 09:46:32 -07:00
Jonathan Johnson
5a5f6c9229
Fixed clipping of widgets with negative origins
Fixes #183
2024-10-17 08:54:12 -07:00
Jonathan Johnson
02e60e1049
IntoWidgetList
Fixes #182
2024-10-16 15:59:18 -07:00
Jonathan Johnson
5b928327dc
Simplify Button color caching logic
Fixes #180
2024-10-16 12:37:21 -07:00
Jonathan Johnson
34d1cf055e
Stack/Grid exact-dimension scaling fix 2024-10-10 08:51:30 -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
f96a5d2055
Unrecoverable errors as native dialogs 2024-10-07 08:06:07 -07: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
4f3ef7d9ed
Nested modals 2024-10-04 10:17:40 -07:00
Jonathan Johnson
a7972309c3
File picker 2024-10-03 13:39:46 -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
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
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
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
b4058fc55b
Honoring request_inner_size results 2024-09-16 07:04:36 -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
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
20ab1ad029
Fixed initial window settings
These aren't entries in the changelog since they're bug fixes for new
code since the last release -- the entries on the changelog are
unaffected.

- focused and occluded no longer is explicitly set to false. Now, once
  the window has been fully initialized, the values are read from winit
  which will cause callbacks to be fired if the value has changed.
- The automatic_layout parameter if outer_position had its meaning
  inverted. Passing true now properly ensures the window is
  automatically positioned.
2024-09-13 10:12:01 -07:00
Jonathan Johnson
09790039af
App::prevent_shutdown() 2024-09-12 07:40:59 -07:00
Jonathan Johnson
8d082ab77f
Modal layer 2024-09-11 20:54:08 -07:00
Jonathan Johnson
71f699ccda
WindowHandle::execute 2024-09-11 16:29:04 -07:00
Jonathan Johnson
2becb92f04
WrapperWidget::root_behavior default passthrough 2024-09-11 14:44:47 -07:00
Jonathan Johnson
8eaf0f414f
serde feature 2024-09-11 06:19:35 -07:00
Jonathan Johnson
7e69846909
Shortcut fallback, ShortcutMap 2024-09-10 07:46:34 -07:00
Jonathan Johnson
c2d07344d9
Keyboard shortcut handling 2024-09-09 15:05:02 -07:00
Jonathan Johnson
448482e7bf
Fullscreen example 2024-09-09 08:12:59 -07:00
Jonathan Johnson
0f866009b8
app_name, fullscreen, focused
Finally finished removing WindowAttributes.
2024-09-09 07:49:21 -07:00
Jonathan Johnson
8d653c2d6c
Modifiers support
Closes #162
2024-09-09 06:49:04 -07:00
Jonathan Johnson
14d2069fec
MakeWindow + easy window centering 2024-09-08 13:19:55 -07:00
Jonathan Johnson
dd4c544ba6
Window sync edge cases
- synchronize_platform_window is now called prior to the first redraw.
  This allows the `visible` attribute to be changed from false to true.
- Some window attributes are automatically set based on the incoming
  dynamic.
- Some initial window values are delayed until after the first layout to
  minimze "noisy" values.

All of these changes now allow a window that is resize_to_fit to be
initially hidden and show itself centered after being initially resized
without any flashing or on-screen movement/resizing.
2024-09-08 11:29:29 -07:00
Jonathan Johnson
bbbc8151c4
cushy::main attribute macro 2024-09-08 09:31:35 -07:00
Jonathan Johnson
0953e5ab40
Window::icon 2024-09-07 10:13:48 -07:00
Jonathan Johnson
531e6c9ab6
Window positioning properties
Closes #165
2024-09-07 09:31:40 -07:00
Jonathan Johnson
bf78da333d
App::monitors + run()/on_startup()
Closes #163
2024-09-06 11:50:35 -07:00
Jonathan Johnson
634a4b7af8
Added most window settings from winit
Refs #160
2024-09-05 20:31:01 -07:00
Jonathan Johnson
9304165981
PendingWindow in PendingApp fix + resize_to_fit 2024-09-04 08:29:13 -07:00
Jonathan Johnson
6a346ea3ef
Added Watcher type 2024-09-02 09:23:52 -07:00
Jonathan Johnson
0dd18826c9
Switcher unmounts in all windows
Fixes #139
2024-08-28 08:49:26 -07:00
Jonathan Johnson
53d3c58cbb
Added missing to_ variants 2024-08-28 07:42:11 -07:00