Commit graph

712 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
c646ff5f1f
Show progress_bar doc example in multiple places 2024-09-19 04:57:32 +02:00
Héctor Ramón Jiménez
7b22b7e876
Show pick_list doc example in multiple places 2024-09-19 04:45:15 +02:00
Héctor Ramón Jiménez
b78243d86f
Show pane_grid doc example in multiple places 2024-09-19 04:35:39 +02:00
lufte
8c6caefd9f Set the text color determined by the style function
Fixes: https://github.com/iced-rs/iced/issues/2557
2024-09-18 23:34:45 -03:00
Héctor Ramón Jiménez
a2c16aa68e
Show markdown doc example in multiple places 2024-09-19 04:05:46 +02:00
Héctor Ramón Jiménez
70dd0501af
Show keyed_column doc example in multiple places 2024-09-19 03:54:29 +02:00
Héctor Ramón Jiménez
e98a441b0f
Show image doc example in multiple places 2024-09-19 03:40:38 +02:00
Héctor Ramón Jiménez
96615d5537
Show container doc example in multiple places 2024-09-19 03:33:09 +02:00
Héctor Ramón Jiménez
3e6e669c4c
Show combo_box doc example in multiple places 2024-09-19 03:18:08 +02:00
Héctor Ramón Jiménez
51f7ce7324
Show checkbox doc example in multiple places 2024-09-19 03:03:11 +02:00
Héctor Ramón Jiménez
5d25562644
Show canvas doc example in multiple places 2024-09-19 02:47:03 +02:00
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