Commit graph

299 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
7eaeab8d99
Update README 2022-11-10 02:25:28 +01:00
Héctor Ramón Jiménez
b0e8bafb6c
Bump versions 🎉 2022-11-10 01:20:11 +01:00
Héctor Ramón
acb520a4a8
Merge pull request #1505 from ids1024/weak-dep-feature
Combine `glow_default_system_font` and `default_system_font` features
2022-11-08 04:24:48 +01:00
Héctor Ramón Jiménez
078cadfed0
Update image dependency to 0.24 2022-11-05 03:47:08 +01:00
Ian Douglas Scott
5575e6ea08
Add image/svg support to iced_glow
https://github.com/iced-rs/iced/issues/674

Uses image/svg support in `iced_graphics`. The is not currently using an
atlas, and uses one texture/draw per image. This should be good enough
for now; supporting images with glow is better than not supporting them,
and if something else performs better, that improvement can be made
without any change to the public API.
2022-11-05 03:19:38 +01:00
Ian Douglas Scott
4d42ca2452 Combine glow_default_system_font and default_system_font features
Apparently "weak dependency features" have been stable since Rust
1.60.0, allowing a feature to enable a feature of a dependency only if
that dependency is enabled elsewhere. So having a separate feature for
this with glow is unnecessary now.

Also remove the `resolver` setting which is redundant on edition 2021.
2022-11-03 14:53:22 -07:00
Héctor Ramón Jiménez
921c94162e
Merge branch 'master' into fear/linear-gradients 2022-11-03 05:09:07 +01:00
Héctor Ramón Jiménez
415978b807
Rename cached example to lazy 2022-11-03 02:55:22 +01:00
Nick Senger
50eb9e34b8
add example 2022-11-03 02:23:19 +01:00
Bingus
aabc4e87b5
Merge branch 'master' into fear/linear-gradients 2022-10-07 16:58:45 -07:00
shan
30432cbade Readjusted namespaces, removed Geometry example as it's no longer relevant. 2022-10-05 10:49:58 -07:00
Artur Sapek
fe17641d46
Working multitouch example 2022-10-04 11:23:03 +02:00
shan
40f45d7b7e Adds linear gradient support to 2D meshes in the canvas widget. 2022-09-29 11:15:35 -07:00
Héctor Ramón Jiménez
98b5832917
Remove application feature from iced crate 2022-09-26 15:58:12 +02:00
aentity
78c9d5bedf
Add application feature, which allows to build freestanding wgpu app 2022-09-26 15:57:30 +02:00
Héctor Ramón
bfd24c27db
Merge pull request #1174 from daladim/icon_from_file
Added convenience functions for window::icon::Icon
2022-09-23 20:02:57 +02:00
xkenmon
79d045cfe1
Implement sierpinski-triangle example 2022-09-23 17:41:34 +02:00
Aphek
8ad6889ee0 Remove old pure feature from docs.rs build metadata 2022-08-31 22:53:42 -03:00
Héctor Ramón Jiménez
effa6881f7
Enable arc example 2022-07-27 06:57:49 +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
Max Unsted
a28799b65e
add pure version of color_palette example 2022-07-27 03:18:34 +02:00
Luni-4
8f03a72742 Add custom profile release-opt 2022-07-14 16:58:06 +02:00
Héctor Ramón Jiménez
4b8ae71b63
Add and purify arc example by @ThatsNoMoon 2022-07-10 15:15:29 +02:00
Héctor Ramón Jiménez
27fdc70756
Merge branch 'master' into dev/system-information 2022-05-04 17:19:28 +02:00
Héctor Ramón Jiménez
a97c520c81
Sort workspace members in Cargo.toml 2022-05-04 17:17:07 +02:00
Héctor Ramón Jiménez
62677eafc0
Bump version 🎉 2022-05-03 19:43:27 +02:00
Héctor Ramón Jiménez
cb1aaf1bdd
Bump version in README 2022-05-02 22:18:22 +02:00
Héctor Ramón Jiménez
d23026d2dd
Bump versions 🎉 2022-05-02 22:07:53 +02:00
Héctor Ramón Jiménez
7e111f273f
Enable pure feature in docs.rs 2022-05-02 21:10:55 +02:00
Héctor Ramón Jiménez
93bfe2c75e
Expose system module through feature flag 2022-04-30 13:37:57 +02:00
Richard
5eefa5d4ea Simplify the QueryInformation Action 2022-04-27 17:16:32 -03:00
Richard
53538b65b1 Add system_information example 2022-04-26 18:57:00 -03:00
Richard
6e93713197 Add sysinfo crate through feature flag 2022-04-26 18:54:06 -03:00
Casper Rogild Storm
5d67f9988c
Implemented Tooltip as Pure 2022-04-22 13:35:53 +02:00
Héctor Ramón Jiménez
6dd187ff08
Implement pure version of PaneGrid widget 2022-03-14 17:44:25 +07:00
Héctor Ramón Jiménez
7d7064a44d
Implement pure version of game_of_life example 🎉 2022-03-09 19:14:57 +07:00
Héctor Ramón Jiménez
0cddb3c1b5
Implement pure version of Canvas widget 2022-03-09 19:14:55 +07:00
Héctor Ramón Jiménez
12c1a3f829
Remove redundant widget modules in subcrates
Instead, we can define the type aliases just once in the root crate!
2022-03-09 14:10:15 +07:00
daladim
f3e7781cb1 Added convenience functions for window::icon::Icon 2022-03-01 22:15:16 +01:00
Héctor Ramón Jiménez
9b23ea698e
Implement pure version of component example 2022-02-17 19:09:26 +07:00
Héctor Ramón Jiménez
2737b21d34
Implement pure version of pick_list example 🎉 2022-02-16 17:16:34 +07:00
Héctor Ramón Jiménez
cff891833b
Implement pure version of the tour example 🎉 2022-02-13 22:19:43 +07:00
Héctor Ramón Jiménez
bd22cc0bc0
Implement pure version of todos example 🎉
The `Widget` trait in `iced_pure` needed to change a bit to make the
implementation of `Element::map` possible.

