Commit graph

2,134 commits

Author SHA1 Message Date
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
okapii
4afd4c16fa Optimize flatter widget variants and remove ones for which this approach does not work properly 2025-06-16 10:48:31 +02:00
okapii
f77557cf02 Further apply theme, simplify skeleton theme. 2025-06-16 10:48:31 +02:00
okapii
b7137fa5f5 Apply theme and further clean up skeleton theme 2025-06-16 10:48:31 +02:00
okapii
a5fe084264 Light theme refinements 2025-06-16 10:48:31 +02:00
okapii
2ccb498fae SliderRound: fix input position 2025-06-16 10:48:31 +02:00
okapii
89ab20d213 Light theme progress 2025-06-16 10:48:31 +02:00
okapii
fac43db38b Skeleton finished 2025-06-16 10:48:31 +02:00
okapii
fd0581a0c3 Finished Skeleton Theme 2025-06-16 10:48:31 +02:00
okapii
01d6072ab8 Skeleton theme progress 2025-06-16 10:48:31 +02:00
okapii
cbc35c4355 Skeleton Theme progress 2025-06-16 10:48:31 +02:00
okapii
8f7eb1ca52 Skeleton Theme progress 2025-06-16 10:48:31 +02:00
okapii
aea79debfd Skeleton theme progress 2025-06-16 10:48:31 +02:00
okapii
4e11288e4f Skeleton theme progress 2025-06-16 10:48:31 +02:00
okapii
fd76478d77 Skeleton theme progress 2025-06-16 10:48:31 +02:00
okapii
a93f68e56b Subtly improve controsts 2025-06-16 10:48:31 +02:00
okapii
3be3b230d5 Design progress 2025-06-16 10:48:31 +02:00
okapii
74406d4d94 Theme styling progress 2025-06-16 10:48:30 +02:00
okapii
90ca93b3e0 Light Theme: progress 2025-06-16 10:48:30 +02:00
okapii
4e3ab93d4d Filetree: Fix filler block 2025-06-16 10:48:30 +02:00
okapii
4c71616aaa tab_bar: styling refinements 2025-06-16 10:48:30 +02:00
okapii
58e1dc7d63 Slider: refinements 2025-06-16 10:48:30 +02:00
okapii
71b610c559 UI Zoo, image examples: styling improvements 2025-06-16 10:48:30 +02:00
okapii
d852f00a65 UI Zoo: layout styling refinements 2025-06-16 10:48:30 +02:00
okapii
418e5861a8 UI Zoo: use the light theme for developing it 2025-06-16 10:48:30 +02:00
okapii
9b72ffe0ff UI Zoo, view examples: Apply the theme to make light mode work properly 2025-06-16 10:48:30 +02:00
okapii
bc4670b3be Light theme progress 2025-06-16 10:48:30 +02:00
okapii
d49fd5114d Make sure Hr and Vr don't become invisible when the global beveling theme parameter is 0. 2025-06-16 10:48:30 +02:00
okapii
de40099854 Remove opaque colors from theme to make sure the contrast global parameter works as expected 2025-06-16 10:48:30 +02:00
okapii
357b108ea2 Makepad Readme update 2025-06-10 11:23:14 +02:00
Admin
6ede2e075a buildrs for font paths in git dep 2025-06-06 15:52:26 +02:00
Julián Montes de Oca
e09f2cb2c5 AdaptiveView Improvements (some regression fixes) (#764)
* Fix DrawList generation mismatch in overlay cleanup

Prevents "Drawlist id generation wrong index" errors when AdaptiveView
switches between variants by using checked_index() instead of direct
indexing to safely handle recycled DrawList IDs in overlay.end().

* Dispatch WindowGeomChange on web upon CreateWindow

* Move display context updates to window and improve default selector in AdaptiveView
2025-06-03 22:11:55 +02:00
Admin
d6fa1e1e23 fix up openxr anchors 2025-05-31 21:38:42 +02:00
Admin
513f510a7b fix up quest xr demo 2025-05-31 20:23:19 +02:00
Admin
03652dec7c move quest xr_net example into main repo 2025-05-31 19:20:56 +02:00
Admin
fa4c5a110d remove warnings 2025-05-31 14:42:50 +02:00
Admin
67d9866954 fix glyph rendering edgecase of chinese character 2025-05-31 14:41:24 +02:00
Admin
19b8679ef7 temporary sdf-tweak to make the font error go away for now 2025-05-30 12:47:59 +02:00
Kevin Boos
ab9483c365 Restore overwritten change in internal makepad-android-state library (#763)
* Add `Dock::replace_tab()`: change the inner widget content of a tab
without having to remove and recreate the actual tab itself.

* Fix StackNavigation to forward non-visibility events to all subviews

* Allow saving/restoring the state of the `TextInput` widget

This redoes the changes introduced in #533, but modified for the new version of TextInput

* Add KeyModifiers parameter to `TextInputAction::Returned`

* Fix bug in text centering

* Properly restore the state of the TextInput

* undo version bumps for `makepad-android-state` and `makepad-jni-sys`

---------

Co-authored-by: Eddy Bruel <me@eddybruel.com>
2025-05-29 17:38:43 +02:00
Julián Montes de Oca
8fd3d742ca Improve Markdown heading scaling and general spacing (#740)
* Fix bug in text centering

* Improve markdown scaling and spacing

---------

Co-authored-by: Eddy Bruel <me@eddybruel.com>
2025-05-28 18:19:43 +02:00