Commit graph

111 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
8e372ce256
Allow scroll_to and snap_to to operate on a single axis
Co-authored-by: Rizzen Yazston <rizzen.yazston@gmail.com>
2025-11-29 06:23:18 +01:00
Héctor
d94c080dd4
Merge pull request #2988 from andymandias/text-font_maybe
Add `font_maybe` Utility Function to `Text`
2025-11-27 04:42:50 +01:00
edwloef
6bbe189809
Fix inconsistent naming of tree parameter in Widget trait (#2950)
* fix inconsistent naming of tree parameter in widget trait

* rename `Tree` parameter in various usages across iced
2025-11-25 23:58:07 +01:00
Remmirad
7c661c94be
Introduce select_range to operation::text_input 2025-11-25 10:38:45 +01:00
Andrew Baldwin
c82f97c8c9 Add font_maybe to Text. 2025-11-24 12:52:59 -08:00
Héctor Ramón Jiménez
299eb54d6f
Improve naming in iced_selector crate 2025-09-17 22:56:58 +02:00
Héctor Ramón Jiménez
5796ba272e
Remove missing_debug_implementations lint 2025-09-12 05:25:09 +02:00
Héctor Ramón Jiménez
9e81c2b9e8
Merge branch 'master' into feature/test-recorder 2025-08-29 04:25:52 +02:00
Héctor Ramón Jiménez
6be707267e
Revert "Make Widget::diff mutable"
This reverts commit 497ebcd0c3.
2025-08-29 04:21:43 +02:00
Héctor Ramón Jiménez
fbe60feb7e
Remove Id for container, scrollable, and text_input 2025-08-23 02:04:30 +02:00
Héctor Ramón Jiménez
63142d34fc
Introduce new iced_selector subcrate and refactor Operation 2025-08-23 01:44:17 +02:00
Héctor Ramón Jiménez
497ebcd0c3
Make Widget::diff mutable 2025-08-20 23:14:23 +02:00
Héctor Ramón Jiménez
31bc6d48cd
Make Widget::layout and operate mutable
... and bless `responsive`!
2025-08-20 22:42:15 +02:00
Héctor Ramón Jiménez
bdcaadbe00
Introduce instruction::Target in test crate 2025-08-20 13:47:34 +02:00
Héctor Ramón Jiménez
0857eb3bde
Improve contrast of built-in themes by leveraging Oklch 2025-08-05 10:01:01 +02:00
Héctor Ramón Jiménez
1e89439aff
Respect column width in table widget 2025-07-16 02:31:43 +02:00
Héctor Ramón Jiménez
f929a20d29
Change From<str> for Selector to Text in iced_test 2025-05-28 03:25:39 +02:00
Héctor Ramón Jiménez
6bf709e03e
Make anchoring explicit and improve reusability of text pipelines 2025-05-04 03:54:42 +02:00
Héctor Ramón Jiménez
f031b99196
Return change flag in paragraph::Plain::update 2025-05-03 05:53:19 +02:00
Héctor Ramón Jiménez
0e4a392731
Introduce text::Alignment with Justified support 2025-03-11 02:30:50 +01:00
Héctor Ramón Jiménez
179a34d37b
Fix horizontal text alignment 2025-03-11 00:43:51 +01:00
Andrew Baldwin
7916a9c227 Nit fixes. 2025-02-21 20:39:59 -08:00
Andrew Baldwin
9cba92f57f Add is_focused function that produces an Operation to get the focused state of a focusable by ID.
Add `is_focused` function that produces a `Task` to get the focused state of a `text_input` by ID.
2025-02-21 18:56:41 -08:00
Héctor Ramón Jiménez
9ceb467e6e
Run cargo fmt 2025-02-21 01:37:13 +01:00
Héctor Ramón Jiménez
67e489e382
Update to Rust 2024 and fix compiler errors 2025-02-21 01:37:13 +01:00
Héctor
d91e426dab
Add missing dot in unfocus operation docs 2025-02-11 20:48:00 +01:00
edwloef
b80c23fd94
add unfocus operation 2025-02-11 15:47:08 +01:00
Héctor Ramón Jiménez
cb30f9f604
Remove dbg! leftover in core::widget::text 2024-12-10 04:51:08 +01:00
Héctor Ramón Jiménez
d09d5d45ae
Draft iced_test crate and test todos example 2024-12-10 04:51:08 +01:00
Héctor Ramón Jiménez
602661372c
Fix new clippy lints 2024-12-02 19:56:27 +01:00
BradySimon
f912d26d64
Add PartialEq derives for widget styles 2024-10-14 20:59:32 +02:00
Héctor Ramón Jiménez
6ad7c7d308
Show text doc examples in multiple places 2024-09-19 06:10:44 +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 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
515772c9f8
Rename operation::chain to then
... and make `focus_*` operations generic over
the output type.
2024-08-15 01:30:24 +02:00
Héctor Ramón Jiménez
422568dee4
Introduce black_box and chain in widget::operation 2024-08-08 01:25:00 +02:00
Héctor Ramón Jiménez
c851e67734
Fix text::State downcast in some widgets 2024-07-19 00:59:54 +02:00
Héctor Ramón Jiménez
910eb72a06
Implement rich_text widget and markdown example 2024-07-17 22:04:11 +02:00
Héctor Ramón Jiménez
ffb520fb37
Decouple caching from Paragraph API 2024-07-17 18:50:53 +02:00
Héctor Ramón Jiménez
5e6d994199
Add default and base stylings to text widget 2024-07-13 13:26:37 +02:00
Héctor Ramón Jiménez
76737351ea
Re-export variants of Length and alignment types 2024-07-12 18:12:34 +02:00
Héctor Ramón Jiménez
f9dd5cbb09
Introduce helper methods for alignment for all widgets 2024-07-12 15:14:43 +02:00
Héctor Ramón Jiménez
03e8078f42
Add some built-in text styles for each Palette color 2024-07-11 04:57:40 +02:00
Vlad-Stefan Harbuz
10ef48c98a doc: fix "Reconciles" typo 2024-06-30 20:46:04 +01:00
Héctor Ramón Jiménez
b328da2c71
Fix Send requirements for Wasm targets 2024-06-14 01:52:30 +02:00
Héctor Ramón Jiménez
a25b1af456
Replace Command with a new Task API with chain support 2024-06-14 01:47:39 +02:00
Héctor Ramón Jiménez
99a904112c
Implement IntoFragment for Fragment 2024-04-02 10:09:13 +02:00
Héctor Ramón Jiménez
dee43d5f66
Implement IntoFragment for usize and isize 2024-04-02 09:24:22 +02:00
Héctor Ramón Jiménez
34f799aa3d
Rename text::IntoContent to IntoFragment 2024-04-01 21:48:47 +02:00
Héctor Ramón Jiménez
1d83e59e8a
Specialize widget::text helper with custom IntoContent trait 2024-04-01 21:36:08 +02:00