Commit graph

5144 commits

Author SHA1 Message Date
Héctor Ramón
b7ba613dbc
Merge pull request #2517 from JustSoup312/multitouch
Fix examples/multitouch dividing by zero
2024-09-13 01:41:29 +02:00
Héctor Ramón
74bb93513e
Merge pull request #2514 from shartrec/master
#2509 Handle number pad del key correctly
2024-09-13 01:35:40 +02:00
JustSoup321
a497d12320
Fix examples/multitouch dividing by zero 2024-09-13 01:29:35 +02:00
Héctor Ramón Jiménez
73ae2b4dbe
Fix priority of Binding::Delete in text_editor
Co-authored-by: Trevor Campbell <trevor@shartrec.com>
2024-09-13 01:26:29 +02:00
Héctor Ramón
295aae4faa
Merge pull request #2513 from ayeniswe/feat/set-width_text-editor
feat: add width setter for Text-Editor widget
2024-09-13 01:20:25 +02:00
Héctor Ramón Jiménez
7c7e94c8d1
Set Limits::width in TextEditor layout 2024-09-13 01:10:36 +02:00
Héctor Ramón Jiménez
4081e2b192
Take Into<Pixels> in TextEditor::width
Since a `Shrink` width would not make sense.
2024-09-13 01:08:23 +02:00
Héctor Ramón
f392f4ac87
Merge pull request #2491 from gintsgints/master
rounded rectangle graphics
2024-09-13 01:07:24 +02:00
Samson
ac1d98aa9b
feat: add width setter 2024-09-13 01:03:35 +02:00
Gints Polis
7e89015e60
Add rounded_rectangle to geometry::Path 2024-09-13 00:58:27 +02:00
Héctor Ramón
aed59bae50
Merge pull request #2486 from vladh/add-color-from-hex
Add `Color::parse`
2024-09-11 01:36:14 +02:00
Héctor Ramón Jiménez
7901d4737c
Encourage use of color! macro in Color::parse docs 2024-09-11 01:28:03 +02:00
Héctor Ramón Jiménez
523708b5b1
Rename Color::from_hex to Color::parse 2024-09-11 01:21:12 +02:00
Héctor Ramón Jiménez
934667d263
Improve flexibility of color! macro 2024-09-11 01:21:12 +02:00
Vlad-Stefan Harbuz
816facc204
Add Color::from_hex 2024-09-11 01:21:12 +02:00
Héctor Ramón
2eb1cc54ac
Merge pull request #2484 from vladh/fix-radii-typo
wgpu: Fix “radii” typo
2024-09-11 00:43:50 +02:00
Héctor Ramón
07c9a2a8a9
Merge pull request #2478 from sundaram123krishnan/master
Add Disable Feature to Toggler Widget
2024-09-11 00:30:56 +02:00
Héctor Ramón Jiménez
6e4970c01a
Add label method to Toggler 2024-09-11 00:22:39 +02:00
Héctor Ramón Jiménez
c741688b4c
Add disabled state and on_toggle handler to Toggler
Co-authored-by: Your Name here only <krishnsundaram@gmail.com>
2024-09-11 00:22:13 +02:00
Héctor Ramón
770176a4e1
Merge pull request #2476 from alliby/master
Add `override_redirect` for X11 windows
2024-09-11 00:10:04 +02:00
Nadji Abidi
190774258c
Add override_redirect for X11 windows
This commit add the `override_redirect` boolean field to the `PlatformSpecific` struct for linux platform.
This is a X11-specific flag allow bypassing window manager mapping for precise positioning of windows.
2024-09-11 00:00:40 +02:00
Héctor Ramón
2a17afb737
Merge pull request #2473 from vladh/add-stroke-rectangle
Add stroke_rectangle
2024-09-10 23:54:05 +02:00
Héctor Ramón
f7bca570c3
Merge pull request #2450 from breynard0/master
Add `on_scroll` handler to `mouse_area` widget
2024-09-10 23:51:16 +02:00
Héctor Ramón Jiménez
fe8f41278d
Leverage stroke for stroke_rectangle in tiny-skia backend 2024-09-10 23:45:33 +02:00
Vlad-Stefan Harbuz
ec39390c23
Add stroke_rectangle
This method should be able to leverage performance improvements in lyon's
`tessellate_rectangle` over `tessellate_path`.
2024-09-10 23:44:04 +02:00
Héctor Ramón Jiménez
25e54a9acb
Simplify signatures of on_move and on_scroll for mouse_area 2024-09-10 23:41:07 +02:00
Héctor Ramón Jiménez
c711750be7
Use cursor changes to notify mouse events in mouse_area
Fixes #2433.
2024-09-10 23:39:49 +02:00
Siliwolf
bf4796bbeb
Add on_scroll handler to mouse_area widget 2024-09-10 23:32:16 +02:00
B0ney
abd323181d
Improve slider widget styling. (#2444)
* Overhaul slider styling

* Add `border`  attribute to `Rail`
* Replace `color` attribute with `background` for handle

* Replace `colors` with `backgrounds` for the Rail.

* code consistency

* remove unused import
2024-09-10 21:30:37 +00:00
B0ney
ae58a40398
Render border above active progress for progress_bar widget. (#2443)
* Render border above active progress for progress_bar widget.

* Fix gap showing between border and background.

* Include border style in active bar and make the border color transparent.
2024-09-10 20:59:00 +00:00
Héctor Ramón
7bffab72b7
Merge pull request #2438 from Koranir/on-scroll-patch
Notify `scrollable::Viewport` changes
2024-09-10 22:48:08 +02:00
Héctor Ramón Jiménez
716a11cc48
Notify all scrollable::Viewport changes
Co-authored-by: Daniel Yoon <101683475+Koranir@users.noreply.github.com>
2024-09-10 22:39:56 +02:00
Héctor Ramón
c22559cb3d
Merge pull request #2436 from lufte/scrollby
`scrollable::scroll_by` operation
2024-09-10 22:25:39 +02:00
lufte
e102e89c6a
Implement scroll_by operation for scrollable
`scroll_by` allows scrolling an absolute offset
that is applied to the current scrolling position.
2024-09-10 22:09:03 +02:00
Héctor Ramón
7683447f87
Merge pull request #2419 from skygrango/wasm/support-download_progress
Support wasm target for `download_progress`
2024-09-10 19:33:38 +02:00
Skygrango
0053cc03f9
Add index.html to download_progress example 2024-09-10 19:25:20 +02:00
Héctor Ramón Jiménez
1a0bcdb2f6
Fix download_progress and make it work on Wasm
Co-authored-by: Skygrango <skygrango@gmail.com>
2024-09-10 19:24:30 +02:00
Héctor Ramón Jiménez
44235f0c0b
Upgrade upload-artifact action in build workflow 2024-09-10 18:09:13 +02:00
Héctor Ramón Jiménez
2829c12d35
Use key_binding in editor example
Fixes #2573.
2024-09-10 16:26:15 +02:00
Héctor Ramón
0319e160b5
Merge pull request #2414 from IsaacMarovitz/mouse-button
Add `mouse::Button` to `mouse::Click`
2024-09-09 23:53:34 +02:00
Isaac Marovitz
9edd805c02
Add mouse::Button to mouse::Click 2024-09-09 23:45:15 +02:00
Héctor Ramón
630f3525dd
Merge pull request #2392 from woelfman/fix-horizontal-scroll
Enable horizontal scrolling without shift modifier
2024-09-08 19:11:48 +02:00
Matt Woelfel
0a0ea30059
Enable horizontal scrolling without shift modifier
Fixes #2359.
2024-09-08 19:03:31 +02:00
Héctor Ramón
c8686c5173
Merge pull request #2401 from Koranir/scrollable-scrollover
Scroll Transactions
2024-09-08 16:09:24 +02:00
Héctor Ramón Jiménez
502c5fdfbc
Implement mouse wheel transactions for scrollable
See https://wiki.mozilla.org/Gecko:Mouse_Wheel_Scrolling#Mouse_wheel_transaction

Co-authored-by: Daniel Yoon <101683475+Koranir@users.noreply.github.com>
2024-09-08 16:00:22 +02:00
Héctor Ramón
dff14bd440
Merge pull request #2390 from JL710/TextInput-Maybe
Text input maybe
2024-09-07 23:09:19 +02:00
Héctor Ramón
b3b76ed42f
Merge pull request #2549 from JL710/patch-3
Remove out of date comment from custom-widget example
2024-09-07 23:05:28 +02:00
Héctor Ramón Jiménez
09174d5a25
Simplify type signature of TextInput methods 2024-09-07 23:00:48 +02:00
JL710
827ba5b16c
Add *_maybe helper methods for TextInput 2024-09-07 22:57:15 +02:00
Héctor Ramón Jiménez
9426418adb
Deprecate the component widget 2024-09-05 15:08:31 +02:00