Commit graph

1294 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
ab392cee94
Improve Border ergonomics 2024-07-12 19:10:52 +02:00
Héctor Ramón Jiménez
7c3341760d
Improve Padding ergonomics
We expose free functions for creating a `Padding`
and methods with the same name to modify its fields.
2024-07-12 18:43:25 +02:00
Héctor Ramón Jiménez
76737351ea
Re-export variants of Length and alignment types 2024-07-12 18:12:34 +02:00
Héctor Ramón Jiménez
f9dd5cbb09
Introduce helper methods for alignment for all widgets 2024-07-12 15:14:43 +02:00
Héctor Ramón Jiménez
8ae4e09db9
Add support for embedded scrollbars for scrollable
Co-authored-by: dtzxporter <dtzxporter@users.noreply.github.com>
2024-07-11 08:00:58 +02:00
Héctor Ramón Jiménez
5e6c9eeb7e
Add iced widget helper to display the iced logo ☄️ 2024-07-11 04:33:19 +02:00
Héctor Ramón Jiménez
e86920be5b
Remove load method from application and daemon
If you need to run a `Task` during boot, use
`run_with` instead!
2024-07-09 00:28:40 +02:00
Héctor Ramón Jiménez
8bc49cd886
Hide Subscription internals
.. and introduce `stream::channel` helper
2024-07-05 02:16:45 +02:00
Héctor Ramón Jiménez
c5f4bebeda
Remove window::Id::MAIN constant 2024-06-20 01:13:42 +02:00
Héctor Ramón Jiménez
341c9a3c12
Introduce daemon API and unify shell runtimes 2024-06-19 01:53:40 +02:00
Héctor Ramón Jiménez
e9141e7abf
Rename Step to Screen in tour example 2024-06-16 23:18:45 +02:00
Héctor Ramón Jiménez
e0b4ddf7b7
Flatten state in tour example 2024-06-16 23:15:12 +02:00
Héctor Ramón Jiménez
b5c5a016c4
Rename window::closings to window::close_events 2024-06-16 20:15:55 +02:00
Héctor Ramón Jiménez
7f13fab058
Use all themes in multi_window example 2024-06-14 03:15:14 +02:00
Héctor Ramón Jiménez
20945e3f90
Simplify WindowOpened message handler in multi_window example 2024-06-14 03:11:07 +02:00
Héctor Ramón Jiménez
88b9384402
Use Task chaining to simplify multi_window example 2024-06-14 03:05:58 +02:00
Héctor Ramón Jiménez
a25b1af456
Replace Command with a new Task API with chain support 2024-06-14 01:47:39 +02:00
Héctor Ramón Jiménez
5d7dcf417c
Introduce subscription::Event
... and remove `PlatformSpecific` from `Event`
2024-06-11 19:41:05 +02:00
Héctor Ramón Jiménez
e400f972c1
Introduce window::Id to Event subscriptions
And remove `window::Id` from `Event` altogether.
2024-06-10 22:03:46 +02:00
Héctor Ramón Jiménez
12f4b875cf
Link to the latest branch in examples' README 2024-05-27 21:44:44 +02:00
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