Commit graph

58 commits

Author SHA1 Message Date
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
341c9a3c12
Introduce daemon API and unify shell runtimes 2024-06-19 01:53:40 +02:00
Héctor Ramón Jiménez
5007e548ad
Fix redundant import in color_palette example 2024-03-19 07:08:25 +01:00
Héctor Ramón Jiménez
54f44754eb
Move Program to application module 2024-03-17 14:19:12 +01:00
Héctor Ramón Jiménez
846d76cd3f
Remove Sandbox trait 🎉 2024-03-17 13:46:52 +01:00
Héctor Ramón Jiménez
28a27f08ed
Remove sandbox by making application more generic 🎉 2024-03-16 19:14:13 +01:00
Héctor Ramón Jiménez
bb71e8481e
Make sandbox helper take a title as well 2024-03-16 16:12:07 +01:00
Héctor Ramón Jiménez
c22269bff3
Introduce Program API 2024-03-16 05:33:47 +01:00
Héctor Ramón Jiménez
5075d41623
Use generated palette as Theme in color_palette example 2024-03-08 00:59:33 +01:00
Héctor Ramón Jiménez
905f2160e6
Move Theme type to iced_core 2024-03-07 00:14:41 +01:00
Héctor Ramón Jiménez
7a50e9e8fb
Convert Renderer::Theme to generic Widget type 2024-01-21 17:56:01 +01:00
Héctor Ramón Jiménez
b8e5693a30
Merge branch 'master' into explicit-text-caching 2023-09-10 00:34:21 +02:00
Héctor Ramón Jiménez
6fd2c15527
Host GIFs and video examples in iced.rs
RIP Gfycat
2023-09-07 05:05:43 +02:00
Héctor Ramón Jiménez
f468e25d0c
Use workspace dependencies and package inheritance
We are also taking this as a chance to synchronize
the versions of all the crates! Because of this, we
will skip the `0.11` version.
2023-09-04 13:08:17 +02:00
Héctor Ramón Jiménez
ed3454301e
Implement explicit text caching in the widget state tree 2023-08-30 04:31:21 +02:00
Héctor Ramón Jiménez
34451bff18
Implement basic cursor availability 2023-06-08 20:11:59 +02:00
Clark Moody
2d21d0900e
Upgrade palette dependency 2023-05-25 23:44:31 +02:00
Héctor Ramón Jiménez
6cc48b5c62
Move Canvas and QRCode to iced crate
Rename `canvas` modules to `geometry` in graphics subcrates
2023-03-03 04:57:55 +01:00
Héctor Ramón Jiménez
5fd5d1cdf8
Implement Canvas support for iced_tiny_skia 2023-03-01 21:34:26 +01:00
Héctor Ramón Jiménez
7b8b01f560
Use f32 in Length::Units and rename it to Fixed 2023-02-17 15:40:17 +01:00
Héctor Ramón Jiménez
ff2519b1d4
Replace stateful widgets with new iced_pure API 2022-07-27 06:49:20 +02:00
Héctor Ramón Jiménez
2065a40f64
Fix clippy lints for all crates and features
... and check those in CI as well!
2022-07-09 18:43:05 +02:00
Héctor Ramón Jiménez
fc13bb3d65
Implement theme styling for Canvas 2022-06-07 05:24:43 +02:00
Héctor Ramón Jiménez
d5bc610d01
Fix examples and doc-tests 2022-05-26 23:12:11 +02:00
Héctor Ramón
0eef527fa5
Merge pull request #1284 from iced-rs/virtual-widgets
Stateless widgets
2022-03-23 17:11:14 +07:00
Héctor Ramón Jiménez
32fd8dadda
Reintroduce generic Message type for canvas::Program
As it is useful to make the `Message` completely free in many
implementations.
2022-03-18 22:13:52 +07:00
Héctor Ramón
7ed0dbbcc5
Merge pull request #1288 from tarkah/update-palette-0.6
update palette to 0.6
2022-03-17 15:51:39 +07:00
Cory Forsstrom
f2b0e02c25 update palette to 0.6 2022-03-16 16:14:08 -07:00
Héctor Ramón Jiménez
c52fd089f1
Use associated type for Message in a canvas::Program 2022-03-09 18:29:10 +07:00
Héctor Ramón Jiménez
adce9e0421
Update Rust edition to 2021 🎉 2022-02-09 17:57:44 +07:00
ImgBotApp
c70929bf2c
[ImgBot] Optimize images
*Total -- 967.49kb -> 703.99kb (27.24%)

