Commit graph

2,973 commits

Author SHA1 Message Date
okapii
37b1371baa Make sure tabs don't detach with high global spacing values in the theme. 2025-07-10 11:21:38 +02:00
okapii
5358e05cb5 Adding a min-height to the tab-bar 2025-07-10 11:21:38 +02:00
okapii
a0e8e3b34e Adding min/max support to DSL expressions 2025-07-10 11:21:38 +02:00
okapii
aed72ab282 subtle tab_bar/tab-contrast increase 2025-07-10 11:21:38 +02:00
okapii
219d265e2b Tabs: make sure low beveling values don't break how tabs are drawn. 2025-07-10 11:21:38 +02:00
okapii
b4e9ea1c9f Adding a ddefault label to Buttons 2025-07-10 11:21:37 +02:00
okapii
94ccbee529 Dark theme refinements 2025-07-10 11:21:37 +02:00
okapii
a5d4e1c22a SliderRound: adding val_padding support 2025-07-10 11:21:37 +02:00
okapii
fd78b87388 Slider minimal restructuring 2025-07-10 11:21:37 +02:00
okapii
10b5a985ab UI Zoo: update to work with val_padding and remove val_size for sliders 2025-07-10 11:21:37 +02:00
okapii
cd93552dd9 Adding value padding to SliderGradientY und SliderFlat, too 2025-07-10 11:21:37 +02:00
okapii
da29533ee3 Slider: restructure to have a global height and val_padding 2025-07-10 11:21:37 +02:00
okapii
a9e7985893 Slider: small bugfix 2025-07-10 11:21:37 +02:00
okapii
985c7b1a92 Rotaries: val_padding support and code cleanups 2025-07-10 11:21:37 +02:00
okapii
03b08bbf23 Rotary and RotaryGradientY: code cleanup and proper val_padding implemetations 2025-07-10 11:21:37 +02:00
okapii
57e0d2da6a Radiobutton refactor 2025-07-10 11:21:37 +02:00
okapii
2b0f4ce405 Radiobutton refactoring progress 2025-07-10 11:21:37 +02:00
Eddy Bruel
1fa8c8b615 Further cleanup 2025-07-09 15:04:16 +02:00
Eddy Bruel
72c57e4b27 WIP 2025-07-09 15:04:16 +02:00
Eddy Bruel
1028fab969 Clean up end_turtle 2025-07-09 15:04:16 +02:00
Eddy Bruel
0d0715c5bd Further cleanup 2025-07-09 15:04:16 +02:00
Eddy Bruel
01ace8d5be Implement min/max fills 2025-07-09 15:04:16 +02:00
Eddy Bruel
4e5c08b3e2 Refactor Size::Fill to have fields 2025-07-09 15:04:16 +02:00
Eddy Bruel
08ec170837 Preparatory work for min/max fills 2025-07-09 15:04:16 +02:00
Eddy Bruel
15f3df309d Implement weighted fills 2025-07-09 15:04:16 +02:00
Eddy Bruel
86961194fc Factor out deferred_{width/height}_up_to from end_turtle 2025-07-09 15:04:16 +02:00
Eddy Bruel
6d7bbf0f66 Clean up defer_walk 2025-07-09 15:04:16 +02:00
Eddy Bruel
fd810742e5 Clean up walk_turtle 2025-07-09 15:04:16 +02:00
Eddy Bruel
da1c04d9a7 Helper functions for moving the turtle 2025-07-09 15:04:16 +02:00
Eddy Bruel
a34411385e Clean up child_spacing 2025-07-09 15:04:16 +02:00
Eddy Bruel
21e5602fce Clean up update_width_used/update_height_used 2025-07-09 15:04:16 +02:00
Eddy Bruel
dc64ca2747 Dead code removal 2025-07-09 15:04:16 +02:00
Eddy Bruel
bfd9a8cb7e Helper functions for rects 2025-07-09 15:04:16 +02:00
Eddy Bruel
4724b5520d Clean up eval_width/eval_height 2025-07-09 15:04:16 +02:00
Eddy Bruel
08a496a4c5 Helper functions for widths/heights 2025-07-09 15:04:16 +02:00
Kevin Boos
e2094dc4dc Fix iOS Info.plist to use canonical version strings. Add location permissions. (#778) 2025-07-08 19:57:51 +02:00
Kevin Boos
ee6af17725 Avoid OOB error in ab_glyph_rasterizer (#779) 2025-07-08 19:57:34 +02:00
Julián Montes de Oca
77ce283ca1 Track parent size in AdaptiveView to support applying selector oustide draw flow (#776) 2025-07-01 20:43:21 +02:00
Guocork
8bf26aed92 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
bf84847bb8 Fix AdaptiveView not re-applying selector on geom change (#775) 2025-06-30 19:48:50 +02:00
alanpoon
639334c0ed 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
Guocork
5fa8c3b266 impl set_position on Linux (#748)
* impl  set_position

* remove set value

* finish set_position
2025-06-20 20:49:03 +02:00
Julián Montes de Oca
0e5bc91f76 Implement data directory handling for mobile platforms (#769)
- Add `get_data_dir` method to `CxOsApi` for retrieving writable data directory paths on mobile platforms.
2025-06-20 20:48:48 +02:00
Kevin Boos
b1780a0355 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
Admin
4dbd24c058 ai bounds fix on raster 2025-06-19 20:54:33 +02:00
okapii
4c56d1f48a Dark & light theme disabled state look improvements 2025-06-17 17:22:58 +02:00
okapii
bad17c2071 Minor Slider improvements 2025-06-17 15:26:21 +02:00
okapii
ddc48c4678 CheckboxCustom updates 2025-06-16 12:07:09 +02:00
okapii
a73e48e3ef Checkbox: remove superfluous match statement, introduce CheckBoxCustom for arbitrary graphical CheckBoxes 2025-06-16 11:09:16 +02:00
okapii
97f30ed84e Add disabled examples to UI Zoo 2025-06-16 10:48:31 +02:00