Commit graph

701 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
0a95af78f4
Add quick example to widget::button module 2024-09-19 02:30:24 +02:00
Héctor Ramón
a61c84b7e0
Merge pull request #2579 from dcampbell24/add-rust-version
Add rust-version.
2024-09-18 22:02:15 +02:00
Héctor Ramón
fc722f1356
Merge pull request #2584 from iced-rs/fix/scrollable-transactions
Fix `scrollable` transactions when `on_scroll` is not set
2024-09-18 21:54:16 +02:00
Héctor Ramón Jiménez
71af846c6d
Remove redundant import in markdown widget 2024-09-18 21:51:12 +02:00
Héctor Ramón Jiménez
11ac912549
Fix scrollable transactions when on_scroll is not set 2024-09-18 21:45:25 +02:00
Héctor Ramón
1cf284a850
Merge pull request #2583 from iced-rs/fix/scrolling-direction-with-trackpad
Fix scrolling direction with trackpad in `scrollable`
2024-09-18 20:54:42 +02:00
Héctor Ramón Jiménez
45992109dd
Fix scrolling direction with trackpad in scrollable 2024-09-18 20:41:49 +02:00
Héctor Ramón Jiménez
1448c5bfa5
Implement some From traits for text_input::Id 2024-09-18 20:30:14 +02:00
Héctor Ramón Jiménez
40ea3dabff
Bump version to 0.13.0 🎉 2024-09-18 02:38:49 +02:00
Héctor Ramón
f3b51e40f0
Merge pull request #2565 from kiedtl/slider_mouse_wheel
slider: handle mouse wheel events
2024-09-13 23:58:03 +02:00
Héctor Ramón Jiménez
83041f6880
Use mouse::Cursor::is_over in slider 2024-09-13 23:46:51 +02:00
Héctor Ramón Jiménez
cdf02ddda9
Enable slider scrolling only when Ctrl is pressed 2024-09-13 23:45:30 +02:00
dtoniolo
2367f7863a
Document how the state of a Component can be managed 2024-09-13 22:41:43 +02:00
Héctor Ramón Jiménez
9d9ac0ff35
Add on_open handler to combo_box widget
Co-authored-by: Wail Abou <abou.w@hotmail.com>
2024-09-13 16:38:38 +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 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
Samson
ac1d98aa9b
feat: add width setter 2024-09-13 01:03:35 +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
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
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 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
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
Isaac Marovitz
9edd805c02
Add mouse::Button to mouse::Click 2024-09-09 23:45:15 +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 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 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 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
3a70462a72
Fix toggler example 2024-09-04 21:33:07 +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 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
Kiëd Llaentenn
0d298b70d2 slider: handle mouse wheel events 2024-09-02 09:03:48 -04: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
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
mtkennerly
3a434c9505
Add compact variant for pane grid controls 2024-08-22 12:43:48 -04:00
Héctor Ramón Jiménez
bb6fa42924
Fix ambiguous rich_text link in widget::markdown 2024-08-22 02:30:12 +02:00
Héctor Ramón Jiménez
4c883f12b4
Make RichText generic over data structure
... and decouple `markdown::parse` from theming
2024-08-22 02:24:06 +02:00
Héctor Ramón Jiménez
55764b923e
Decouple markdown widget from built-in Theme 2024-08-21 02:34:03 +02:00
Héctor Ramón Jiménez
cfd2e7b116
Short-circuit scrolling passthrough in Stack 2024-08-14 19:06:16 +02:00
Héctor Ramón Jiménez
889d8b891f
Fix scroll event passthrough in Stack widget 2024-08-14 19:04:26 +02:00