/docs/images/radio.png -- 5.29kb -> 1.58kb (70.18%)
/docs/images/text_input.png -- 3.18kb -> 1.27kb (60.17%)
/docs/images/checkbox.png -- 5.56kb -> 2.22kb (60.17%)
/examples/color_palette/screenshot.png -- 102.74kb -> 43.75kb (57.42%)
/examples/tour/images/ferris.png -- 32.29kb -> 15.91kb (50.73%)
/docs/graphs/ecosystem.png -- 124.13kb -> 67.44kb (45.67%)
/docs/graphs/iced.png -- 97.75kb -> 53.27kb (45.5%)
/docs/graphs/native.png -- 57.90kb -> 33.67kb (41.85%)
/docs/images/text.png -- 4.95kb -> 2.99kb (39.61%)
/docs/graphs/foundations.png -- 18.19kb -> 11.19kb (38.46%)
/examples/scrollable/screenshot.png -- 144.78kb -> 102.53kb (29.18%)
/examples/svg/resources/tiger.svg -- 67.02kb -> 64.50kb (3.76%)
/docs/logo.svg -- 1.37kb -> 1.35kb (1.57%)
/docs/images/todos_desktop.jpg -- 302.36kb -> 302.33kb (0.01%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2022-02-07 23:13:29 +07:00
Theo Robinson
4830a17d65
Fix links
Change dead links to updated ones.
Change/Convert all file links to relative links so they are branch
agnostic.
2022-02-07 23:13:25 +07:00
Héctor Ramón Jiménez
a0ad399622
Refactor alignment types into an alignment module 2021-09-20 15:14:08 +07:00
Héctor Ramón Jiménez
5fae6e59ff
Introduce and use CrossAlign enum for Column and Row 2021-09-20 15:12:43 +07:00
Héctor Ramón Jiménez
d7a5e54455 Require Clone for Message early when needed
Prior to this change, the widgets that needed a `Clone` bound on `Message` to
implement the `Widget` trait could be created with a non-cloneable `Message`.

As a consequence, the compiler complained only when actually trying to use the
`Widget` trait. Normally, this happens when trying to `push` the widget in a
container or turn it into an `Element`.

Furthermore, the compiler error in this case does not mention `Message` nor the
`Clone` bound, but instead complains about a missing `From` implementation.
Thus, it can easily cause confusion!

This change introduces `Clone` bounds in the main implementation of the
widgets that need it to properly implement the `Widget` trait. As a
result, the compiler complains early when trying to create one of these widgets
with a non-cloneable `Message` and explicitly mentions that the `Message` needs
to implement `Clone`.
2020-10-17 08:10:30 +02:00
Héctor Ramón Jiménez
c1f79b40cf Make Application and Sandbox return a Result 2020-09-08 00:44:59 +02:00
Héctor Ramón Jiménez
d7d2e0a8aa Increase precision in color_palette example 2020-06-13 14:50:21 +02:00
Sebastian Zivota
c3643eaf6d Add step member to slider widgets
Both the native and the web slider now have a member `step` to control
the least possible change of the slider's value. It defaults to 1.0
for all sliders and can be adjusted with the step method.
2020-06-11 00:18:24 +02:00
Héctor Ramón Jiménez
80e2d1b08b Adapt color_palette to new canvas API 2020-05-04 23:46:15 +02:00
Héctor Ramón Jiménez
e3555174d7 Use only iced dependency for color_palette
`Point` and `Size` are now properly re-exported.
2020-05-04 22:55:10 +02:00
Héctor Ramón Jiménez
3d3e51a742 Add screenshot to README of color_palette 2020-05-04 22:53:07 +02:00
Héctor Ramón Jiménez
1a8d253611 Add screenshot of color_palette example 2020-05-04 22:51:20 +02:00
Héctor Ramón Jiménez
03ca7eea6c Reuse triangle path with transforms in color_palette 2020-05-01 22:45:47 +02:00
Héctor Ramón Jiménez
573929d5ec Use Path::rectangle directly in color_palette 2020-05-01 22:32:40 +02:00
Héctor Ramón Jiménez
555371f77e Move application implementation in color_palette 2020-05-01 22:27:14 +02:00
Héctor Ramón Jiménez
4d724a88e6 Introduce Theme type in color_palette example 2020-05-01 22:24:34 +02:00
Héctor Ramón Jiménez
0a011f9031 Improve generate_theme in color_palette 2020-05-01 21:51:08 +02:00
Héctor Ramón Jiménez
11e4039b56 Remove update_component in color_palette
We can use `ColorSpace::new` instead
2020-05-01 21:43:11 +02:00
Clark Moody
430f78a693 Abstract into ColorPicker and ColorSpace trait
Each color type implements ColorSpace to define its own representation
and update methods.

View sliders are implemented on the ColorPicker struct.
2020-04-27 16:25:13 -05:00