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
13r0ck
42b1bfe66d
Fix: Clippy lint 'uninlined_format_args'
2023-01-27 14:02:48 -07:00
Héctor Ramón Jiménez
a07cb8588f
Reintroduce Element::explain
2022-08-26 20:04:02 +02:00
Héctor Ramón Jiménez
80688689aa
Draft widget operations
2022-07-28 02:46:51 +02: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
3514bd1535
Add theme::Application styling support to Sandbox
2022-07-08 20:13:14 +02:00
Héctor Ramón Jiménez
fa55dff61d
Merge branch 'master' into theming
2022-07-08 19:31:45 +02:00
Héctor Ramón Jiménez
1dd1a2f97f
Introduce StyleSheet for Text widget
2022-06-29 10:51:01 +02:00
Héctor Ramón Jiménez
449bbb112e
Update web instructions of the tour example
2022-06-10 18:12:54 +02:00
Héctor Ramón Jiménez
3e8f4cdd13
Add "Theming" section to the tour example
2022-05-26 05:31:55 +02:00
Héctor Ramón Jiménez
3a820b45f3
Implement theme styling for Slider
2022-05-26 00:40:27 +02:00
Héctor Ramón Jiménez
664251f3f5
Draft first-class Theme support
...
RFC: https://github.com/iced-rs/rfcs/pull/6
2022-05-14 01:56:32 +02:00
Héctor Ramón Jiménez
c35496d80f
Merge branch 'master' into virtual-widgets
2022-03-07 15:29:43 +07:00
Héctor Ramón Jiménez
33b9b50883
Showcase only Contain, Cover, and Fill image modes in tour
2022-02-23 16:32:12 +07:00
Héctor Ramón Jiménez
6f6ce15a20
Keep using Ferris in the image section of the tour
...
Wide ferris is cute :3
2022-02-16 18:19:37 +07:00
Héctor Ramón Jiménez
c910e23919
Expose ContentFit in root
2022-02-16 18:19:37 +07:00
Héctor Ramón Jiménez
0aff444941
Rename Image::fit to content_fit
...
... just for consistency!
2022-02-16 18:19:37 +07:00
Emi Simpson
ca1fcdaf14
Add support for ContentFit for Image
2022-02-16 18:19:33 +07:00
Héctor Ramón Jiménez
ecb3df8e01
Expose reusable Button logic
...
... and reuse it in `iced_pure`!
2022-02-11 23:17:07 +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
Héctor Ramón Jiménez
12060f823f
Point iced_web links to the new standalone repository
2022-01-31 21:21:44 +07:00
Héctor Ramón Jiménez
2f57051283
Add index.html for todos and tour example
...
You can use `trunk serve` to easily compile them!
2022-01-29 16:08:16 +07:00
Nathan Henrie
a88bf0fed7
Fix path to ferris.png
...
Fixes https://github.com/iced-rs/iced/issues/1156
2021-12-11 16:51:54 -07:00
Héctor Ramón Jiménez
e6627bb96d
Fix formatting with cargo fmt
2021-11-10 16:35:13 +07:00
Ram.Type-0
0245f289b2
Remove unnecessary String allocation
...
Remove unnecessary String allocation by passing &format! or &x.to_string as impl Into<String>
2021-11-02 00:05:25 +09: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
d3d6f3efb3
Add some horizontal padding to toggler section in tour example
2021-06-03 20:35:26 +07:00
Kaiden42
be3ee9adf1
Add Toggler to tour example
2021-06-03 20:21:55 +07:00
Héctor Ramón Jiménez
f41eacc3dc
Use f32 for border_width and border_radius
2020-11-23 00:31:50 +01:00
Héctor Ramón Jiménez
860de97b42
Update env_logger in tour and integration examples
2020-11-10 19:12:28 +01: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
4aed3ede92
Use generic Slider in tour example
2020-06-13 14:34:39 +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
e11b5c614f
Revert "Target physical pixels for quads in iced_glow"
...
This reverts commit 45511a442f .
2020-05-28 22:57:30 +02:00
Héctor Ramón Jiménez
6de0a2c371
Use Sandbox in tour example
2020-05-28 22:50:40 +02:00
Héctor Ramón Jiménez
45511a442f
Target physical pixels for quads in iced_glow
2020-05-27 23:17:21 +02:00
Héctor Ramón Jiménez
e0e4ee73fe
Implement iced_glutin 🎉
2020-05-21 00:44:35 +02:00
Héctor Ramón Jiménez
4aed0fa4b6
Rename window::Backend to Compositor
2020-05-19 20:01:55 +02:00
Héctor Ramón Jiménez
d4743183d4
Draft first working version of iced_glow 🎉
2020-05-19 14:23:28 +02:00
Héctor Ramón Jiménez
3c47e3e229
Simplify Language conversion in tour
2020-04-06 20:12:16 +02:00
Dmitry Kashitsyn
1a9bfd9e73
Radiobutton label is now impl Into<String>
2020-04-05 12:43:18 +07:00
Héctor Ramón Jiménez
679d758627
Remove wasm_bindgen(start) from tour example
2020-02-06 05:23:05 +01:00
Héctor Ramón Jiménez
bc611cf51c
Make image support optional in iced_wgpu
...
This reduces binary size when image rendering is not necessary a
considerable amount.
2020-01-20 11:19:42 +01:00
Héctor Ramón Jiménez
e2ec092aec
Add README for tour example
2020-01-20 06:40:20 +01:00
Héctor Ramón Jiménez
7cea737115
Package examples and remove dev-dependencies
2020-01-20 06:27:01 +01:00
Héctor Ramón Jiménez
5286ef36b6
Make tour a simple example instead of a crate
2019-10-06 20:06:13 +02:00
Héctor Ramón Jiménez
ae56edc8cc
Center tour example
2019-10-05 19:02:16 +02:00
Héctor Ramón Jiménez
957beeebf9
Merge branch 'master' into basic-renderer
2019-10-05 05:42:15 +02:00