Specifically, the `children` method has been split into `diff` and
`children_state`.
2022-02-12 17:21:28 +07:00
Héctor Ramón Jiménez
66d69b5c9a
Expose iced_pure through a pure feature in iced
Besides exposing the `iced_pure` crate, enabling the `pure` feature also
provides pure versions of both the `Application` and `Sandbox` traits!
🎉
2022-02-11 17:51:33 +07:00
Héctor Ramón Jiménez
897188317b
Rename iced_virtual to iced_pure
`virtual` is a reserved keyword in Rust 😬
2022-02-11 17:50:12 +07:00
Héctor Ramón Jiménez
5225e0e304
Draft virtual Button, Column, and Text
... as well as a very naive diffing strategy!
2022-02-10 21:54:13 +07:00
Héctor Ramón Jiménez
8f0839e786
Draft iced_virtual subcrate
The idea here is to expose a set of "virtual widgets" that can be used with a
`Virtual` widget and its `virtual::State`.

A virtual widget is a widget that does not contain any state, but instead is a
"virtual" representation of the "real" widget. The real widgets are stored in
the `virtual::State`.

Every time a new virtual widget tree is created during `view`, it is compared to
the previous one and "real" widgets are added / removed to the `virtual::State`.

Effectively, this removes the need to keep track of local widget state in the
application state and allows `view` to take an immutable reference to `self`.

To summarize, using this crate should allow users to remove `State` structs
in their application state.

Eventually, the strategy used here may be adopted generally and, as a result,
all of the widgets in `iced_native` would be replaced!
2022-02-09 19:42:15 +07:00
Héctor Ramón Jiménez
adce9e0421
Update Rust edition to 2021 🎉 2022-02-09 17:57:44 +07:00
Héctor Ramón Jiménez
825c7749ff
Replace iced_web with WebGL support in wgpu 🎉 2022-01-28 21:37:16 +07:00
Héctor Ramón Jiménez
dc50a2830a
Draft websocket example 🎉 2022-01-16 15:50:19 +07:00