Héctor Ramón Jiménez
91af1c5ed6
Update all examples to Rust 2024
2025-02-21 01:37:14 +01:00
Héctor Ramón Jiménez
f8337b8da7
Add helper functions for alignment to widget module
2025-01-24 15:55:24 +01: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
05f69f495e
Ask for explicit Length in center_* methods
2024-05-13 17:56:02 +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
e657dc2ecd
Fine-tune Catalog approach for button, checkbox, and svg
2024-03-24 02:08:20 +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
71b9b3c3b1
Use closures for Svg::style
2024-03-12 13:41:14 +01:00
Héctor Ramón Jiménez
69bc1df252
Simplify theming for Svg widget
2024-03-06 11:36:49 +01:00
Alexander van Saase
b5f1ca1695
Introduce support for disabling a checkbox
2024-02-01 13:16:28 +01:00
Héctor Ramón Jiménez
0655a20ad1
Make Shrink have priority over Fill in layout
2024-01-04 06:51:21 +01: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
1220ce55bc
Showcase color filtering in existing svg example
...
... and remove the `svg_style` example
2022-12-06 04:36:00 +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
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
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
990b4aa0b7
Merge branch 'master' into feature/container-padding
2020-03-31 17:11:58 +02:00
Héctor Ramón Jiménez
749a9588d7
Implement padding support for Container
2020-03-31 01:21:51 +02:00
Héctor Ramón Jiménez
ae009158cc
Implement svg::Handle::from_memory
...
Useful if you already have your SVG data in memory.
2020-03-31 00:39:18 +02:00
Héctor Ramón Jiménez
883a9f22e2
Add env_logger to svg example
2020-02-26 20:11:01 +01:00
Héctor Ramón Jiménez
b0cf47cc2b
Create README files for all the examples
2020-02-21 15:20:05 +01:00
Piaoger
23fe47bdcb
Fix sample file path for svg example
...
Sample tiger.svg is move to resources after directory restructuring. This change is to correct the path
2020-02-20 17:28:42 +08:00
Héctor Ramón Jiménez
7cea737115
Package examples and remove dev-dependencies
2020-01-20 06:27:01 +01:00