Commit graph

776 commits

Author SHA1 Message Date
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
Héctor Ramón Jiménez
e060129951
Merge branch 'master' into beacon 2025-04-01 02:18:20 +02:00
mtkennerly
65e8fed37d
Allow custom vertical spacing for wrapped rows 2025-03-20 18:38:36 -04:00
Héctor Ramón Jiménez
363b0e903a
Fix markdown code blocks when highlighter is disabled 2025-03-18 00:04:08 +01:00
edwloef
836507eca0
request redraw on mouse area hover change 2025-03-16 17:18:59 +01:00
Héctor Ramón Jiménez
ebfcb65841
Merge branch 'master' into beacon 2025-03-11 22:25:06 +01: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
Héctor Ramón Jiménez
8bd5de72ea
Merge branch 'master' into beacon 2025-03-04 19:11:37 +01:00
Héctor
34314b3f57
Merge pull request #2812 from andymandias/text_input-is_focused
`operation::focusable::is_focused` & `text_input::is_focused`
2025-02-23 07:34:30 +01: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
954f49d4d7
Add weakest and strongest to Background palette
... and tweak background shade generation logic.
2025-02-22 00:34:55 +01: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
28caeccf22
Fix new clippy lints 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 Ramón Jiménez
81ca3d2a22
Fix broken links in Pop::delay documentation 2025-02-20 04:03:14 +01:00
Héctor Ramón Jiménez
ffc412d6b7
Implement delay for pop widget 🎉 2025-02-19 07:23:50 +01:00
Héctor Ramón Jiménez
42f6018487
Remove lifetime bound for Text in markdown::paragraph 2025-02-19 07:03:08 +01:00
Héctor Ramón Jiménez
51e44e036a
Add bounds argument to Component::operate 2025-02-18 04:50:08 +01:00
Héctor Ramón Jiménez
e594346544
Fix markdown compilation when highlighter feature is disabled 2025-02-18 04:42:14 +01:00
Héctor Ramón Jiménez
7526d73ad3
Fix Component not diffing when its state is recreated 2025-02-14 19:53:11 +01:00