Commit graph

532 commits

Author SHA1 Message Date
okapii
959749009e view: gradient refactor progress 2025-07-10 11:21:38 +02:00
okapii
b1c444f82c View: gradient refactor progress 2025-07-10 11:21:38 +02:00
okapii
f58b107664 Tab: gradient refactor updates 2025-07-10 11:21:38 +02:00
okapii
c05f1c7453 Tab: gradient refactor 2025-07-10 11:21:38 +02:00
okapii
eff462825f LinkLabel gradient refactor 2025-07-10 11:21:38 +02:00
okapii
ea27251944 Refactor progress 2025-07-10 11:21:38 +02:00
okapii
e48627c0a8 Label gradient refactor 2025-07-10 11:21:38 +02:00
okapii
9228b22b85 Button gradient-direction uniform renaming 2025-07-10 11:21:38 +02:00
okapii
3427107a4f Icon widget refactor 2025-07-10 11:21:38 +02:00
okapii
2e08834988 SpinnerWidget improvements and adding a demo to UI Zoo 2025-07-10 11:21:38 +02:00
okapii
7ca05c7711 Improving the sentinel value conditions 2025-07-10 11:21:38 +02:00
okapii
54b58570f8 Button: minor code improvement 2025-07-10 11:21:38 +02:00
okapii
689b134385 Button: adding a gradient direction flag 2025-07-10 11:21:38 +02:00
okapii
edf8c69ab4 Shader ergonomics improvement button refactor 2025-07-10 11:21:38 +02:00
okapii
ca7de3ba50 TabFlat: removed a faulty 1px offset 2025-07-10 11:21:38 +02:00
okapii
a350aeaa91 Improve widgets in order to work properly with more extreme global theme settings. 2025-07-10 11:21:38 +02:00
okapii
3beaed1e5d Rotary: make sure that rotaries are not being cut off at the bottom when scaled 2025-07-10 11:21:38 +02:00
okapii
1d6ba10df3 Make sure tabs don't detach with high global spacing values in the theme. 2025-07-10 11:21:38 +02:00
okapii
3520f0c38a Adding a min-height to the tab-bar 2025-07-10 11:21:38 +02:00
okapii
5949090856 subtle tab_bar/tab-contrast increase 2025-07-10 11:21:38 +02:00
okapii
a9347b1695 Tabs: make sure low beveling values don't break how tabs are drawn. 2025-07-10 11:21:38 +02:00
okapii
343ad815b9 Adding a ddefault label to Buttons 2025-07-10 11:21:37 +02:00
okapii
48e8a54fe7 Dark theme refinements 2025-07-10 11:21:37 +02:00
okapii
4603f22319 SliderRound: adding val_padding support 2025-07-10 11:21:37 +02:00
okapii
86a4a50387 Slider minimal restructuring 2025-07-10 11:21:37 +02:00
okapii
5091282353 Adding value padding to SliderGradientY und SliderFlat, too 2025-07-10 11:21:37 +02:00
okapii
8aa2f96dbc Slider: restructure to have a global height and val_padding 2025-07-10 11:21:37 +02:00
okapii
515abb0057 Slider: small bugfix 2025-07-10 11:21:37 +02:00
okapii
e07f306260 Rotaries: val_padding support and code cleanups 2025-07-10 11:21:37 +02:00
okapii
70f2fb7025 Rotary and RotaryGradientY: code cleanup and proper val_padding implemetations 2025-07-10 11:21:37 +02:00
okapii
24f48c57c8 Radiobutton refactor 2025-07-10 11:21:37 +02:00
okapii
0aa2340e59 Radiobutton refactoring progress 2025-07-10 11:21:37 +02:00
Eddy Bruel
4cbf821c34 WIP 2025-07-09 15:04:16 +02:00
Eddy Bruel
ad8891a4be Further cleanup 2025-07-09 15:04:16 +02:00
Eddy Bruel
3ccf3628f2 Refactor Size::Fill to have fields 2025-07-09 15:04:16 +02:00
Eddy Bruel
98e30c03cf Clean up defer_walk 2025-07-09 15:04:16 +02:00
Eddy Bruel
f25f843c6f Dead code removal 2025-07-09 15:04:16 +02:00
Julián Montes de Oca
d6fb5b8014
Track parent size in AdaptiveView to support applying selector oustide draw flow (#776) 2025-07-01 20:43:21 +02:00
Guocork
0cf3638556
widget: loading_spinner (#774)
* loading spinner

* convert style

* use arc_round_caps refactor

* adjust the speed

* change to uniform

* Update widgets/src/loading_spinner.rs

Co-authored-by: Kevin Boos <1139460+kevinaboos@users.noreply.github.com>

* Update widgets/src/loading_spinner.rs

Co-authored-by: Kevin Boos <1139460+kevinaboos@users.noreply.github.com>

---------

Co-authored-by: Kevin Boos <1139460+kevinaboos@users.noreply.github.com>
2025-06-30 19:49:50 +02:00
Julián Montes de Oca
3885596b04
Fix AdaptiveView not re-applying selector on geom change (#775) 2025-06-30 19:48:50 +02:00
alanpoon
836d042c45
Persistent and restoration of Window State (#770)
* Added create_window, remove is_created check

* Added Event::Shutdown for window when shutting down

* reduce code redundancy with assignment

Co-authored-by: Kevin Boos <1139460+kevinaboos@users.noreply.github.com>

* allow macos fullscreen

* add window_fullscreen

* window_fullscreen

* linux_x11, support set fullscreen during initalisation

---------

Co-authored-by: Kevin Boos <1139460+kevinaboos@users.noreply.github.com>
2025-06-20 20:49:55 +02:00
Kevin Boos
8d34458302
Allow users of TextInput to know when a keypress had no effect (#767)
* Allow users of `TextInput` to know when a keypress had no effect

This PR makes the `TextInput` widget emit a `TextInputAction::KeyDownUnhandled`
action upon keypresses that don't actually make any change to the widget's selection.

This action is currently only emitted for the Up, Down, Left, and Right arrow keys,
but we can certainly add it to others like Backspace, Delete, etc if desired.

Use case: if you want to enable custom behavior when the user uses arrow keys
to navigate an empty TextInput widget, such as jumping up out of the TextInput focus
to edit the most recent message you just sent in a chat app, then this PR
is necessary. Otherwise there's no way to know whether a given input actually had
any effect on the TextInput's inner cursor/selection state.

* Add the FaceID usage description to iOS Info.plist

Allows Makepad apps to use biometric auth on iOS
2025-06-20 20:48:06 +02:00
okapii
40f8166e53 Dark & light theme disabled state look improvements 2025-06-17 17:22:58 +02:00
okapii
eee6fd8922 Minor Slider improvements 2025-06-17 15:26:21 +02:00
okapii
5d2767cc7a CheckboxCustom updates 2025-06-16 12:07:09 +02:00
okapii
4fbd5363ac Checkbox: remove superfluous match statement, introduce CheckBoxCustom for arbitrary graphical CheckBoxes 2025-06-16 11:09:16 +02:00
okapii
5ee3e3d978 Optimize flatter widget variants and remove ones for which this approach does not work properly 2025-06-16 10:48:31 +02:00
okapii
34b364f124 Further apply theme, simplify skeleton theme. 2025-06-16 10:48:31 +02:00
okapii
fbb3f7eee0 Apply theme and further clean up skeleton theme 2025-06-16 10:48:31 +02:00
okapii
fc85dd4b3a Light theme refinements 2025-06-16 10:48:31 +02:00