Commit graph

5623 commits

Author SHA1 Message Date
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
Héctor Ramón
eada3b8bf2
Merge pull request #2289 from JL710/Component-doc
feature doc to Component trait
2024-09-05 14:59:42 +02:00
Héctor Ramón Jiménez
7cb12e3c3b
Flag lazy feature types directly
Co-authored-by: JL710 <76447362+JL710@users.noreply.github.com>
2024-09-05 14:49:18 +02:00
Héctor Ramón Jiménez
14e686cd37
Fix winit::conversion on Windows 2024-09-05 11:30:25 +02:00
Héctor Ramón
b5cbb4a4e4
Merge pull request #2284 from jquesada2016/mouse_passthrough
Add command for setting mouse passthrough
2024-09-05 11:22:03 +02:00
Night_Hunter
d1ceada119
add option for undecorated_shadow on windows (#2285)
* add option for undecorated_shadow on windows

* formated
2024-09-05 11:17:44 +02:00
Héctor Ramón Jiménez
64ec099a9b
Add mouse passthrough tasks to window module
Co-authored-by: Jose Quesada <jquesada2016@fau.edu>
2024-09-05 11:13:37 +02:00
Héctor Ramón
6009420b57
Merge pull request #2279 from nrjais/wrapping
Add `text::Wrapping` support
2024-09-04 21:42:11 +02:00
Héctor Ramón Jiménez
3a70462a72
Fix toggler example 2024-09-04 21:33:07 +02:00
Héctor Ramón Jiménez
529c459c56
Remove unnecessary buffer_mut_from_editor call 2024-09-04 21:28:44 +02:00
Héctor Ramón Jiménez
f98328f4f1
Add text::Wrapping support
Co-authored-by: Neeraj Jaiswal <neerajj85@gmail.com>
2024-09-04 21:26:47 +02:00
Héctor Ramón
8d826cc662
Merge pull request #2262 from Koranir/text-input-disable-select
Allow disabled `TextInput` to still be interacted with
2024-09-04 20:37:33 +02:00
Héctor Ramón Jiménez
9572bd1e90
Allow interactions on disabled text_input
Co-authored-by: Daniel Yoon <101683475+Koranir@users.noreply.github.com>
2024-09-04 20:27:28 +02:00
Héctor Ramón Jiménez
9628dc20d5
Reconnect Clipboard on window close
Fixes #2564
2024-09-03 11:23:54 +02:00
Kiëd Llaentenn
0d298b70d2 slider: handle mouse wheel events 2024-09-02 09:03:48 -04:00
Héctor Ramón
9957481d41
Merge pull request #2261 from wiiznokes/container-style-colored
Add a colored variant for Container style
2024-09-02 12:11:29 +02:00
Héctor Ramón Jiménez
9d7aa11623
Implement From<Style> for container::StyleFn
Co-authored-by: wiiznokes <78230769+wiiznokes@users.noreply.github.com>
2024-09-02 12:00:55 +02:00
Héctor Ramón Jiménez
feff4d1cba
Introduce container::background style helper 2024-09-02 11:59:35 +02:00
Héctor Ramón
cb94e40b60
Merge pull request #2244 from dtzxporter/separate-image-widget-from-image-codecs
Separate image widget support from image codecs.
2024-09-02 11:57:35 +02:00
Héctor Ramón Jiménez
fa66610f24
Introduce image-without-codecs feature flag
Co-authored-by: dtzxporter <dtzxporter@users.noreply.github.com>
2024-09-02 11:47:55 +02:00
Héctor Ramón Jiménez
0dcec519be
Add get_scale_factor task to window module 2024-08-30 13:02:49 +02:00
Héctor Ramón
043f030214
Merge pull request #2535 from bungoboingo/text-input-alignment
Implement `align_x` for `TextInput`
2024-08-24 02:44:55 +02:00
Shan
6c741923c6
Implement align_x for TextInput
Co-authored-by: Shan <shankern@protonmail.com>
2024-08-24 02:36:18 +02:00
Héctor Ramón
84e766fd00
Merge pull request #2555 from mtkennerly/feature/pane-grid-compact-controls
Add compact variant for pane grid controls
2024-08-24 01:58:53 +02:00