Commit graph

791 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
0ff616814d
Fix typo in docs of markdown::Viewer::quote 2025-06-27 16:51:00 +02:00
Héctor Ramón Jiménez
ca1bf717b3
Implement Quote support in markdown widget 2025-06-27 16:47:54 +02:00
Brock Szuszczewicz
482d348230
Use Limits::min directly in scrollable::layout 2025-06-27 00:02:30 +02:00
Héctor Ramón Jiménez
8578a1362b
Fix clippy lints for Rust 1.88 🎉 2025-06-27 00:00:49 +02:00
Héctor Ramón Jiménez
5ca5000cdc
Add elided lifetimes to view helpers in examples 2025-06-24 14:29:36 +02:00
Héctor Ramón Jiménez
7afbb89ebf
Add snap field to rule::Style 2025-05-30 18:11:38 +02:00
Héctor Ramón Jiménez
54a9f1b770
Snap rule widget to the pixel grid 2025-05-30 18:09:40 +02:00
Héctor Ramón Jiménez
567b7d9e9f
Add crisp feature for enabling default quad snapping 2025-05-30 00:30:23 +02:00
Héctor Ramón Jiménez
6230f4c0bd
Make space in toggler integral 2025-05-28 22:56:56 +02:00
Héctor Ramón Jiménez
9d4e849a0e
Revert "Merge pull request #2962 from iced-rs/fix/blurry-quads"
This reverts commit 03326b955b, reversing
changes made to 7c5a4bc465.
2025-05-28 22:51:10 +02:00
Héctor Ramón Jiménez
3881d68b7e
Round translation to integral units in scrollable 2025-05-28 20:51:01 +02:00
Héctor Ramón Jiménez
15aa94c0f1
Try to align quad and image primitives in iced_wgpu 2025-05-26 23:59:15 +02:00
Héctor Ramón Jiménez
3aedbd5844
Snap quad primitives to the pixel grid (once again!)
Let's hope this approach handles common cases better.
2025-05-25 21:27:00 +02:00
Héctor Ramón Jiménez
7c5a4bc465
Fix right padding in toggler when no label is present
Fixes #2942
2025-05-17 19:04:29 +02:00
Héctor Ramón Jiménez
5de7bc83bd
Implement Clone for text_editor::Content 2025-05-16 01:09:53 +02:00
Héctor Ramón Jiménez
9a7ea88d55
Fix clippy lints for Rust 1.87 2025-05-15 20:52:27 +02:00
Héctor Ramón Jiménez
204c4773d5
Add expand method to image widget 2025-05-15 20:38:28 +02:00
Héctor Ramón Jiménez
6155100767
Allow Overlay::overlay to borrow Layout 2025-05-15 16:32:49 +02:00
Héctor Ramón Jiménez
0290364936
Use Key trait to remove Cow in pop widget 2025-05-13 16:42:38 +02:00
Héctor Ramón Jiménez
508ad512d6
Make key in pop widget generic 2025-05-13 15:10:44 +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
fe95b26d53
Fix missing inverse transformations in float widget 2025-05-04 00:36:56 +02:00
Héctor Ramón Jiménez
6a1f99e99d
Fix unaligned checkmark in checkbox 2025-05-03 22:29:14 +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
7e4c02b3f6
Set is_scrollbar_visible to true by default
This should optimize the worst layout case—when
scrollables with a lot of content are first shown.
2025-05-03 04:24:07 +02:00
Héctor Ramón Jiménez
f78a87c409
Show embedded scrollbars only when necessary in scrollable 2025-05-03 04:15:18 +02:00
Héctor Ramón Jiménez
7a81e638a3
Remove unnecessary redraw request in mouse_area 2025-05-03 00:51:18 +02:00
Héctor Ramón Jiménez
87afd5b79d
Fix mouse_interaction implementation for float 2025-05-02 22:41:22 +02:00
Héctor Ramón Jiménez
9e934fe2a7
Remove now redundant Overlay::is_over
The `mouse_interaction` method can be properly used
now to encode hover status with the `None` and `Idle`
variants.
2025-05-02 21:23:17 +02:00
Héctor Ramón Jiménez
aa2a50110d
Fix inconsistency in pane_grid 2025-05-01 17:12:14 +02:00
Héctor Ramón Jiménez
d2fa3d298c
Fix pane_grid split count not using local maximum 2025-05-01 16:59:36 +02:00
Héctor
dc69fdee46
Merge pull request #2916 from iced-rs/feature/float-widget
`float` widget and other cool stuff
2025-05-01 03:16:26 +02:00
Héctor Ramón Jiménez
8f3bca299b
Write some docs for the new float widget 2025-05-01 01:33:43 +02:00
Héctor Ramón Jiménez
f8f2e55f19
Implement float widget interactivity 2025-04-30 23:35:31 +02:00
Héctor Ramón Jiménez
1445e068e0
Enforce minimum pane size by counting splits in each axis 2025-04-30 16:12:14 +02:00
Héctor Ramón Jiménez
fae95d6095
Draft float widget and simplify image again 🎉 2025-04-29 22:34:09 +02:00
Héctor Ramón Jiménez
2a43921c56
Add min_size method to PaneGrid 2025-04-29 17:15:35 +02:00
edwloef
40ed7d8762
fix combo-box panic after 6034a0c 2025-04-26 18:16:24 +02:00
Héctor Ramón Jiménez
00e4de88bf
Return early when drawing image::Overlay if not visible 2025-04-26 03:19:30 +02:00
Héctor Ramón Jiménez
c4e6e42759
Clip shadow bounds of floating images to the viewport 2025-04-26 03:17:01 +02:00
Héctor Ramón Jiménez
6c51a9579d
Make Overlay aware of viewport
... and unify `Image::float` and `Image::translate`
2025-04-26 02:52:57 +02:00
Héctor Ramón Jiménez
a2a7c18c9d
Implement Image::translate for positioning floating images 2025-04-25 13:31:49 +02:00
Héctor Ramón Jiménez
e64c58d032
Implement overlay ordering for Image::float 2025-04-25 11:20:16 +02:00
Johann Tuffe
0231c152fc
fix number of rows in grid when evenly distributed (#2896)
* fix number of rows in grid when evenly distributed

* use div_ceil

---------

Co-authored-by: Johann Tuffe <jtuffe@capulaglobal.com>
2025-04-24 23:00:10 +00:00
Héctor Ramón Jiménez
50cc94d944
Fix even height distribution logic in grid widget 2025-04-22 19:41:00 +02:00
Héctor Ramón Jiménez
687750e026
Make grid sizing strategy explicit and more intuitive 2025-04-10 15:39:10 +02:00
Héctor Ramón Jiménez
504d9c2959
Fix cells_per_row calculation in grid widget 2025-04-10 14:49:18 +02:00
Héctor Ramón Jiménez
b89e78cd82
Draft new grid widget 2025-04-10 02:49:32 +02:00
Héctor Ramón Jiménez
3f67044977
Merge branch 'master' into beacon 2025-04-05 18:20:31 +02:00
Héctor Ramón Jiménez
53ce0e3a88
Fix lints for Rust 1.86 2025-04-03 16:59:55 +02:00