Commit graph

640 commits

Author SHA1 Message Date
Eddy Bruel
6c2faed432 Implement min/max fits 2025-09-25 16:09:28 +02:00
makepaddev
602dd42d36 fix elided lifetime warnings 2025-09-09 21:37:52 +02:00
Admin
53f799a84a ai fixup 2025-09-09 09:37:35 +02:00
Admin
8550f83b1a sync load image sizes 2025-07-22 11:58:12 +02:00
Kevin Boos
17f60d02ca Create PageFlip child widget within set_active_page() (#783)
This allows an app dev/user to create and populate a new widget
within the PageFlip parent widget *before* waiting for it to be drawn.
Previously, the child widgets within PageFlip were either created
upon app load (which is inefficient) or upon draw (which is too late).
2025-07-21 20:52:34 +02:00
Julián Montes de Oca
cb5134c788 Rework StackNavigation into an actual Stack (#766)
* Refactor stack navigation into a proper stack

 - Replace show_stack_view_by_id with push/pop/popToRoot methods
- Add proper navigation stack with history tracking
- Fix animation transitions between consecutive views
- Add stack inspection methods (depth, can_pop, current_view)
- Maintain backward compatibility with deprecated methods
- Update action enum to use Push/Pop/PopToRoot variants

* Add support for multiple instances of StackNavigation.

- Introduced full-screen flag necessary to disable full-screen positioning and sliding animations when needed.
2025-07-12 02:11:27 +02:00
alanpoon
939c8c5b1d fix_small_spinner_not_showing (#782)
* fix_small_spinner_not_showing

* remove debug
2025-07-12 02:11:16 +02:00
Kevin Boos
69d99edaef Add PortalList::is_filling_viewport() (#781)
* Update old `windows-targets` dep version to reduce lockfile duplicates

All other crates in the Rust ecosystem depend on `windows-targets`
v0.52.*, so this small change vastly reduces the number of duplicate
`windows-*` crate dependencies that cargo must download and track in the lockfile.

Also address minor compiler warnings in AdaptiveView.

* Add `PortalList::is_filling_viewport()`

This is needed in order for an app to be able to take action
upon a portal list's viewport not being completely full.
For example, if you're showing a chat room, you can fetch older events
until there is enough history to fill the entire viewport.
2025-07-12 02:11:05 +02:00
Kevin Boos
31c2476c4d Update old windows-targets dep version to reduce lockfile duplicates (#780)
All other crates in the Rust ecosystem depend on `windows-targets`
v0.52.*, so this small change vastly reduces the number of duplicate
`windows-*` crate dependencies that cargo must download and track in the lockfile.

Also address minor compiler warnings in AdaptiveView.
2025-07-12 02:10:51 +02:00
okapii
7b90db8e25 Fix dropdown 2025-07-10 16:17:19 +02:00
okapii
755f4114d9 Dropdown code cleanup 2025-07-10 15:52:57 +02:00
okapii
9f9a1ee93b Add Gradient support to icon shaders (button, checkbox, radio) 2025-07-10 15:13:12 +02:00
okapii
f8e511fec1 Fixes 2025-07-10 14:48:34 +02:00
okapii
2f7c8827c9 Light theme refinements 2025-07-10 14:15:27 +02:00
okapii
79745230d7 Variable name consistency fix 2025-07-10 14:07:21 +02:00
okapii
8ebc7b8b18 Theme application and theme optimizations (improving active state stylings) 2025-07-10 14:03:12 +02:00
okapii
48433b8708 Consistent theme application and rotary focus state optimizations 2025-07-10 13:56:13 +02:00
okapii
2eeff07359 Cleanup pass: proper theme vairable application 2025-07-10 13:39:40 +02:00
okapii
738c01d5c7 Improve UV mapping support of widgets 2025-07-10 12:34:24 +02:00
okapii
532453f4bb Further complete dither support 2025-07-10 12:24:32 +02:00
okapii
41454afd24 Button: make the flat variant the base one 2025-07-10 12:11:15 +02:00
okapii
9478bf7b41 Complete gradient dither support 2025-07-10 12:04:09 +02:00
okapii
8731210c4f Dropdown: gradient refactor 2025-07-10 11:21:38 +02:00
okapii
3bfb34bf10 RadioButton: gradient refactor 2025-07-10 11:21:38 +02:00
okapii
9814b81948 RadioButton: Gradient refactor 2025-07-10 11:21:38 +02:00
okapii
d216656987 RadioButton: gradient refactor 2025-07-10 11:21:38 +02:00
okapii
98f067099c Radio: Gradient refactor progress 2025-07-10 11:21:38 +02:00
okapii
b407c6b642 Checkbox: fixed missing gradient_dir variables 2025-07-10 11:21:38 +02:00
okapii
2177927322 Checkbox gradient refactor 2025-07-10 11:21:38 +02:00
okapii
4824fb4b09 Toggle: Gradient refactor 2025-07-10 11:21:38 +02:00
okapii
7f57d2b595 Checkbox: Gradient refactor 2025-07-10 11:21:38 +02:00
okapii
ef2bb1d0bb popup_menu: gradient refactor 2025-07-10 11:21:38 +02:00
okapii
fc875424a6 popupmenu: popupmenuitem gradient refactor 2025-07-10 11:21:38 +02:00
okapii
ff12dff7d3 Rotary: Gradient refactor 2025-07-10 11:21:38 +02:00
okapii
b2bb14ce0e Rotary: Gradient refactor 2025-07-10 11:21:38 +02:00
okapii
df923735ba SliderRound: Gradient refactor 2025-07-10 11:21:38 +02:00
okapii
a3759cf7e4 SliderRound: Gradient refactor 2025-07-10 11:21:38 +02:00
okapii
0e159d66f3 Slider: Gradient refactor 2025-07-10 11:21:38 +02:00
okapii
63190ecdfe Slider: Gradient refactor progress 2025-07-10 11:21:38 +02:00
okapii
fc2025fe58 Slider: Gradient refactor progress 2025-07-10 11:21:38 +02:00
okapii
242de9741b Slider: gradient refactor 2025-07-10 11:21:38 +02:00
okapii
2198b23572 Slider: Gradient refactor progress 2025-07-10 11:21:38 +02:00
okapii
584f469f99 Dark theme: focus state improvements 2025-07-10 11:21:38 +02:00
okapii
3f06b9f0a6 Textinput: structural refactor that turns the flat variant into the base style 2025-07-10 11:21:38 +02:00
okapii
82b52b3885 Dark theme refinement 2025-07-10 11:21:38 +02:00
okapii
c194cb22da TextInput: gradient refactor 2025-07-10 11:21:38 +02:00
okapii
a97f05adc5 TextInput: gradient refactor 2025-07-10 11:21:38 +02:00
okapii
670af0992b tab: further fix the pixel offset problem 2025-07-10 11:21:38 +02:00
okapii
eecafac268 tab_bar: gradient refactor 2025-07-10 11:21:38 +02:00
okapii
ef9dab4941 tab: re-fix outline offset issue 2025-07-10 11:21:38 +02:00