Commit graph

4726 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
4fc342c979
Simplify modal example 🎉 2024-04-25 06:05:40 +02:00
Héctor Ramón Jiménez
4cd45643d7
Introduce opaque widget helper 2024-04-25 06:05:37 +02:00
Héctor Ramón Jiménez
9492da11d9
Use Limits::resolve in Stack widget 2024-04-25 02:27:01 +02:00
Héctor Ramón Jiménez
99434b3ecf
Fix documentation of stack module 2024-04-25 01:47:07 +02:00
Héctor Ramón Jiménez
8b1c514c38
Showcase new Stack widget in bezier_tool example 2024-04-25 01:40:06 +02:00
Héctor Ramón Jiménez
0c74d26456
Implement Stack widget
It can be used to stack elements on top of each other!
2024-04-25 01:39:34 +02:00
Héctor Ramón
5ef593ce53
Merge pull request #2403 from iced-rs/improve-image-cache-eviction
Make image `Cache` eviction strategy less aggressive in `iced_wgpu`
2024-04-24 22:19:24 +02:00
Héctor Ramón Jiménez
493c36ac71
Make image Cache eviction strategy less aggressive in iced_wgpu
Instead of trimming unconditionally at the end of
a frame, we now trim the cache only when there is a
cache miss.

This way, images that are not visible but still a
part of the layout will stay cached. Eviction will
only happen when the images are not a part of the
UI for two consectuive frames.
2024-04-24 21:29:30 +02:00
Daniel
fdcec03197
Don't consume unused scroll events (#2397)
* Initial Commit

* Update scrollable.rs

* Use `let _ = ` instead of `_ =` for consistency

---------

