Commit graph

5260 commits

Author SHA1 Message Date
Matt Thompson
8d66b97888 Change lifetime of markdown view IntoIterator Item, as it does not need to live as long as the returned Element. 2024-10-01 19:30:10 -07:00
7sDream
75548373a7
Add support for double click event to MouseArea (#2602)
* feat(widget/mouse_area): add double_click event

* Run `cargo fmt`

---------

Co-authored-by: Héctor Ramón Jiménez <hector@hecrj.dev>
2024-09-24 21:05:17 +00:00
Héctor
3c68b64cbf
Merge pull request #2605 from Gobbel2000/frame_paste
Include images and saved meshes when pasting `Frame`
2024-09-24 22:59:57 +02:00
Héctor
faff6fb8e0
Merge pull request #2601 from edwloef/master
always increment solid/gradient count in wgpu mesh rendering
2024-09-24 22:43:13 +02:00
Gabriel Vogel
26b09e1b4d Include images and saved meshes when pasting Frame
`tiny_skia::Frame` was ignoring images in `Frame::paste`, making images
not show up when created in a `with_clip` context.

`wgpu::Frame` similarly did not pass through meshes in its paste method,
that may have been saved from a nested `with_clip` call.
2024-09-24 22:29:03 +02:00
Héctor
142aba2f17
Merge pull request #2598 from iced-rs/fix/shrink-cross-flex-layout
Fix flex layout of `Fill` elements in a `Shrink` cross axis
2024-09-24 21:59:41 +02:00
edwloef
f984e759eb always increment solid/gradient count in wgpu mesh rendering 2024-09-22 12:22:49 +02:00
Héctor Ramón
88a2fac1f9
Merge pull request #2599 from iced-rs/replace-rc-with-arc-for-markdown
Replace `Rc` with `Arc` for `markdown` caching
2024-09-21 22:39:03 +02:00
Héctor Ramón Jiménez
6d1ecb79e3
Replace Rc with Arc for markdown caching 2024-09-21 22:27:49 +02:00
Héctor Ramón Jiménez
24150effad
Remove broken links to ECOSYSTEM.md 2024-09-21 21:20:20 +02:00
Héctor Ramón Jiménez
1383c6a4f7
Fix flex layout of Fill elements in a Shrink cross axis
Instead of collapsing, the `Fill` elements will fill the
cross space allocated by the other `Shrink` elements present
in the container.
2024-09-21 21:14:54 +02:00
Héctor Ramón
3a1ed24550
Merge pull request #2596 from mtkennerly/bugfix/wrapped-row-with-spacing
Fix layout for wrapped row with spacing
2024-09-21 20:20:57 +02:00
mtkennerly
05d5e0739d
Fix layout for wrapped row with spacing 2024-09-20 22:15:03 -04:00
Héctor Ramón
6162850c78
Merge pull request #2594 from tvolk131/fix_docs
Fix documentation for open_events()
2024-09-21 00:15:07 +02:00
Tommy Volk
e9aa276a93 Fix documentation for open_events() 2024-09-20 15:57:09 -05:00
Héctor Ramón
ca93c41789
Merge pull request #2593 from iced-rs/fix/slow-ci-docs
Move `wgpu` re-export to root module
2024-09-20 18:54:09 +02:00
Héctor Ramón Jiménez
91c00e4abf
Move wgpu re-export to root module
This seems to fix a `cargo doc` performance issue;
and it makes more sense anyways.
2024-09-20 18:37:17 +02:00
Héctor Ramón
53f88fe2cf
Merge pull request #2592 from iced-rs/fix/color-macro
Drop short-hand notation support for `color!` macro
2024-09-20 17:52:28 +02:00
Héctor Ramón Jiménez
2a547ae372
Drop short-hand notation support for color! macro
We'd need to use `stringify!` and `str::len` to properly
support the short-hand notation; however, we want the
macro to work in `const` contexts.
2024-09-20 17:27:43 +02:00
Héctor Ramón
b78b8bc8e3
Merge pull request #2510 from iced-rs/wgpu-22.0
Update `wgpu` to `22.0`
2024-09-20 01:27:08 +02:00
Héctor Ramón Jiménez
84b658dbef
Introduce strict-assertions feature flag
For now, this feature flag only enables validation
in `iced_wgpu`; which has become quite expensive
since its `0.20` release.
2024-09-20 00:59:45 +02:00
Héctor Ramón Jiménez
a5e69cfb5f
Update wgpu to 22.0 2024-09-20 00:14:47 +02:00
Héctor Ramón Jiménez
aed9a03e3c
Update wgpu to 0.20.1 2024-09-20 00:14:46 +02:00
Héctor Ramón Jiménez
fed9c8d19b
Bump version to 0.14.0-dev 🎉 2024-09-19 23:36:05 +02:00
Héctor Ramón
3a9139e64f
Merge pull request #2588 from iced-rs/must-use-task
Add `must_use` attribute to `Task`
2024-09-19 23:27:09 +02:00
Héctor Ramón Jiménez
114f7dfa14
Add must_use attribute to Task 2024-09-19 23:17:09 +02:00
Héctor Ramón Jiménez
bf3b6f100d
Bump version to 0.13.1 🎉 2024-09-19 07:05:51 +02:00
Héctor Ramón
6bed89973d
Merge pull request #2586 from lufte/master
Set the text color determined by the style function
2024-09-19 06:59:27 +02:00
Héctor Ramón
ddbb8445bf
Merge pull request #2587 from iced-rs/improve-api-reference
Add widget examples to API reference and update `README`
2024-09-19 06:59:05 +02:00
Héctor Ramón Jiménez
1f8dc1f3dd
Fix mouse_area not notifying of mouse move events 2024-09-19 06:57:07 +02:00
Héctor Ramón Jiménez
31c42c1d02
Write doc examples for column and row 2024-09-19 06:49:22 +02:00
Héctor Ramón Jiménez
cda1369c79
Write doc examples for rich_text widget 2024-09-19 06:38:48 +02:00
Héctor Ramón Jiménez
4e38992636
Show tooltip doc example in multiple places 2024-09-19 06:27:54 +02:00
Héctor Ramón Jiménez
22fbb9c221
Show toggler doc example in multiple places 2024-09-19 06:22:09 +02:00
Héctor Ramón Jiménez
e0c55cbb19
Show text_input doc example in multiple places 2024-09-19 06:18:00 +02:00
Héctor Ramón Jiménez
184ebebfe1
Show text_editor example in multiple places 2024-09-19 06:14:56 +02:00
Héctor Ramón Jiménez
6ad7c7d308
Show text doc examples in multiple places 2024-09-19 06:10:44 +02:00
Héctor Ramón Jiménez
9773631354
Show svg doc example in multiple places 2024-09-19 05:45:40 +02:00
Héctor Ramón Jiménez
10fa40a85f
Show slider doc example in multiple places 2024-09-19 05:42:21 +02:00
Héctor Ramón Jiménez
94f0e0a212
Show scrollable doc example in multiple places 2024-09-19 05:30:12 +02:00
Héctor Ramón Jiménez
24fcc57873
Show rule doc example in multiple places 2024-09-19 05:19:54 +02:00
Héctor Ramón Jiménez
b778d5cd56
Show radio doc example in multiple places 2024-09-19 05:14:17 +02:00
Héctor Ramón Jiménez
1595e78b1a
Show qr_code doc example in multiple places 2024-09-19 05:05:09 +02:00
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