Commit graph

1274 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
d8ba6b0673
Merge branch 'master' into feat/text-macro 2024-05-23 13:29:45 +02:00
Héctor Ramón Jiménez
d92e0f7bba
Fix compilation of integration example in release mode
Fixes #2447.
2024-05-22 12:29:31 +02:00
Héctor Ramón
d993b53e09
Merge pull request #2421 from skygrango/wasm/update-clock-example
Fix `clock` example doesn't get the correct local time under unix system
2024-05-18 11:44:12 +02:00
Héctor Ramón Jiménez
4936efc375
Remove redundant default chrono feature in clock example 2024-05-18 11:32:26 +02:00
Héctor Ramón Jiménez
d265cc133e
Simplify clock example a bit 2024-05-18 11:29:41 +02:00
Héctor Ramón Jiménez
05f69f495e
Ask for explicit Length in center_* methods 2024-05-13 17:56:02 +02:00
Héctor Ramón Jiménez
2645524f88
Update winit to 0.30 2024-05-07 16:07:56 +02:00
Héctor Ramón Jiménez
547446f0de
Fix windows fighting over shared image::Cache
Image caches are local to each window now.
2024-05-06 12:23:44 +02:00
Héctor Ramón Jiménez
afb4cb99b9
Improve layout of ferris example 🦀 2024-05-03 13:32:51 +02:00
Héctor Ramón Jiménez
fa9e1d96ea
Introduce dynamic opacity support for Image and Svg 2024-05-03 13:25:58 +02:00
Héctor Ramón Jiménez
4c658c41e9
Auto-focus text_input in websocket example 2024-05-03 09:25:47 +02:00
Héctor Ramón Jiménez
15057a05c1
Introduce center widget helper
... and also make `center_x` and `center_y` set
`width` and `height` to `Length::Fill`, respectively.

This targets the most common use case when centering
things and removes a bunch of boilerplate as a result.
2024-05-03 09:11:46 +02:00
Héctor Ramón Jiménez
4010e3983d
Add spin mode to ferris example 🦀 2024-05-03 07:23:55 +02:00
Skygrango
f9124470b4 Fix clock example doesn't get the correct local time under unix system
There is a long-standing problem (https://github.com/time-rs/time/issues/293) that has not yet been solved by time-rs
Switch to chrono as it seemed to solve the problem (https://github.com/chronotope/chrono/pull/677)
2024-05-03 13:10:46 +08:00
Héctor Ramón Jiménez
eac5bcb64f
Fix Image::bounds when rotation present in iced_graphics 2024-05-03 07:04:57 +02:00
Héctor Ramón Jiménez
efc55b655b
Create ferris example to showcase ContentFit and Rotation 2024-05-02 17:28:29 +02:00
Héctor Ramón Jiménez
58ea914ad2
Make image::Id actually opaque 2024-05-01 01:52:49 +02:00
Héctor Ramón Jiménez
62433a65e9
Enable logging in clock example 2024-04-30 23:51:41 +02:00
Héctor Ramón Jiménez
c51b85e7ab
Invalidate text uploads after atlas trimming 2024-04-30 21:59:46 +02:00
Héctor Ramón Jiménez
cfe4ddb866
Fix clippy lint in the_matrix example 2024-04-30 08:10:22 +02:00
Héctor Ramón Jiménez
3c7b43d031
Use shared Cache group in the_matrix example 2024-04-30 08:06:51 +02:00
Héctor Ramón Jiménez
aeede66963
Create the_matrix example 2024-04-27 15:11:03 +02:00
Héctor Ramón Jiménez
a16a75a71d
Use hover widget in bezier_tool example 2024-04-27 06:06:28 +02:00
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
8b1c514c38
Showcase new Stack widget in bezier_tool example 2024-04-25 01:40:06 +02: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
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
d922b47815
Reintroduce support for custom primitives in iced_wgpu 2024-04-08 15:04:35 +02:00
Héctor Ramón Jiménez
6d3e1d835e
Decouple caching from layering and simplify everything 2024-04-05 23:59:21 +02:00
Héctor Ramón Jiménez
b05e61f5c8
Redesign iced_wgpu layering architecture 2024-04-03 21:07:54 +02:00
Héctor Ramón Jiménez
488cac7148
Avoid extra text allocations in websocket example 2024-04-02 09:29:16 +02:00
Héctor Ramón Jiménez
b8d5df2817
Reintroduce old text helper as value helper 2024-04-01 21:36:52 +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
Héctor Ramón
eae4065300
Merge pull request #2350 from iced-rs/theming-revolutions
Theming Revolutions
2024-03-25 22:21:22 +01:00
Héctor Ramón Jiménez
f0ae9a0c38
Use Catalog approach for all widgets 2024-03-24 05:03:09 +01:00
Héctor Ramón Jiménez
e657dc2ecd
Fine-tune Catalog approach for button, checkbox, and svg 2024-03-24 02:08:20 +01:00
Héctor Ramón Jiménez
999ad2d288
Try catalog theming approach with Button 2024-03-23 19:23:08 +01:00
Héctor Ramón Jiménez
1f13a91361
Make iced_tiny_skia optional with a tiny-skia feature 2024-03-22 05:27:31 +01:00
Héctor Ramón Jiménez
53a183fe0d
Restore canvas::Frame API 2024-03-22 01:35:14 +01:00
Héctor Ramón Jiménez
b972ebca8f
Restore canvas::Program API 2024-03-21 23:30:36 +01:00
Héctor Ramón Jiménez
3645d34d6a
Implement composable, type-safe renderer fallback 2024-03-21 22:27:17 +01:00
Héctor Ramón Jiménez
5007e548ad
Fix redundant import in color_palette example 2024-03-19 07:08:25 +01:00
Richard Custodio
8ed62541af
fix: run cargo fmt 2024-03-18 18:24:57 -03:00
Richard Custodio
bf9bbf4a3e
refactor: replace text(format!( with text macro 2024-03-18 17:08:56 -03:00
Héctor Ramón Jiménez
cdb18e610a
Move Application trait to advanced module 2024-03-17 19:38:42 +01:00
Héctor Ramón Jiménez
943b6c9657
Introduce Program::run_with to control the initial state 2024-03-17 19:15:31 +01:00
Héctor Ramón Jiménez
92f8dddc2c
Simplify lifetime in toast example 2024-03-17 18:47:07 +01:00
Héctor Ramón Jiménez
32e1b2c5fc
Use Program API in modal example 2024-03-17 18:45:22 +01:00