Co-authored-by: Héctor Ramón Jiménez <hector@hecrj.dev>
2024-04-23 00:45:44 +00:00
Héctor Ramón Jiménez
67e181ce7b
Fix clip bounds with nested scrollable widgets 2024-04-23 02:29:48 +02:00
Héctor Ramón
15e15700ab
Merge pull request #2393 from saihaze/master
Fix typo in icon.rs
2024-04-21 01:37:02 +02:00
saihaze
f3a2255f83 Fix typo 2024-04-19 14:53:38 +08:00
Héctor Ramón Jiménez
a05b8044a9
Fix SelectNextSome poll after termination panic in iced_winit::Proxy 2024-04-17 15:54:12 +02:00
Héctor Ramón
ba705d63dd
Merge pull request #2386 from mtkennerly/feature/check-text-editor-focus
Allow checking whether a `TextEditor` is focused
2024-04-17 13:11:20 +02:00
Héctor Ramón
d8ce7bc8d4
Merge pull request #2389 from iced-rs/fix/async-memory-usage
Implement backpressure mechanism for `iced_winit::Proxy`
2024-04-17 12:43:25 +02:00
Héctor Ramón Jiménez
b6b51375cf
Implement backpressure mechanism in iced_winit::Proxy 2024-04-16 21:50:28 +02:00
Héctor Ramón Jiménez
e8ec6b94b6
Use Skip as the MissedTickBehavior for tokio futures backend 2024-04-16 20:22:57 +02:00
mtkennerly
f962c6ce06
Allow checking whether a TextEditor is focused 2024-04-15 08:41:29 -04:00
Héctor Ramón
105b8bd5ad
Merge pull request #2382 from iced-rs/wgpu/better-architecture
Improved architecture for `iced_wgpu` and `iced_tiny_skia`
2024-04-14 13:43:10 +02:00
Héctor Ramón Jiménez
dbbbadfc95
Restore PREMULTIPLIED_ALPHA_BLENDING in triangle::msaa pipeline 2024-04-12 18:46:48 +02:00
Héctor Ramón Jiménez
d0233da8a2
Fix applying local transformation to layer_bounds in iced_wgpu::text 2024-04-12 18:37:38 +02:00
Héctor Ramón Jiménez
43aafb7b79
Clip quad damage with layer bounds in iced_tiny_skia 2024-04-10 20:31:44 +02:00
Héctor Ramón Jiménez
1e8554bf02
Sort damage by distance from origin in iced_graphics::damage 2024-04-10 20:23:07 +02:00
Héctor Ramón Jiménez
fdd9896dc5
Track image damage in iced_tiny_skia 2024-04-10 19:55:27 +02:00
Héctor Ramón Jiménez
32cd456fb9
Account for transformation in Text::visible_bounds 2024-04-10 16:26:55 +02:00
Héctor Ramón Jiménez
1e802e776c
Reintroduce damage tracking for iced_tiny_skia 2024-04-10 15:21:42 +02:00
Héctor Ramón
ee105e3bee
Merge pull request #2380 from alex-ds13/master
Remove extra Download struct from dowload_progress example
2024-04-09 22:40:58 +02:00
Héctor Ramón Jiménez
14b9708f72
Remove leftover renderer module in iced_graphics 2024-04-09 22:29:03 +02:00
Héctor Ramón Jiménez
6ad5bb3597
Port iced_tiny_skia to new layering architecture 2024-04-09 22:25:16 +02:00
alex-ds13
9cbad0a352 Remove extra Download struct from dowload_progress example 2024-04-08 19:37:37 +01:00
Héctor Ramón Jiménez
2c6fd9ac14
Make arguments of Renderer::new explicit in iced_wgpu 2024-04-08 15:35:54 +02:00
Héctor Ramón Jiménez
f88488543f
Remove leftover primitive::pipeline module 2024-04-08 15:05:12 +02:00
Héctor Ramón Jiménez
d922b47815
Reintroduce support for custom primitives in iced_wgpu 2024-04-08 15:04:35 +02:00
Héctor Ramón Jiménez
6ea763c2a7
Merge branch 'master' into wgpu/better-architecture 2024-04-08 13:56:38 +02:00
Héctor Ramón Jiménez
72b975ec82
Pick best contrast between black/white in theme::palette 2024-04-07 19:37:35 +02:00
Héctor Ramón Jiménez
ee86aea7f2
Use Lch to choose white text when not readable in theme::palette 2024-04-07 19:32:49 +02:00
Héctor Ramón Jiménez
efa75607ba
Revert "Merge pull request #2376 from Davidster/fix_palette_readable_color_contrast"
This reverts commit 63042354fc, reversing
changes made to 31d1d5fecb.
2024-04-07 18:56:11 +02:00
Héctor Ramón Jiménez
288f62bfb6
Share msaa::Blit texture between multiple windows 2024-04-07 18:45:48 +02:00
Héctor Ramón
0a61bcf24c
Merge pull request #2379 from Zaubentrucker/bugfix/nix-shell-pkgconfig
Use `pkg-config` instead `pkgconfig`
2024-04-07 14:20:12 +02:00
Héctor Ramón Jiménez
13289dbd19
Merge branch 'master' into wgpu/better-architecture 2024-04-07 14:06:52 +02:00
Héctor Ramón Jiménez
5e01d767c5
Check benchmarks only instead of testing them in CI 2024-04-07 13:48:23 +02:00
Frederik Menke
9ff62bd173 Use pkg-config instead pkgconfig 2024-04-07 13:32:53 +02:00
Héctor Ramón Jiménez
1c241d1150
Install missing dependencies in lint workflow 2024-04-07 13:04:53 +02:00
Héctor Ramón Jiménez
8475cd7b25
Run lint workflow in ubuntu-latest
`macOS-latest` seems to abort the build randomly
for some reason.
2024-04-07 13:00:40 +02:00
Héctor Ramón
5905e7c882
Merge pull request #2377 from iced-rs/cargo-lints
Use built-in `[lints]` table in `Cargo.toml`
2024-04-07 12:51:18 +02:00
Héctor Ramón Jiménez
5cd98f069d
Use built-in [lints] table in Cargo.toml 2024-04-07 12:42:12 +02:00
Héctor Ramón Jiménez
a865b38002
Add a simple wgpu benchmark using criterion 2024-04-07 11:49:42 +02:00
Héctor Ramón Jiménez
bcd6873b37
Fix lint in wgpu benchmark 2024-04-07 09:33:33 +02:00
Héctor Ramón Jiménez
68056f8ca4
Test benchmarks in GitHub CI 2024-04-07 08:52:28 +02:00
Héctor Ramón Jiménez
6771672087
Wait for submission in wgpu benchmark 2024-04-07 08:48:27 +02:00