From de10466b23d25433e6eb65861c812c0e2d0336c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Thu, 10 Nov 2022 01:14:32 +0100 Subject: [PATCH 1/2] Update `CHANGELOG` --- CHANGELOG.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f0fa47c9a..751c13e721 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,35 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added +- __[Stabilization of stateless widgets][stateless]__ (#1393) + The old widget API has been completely replaced by stateless widgets (introduced in #1284). Alongside the new API, there are a bunch of new helper functions and macros for easily describing view logic (like `row!` and `column!`). + +- __[First-class theming][theming]__ (#1362) + A complete overhaul of our styling primitives, introducing a `Theme` as a first-class concept of the library. + +- __[Widget operations][operations]__ (#1399) + An abstraction that can be used to traverse (and operate on) the widget tree of an application in order to query or update some widget state. + +- __[`Lazy` widget][lazy]__ (#1400) + A widget that can call some view logic lazily only when some data has changed. Thanks to @nicksenger! + +- __[Linear gradient support for `Canvas`][gradient]__ (#1448) + The `Canvas` widget can draw linear gradients now. Thanks to @bungoboingo! + +- __[Touch support for `Canvas`][touch]__ (#1305) + The `Canvas` widget now supports touch events. Thanks to @artursapek! + +- __[`Image` and `Svg` support for `iced_glow`][image]__ (#1485) + Our OpenGL renderer now is capable of rendering both the `Image` and `Svg` widgets. Thanks to @ids1024! + +[stateless]: https://github.com/iced-rs/iced/pull/1393 +[theming]: https://github.com/iced-rs/iced/pull/1362 +[operations]: https://github.com/iced-rs/iced/pull/1399 +[lazy]: https://github.com/iced-rs/iced/pull/1400 +[gradient]: https://github.com/iced-rs/iced/pull/1448 +[touch]: https://github.com/iced-rs/iced/pull/1305 +[image]: https://github.com/iced-rs/iced/pull/1485 ## [0.4.2] - 2022-05-03 ### Fixed From b0e8bafb6c51666e8b15531001263097ae7d7c0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Thu, 10 Nov 2022 01:20:11 +0100 Subject: [PATCH 2/2] Bump versions :tada: --- Cargo.toml | 20 ++++++++++---------- core/Cargo.toml | 2 +- futures/Cargo.toml | 2 +- glow/Cargo.toml | 6 +++--- glutin/Cargo.toml | 8 ++++---- graphics/Cargo.toml | 6 +++--- lazy/Cargo.toml | 4 ++-- native/Cargo.toml | 8 ++++---- style/Cargo.toml | 4 ++-- wgpu/Cargo.toml | 6 +++--- winit/Cargo.toml | 8 ++++---- 11 files changed, 37 insertions(+), 37 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ff59d7a9f0..edaaf1436c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced" -version = "0.4.2" +version = "0.5.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "A cross-platform GUI library inspired by Elm" @@ -91,13 +91,13 @@ members = [ ] [dependencies] -iced_core = { version = "0.5", path = "core" } -iced_futures = { version = "0.4", path = "futures" } -iced_native = { version = "0.5", path = "native" } -iced_graphics = { version = "0.3", path = "graphics" } -iced_winit = { version = "0.4", path = "winit", features = ["application"] } -iced_glutin = { version = "0.3", path = "glutin", optional = true } -iced_glow = { version = "0.3", path = "glow", optional = true } +iced_core = { version = "0.6", path = "core" } +iced_futures = { version = "0.5", path = "futures" } +iced_native = { version = "0.6", path = "native" } +iced_graphics = { version = "0.4", path = "graphics" } +iced_winit = { version = "0.5", path = "winit", features = ["application"] } +iced_glutin = { version = "0.4", path = "glutin", optional = true } +iced_glow = { version = "0.4", path = "glow", optional = true } thiserror = "1.0" [dependencies.image_rs] @@ -106,10 +106,10 @@ package = "image" optional = true [target.'cfg(not(target_arch = "wasm32"))'.dependencies] -iced_wgpu = { version = "0.5", path = "wgpu", optional = true } +iced_wgpu = { version = "0.6", path = "wgpu", optional = true } [target.'cfg(target_arch = "wasm32")'.dependencies] -iced_wgpu = { version = "0.5", path = "wgpu", features = ["webgl"], optional = true } +iced_wgpu = { version = "0.6", path = "wgpu", features = ["webgl"], optional = true } [package.metadata.docs.rs] rustdoc-args = ["--cfg", "docsrs"] diff --git a/core/Cargo.toml b/core/Cargo.toml index c9c7686e47..9f6e830a46 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_core" -version = "0.5.0" +version = "0.6.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "The essential concepts of Iced" diff --git a/futures/Cargo.toml b/futures/Cargo.toml index 61ee00a56b..49cdb5a9d7 100644 --- a/futures/Cargo.toml +++ b/futures/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_futures" -version = "0.4.1" +version = "0.5.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "Commands, subscriptions, and runtimes for Iced" diff --git a/glow/Cargo.toml b/glow/Cargo.toml index a50fd375d6..0351b4804a 100644 --- a/glow/Cargo.toml +++ b/glow/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_glow" -version = "0.3.0" +version = "0.4.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "A glow renderer for iced" @@ -34,11 +34,11 @@ bytemuck = "1.4" log = "0.4" [dependencies.iced_native] -version = "0.5" +version = "0.6" path = "../native" [dependencies.iced_graphics] -version = "0.3" +version = "0.4" path = "../graphics" features = ["font-fallback", "font-icons", "opengl"] diff --git a/glutin/Cargo.toml b/glutin/Cargo.toml index 65b16947ec..730ee6f748 100644 --- a/glutin/Cargo.toml +++ b/glutin/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_glutin" -version = "0.3.0" +version = "0.4.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "A glutin runtime for Iced" @@ -23,15 +23,15 @@ git = "https://github.com/iced-rs/glutin" rev = "da8d291486b4c9bec12487a46c119c4b1d386abf" [dependencies.iced_native] -version = "0.5" +version = "0.6" path = "../native" [dependencies.iced_winit] -version = "0.4" +version = "0.5" path = "../winit" features = ["application"] [dependencies.iced_graphics] -version = "0.3" +version = "0.4" path = "../graphics" features = ["opengl"] diff --git a/graphics/Cargo.toml b/graphics/Cargo.toml index 57079b9503..b601f37c1b 100644 --- a/graphics/Cargo.toml +++ b/graphics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_graphics" -version = "0.3.1" +version = "0.4.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "A bunch of backend-agnostic types that can be leveraged to build a renderer for Iced" @@ -44,11 +44,11 @@ version = "1.4" features = ["derive"] [dependencies.iced_native] -version = "0.5" +version = "0.6" path = "../native" [dependencies.iced_style] -version = "0.4" +version = "0.5" path = "../style" [dependencies.lyon] diff --git a/lazy/Cargo.toml b/lazy/Cargo.toml index 12e4e313fb..51459148d9 100644 --- a/lazy/Cargo.toml +++ b/lazy/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_lazy" -version = "0.1.1" +version = "0.2.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "Lazy widgets for Iced" @@ -14,5 +14,5 @@ categories = ["gui"] ouroboros = "0.13" [dependencies.iced_native] -version = "0.5" +version = "0.6" path = "../native" diff --git a/native/Cargo.toml b/native/Cargo.toml index b4945c054a..f798253e81 100644 --- a/native/Cargo.toml +++ b/native/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_native" -version = "0.5.1" +version = "0.6.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "A renderer-agnostic library for native GUIs" @@ -16,14 +16,14 @@ unicode-segmentation = "1.6" num-traits = "0.2" [dependencies.iced_core] -version = "0.5" +version = "0.6" path = "../core" [dependencies.iced_futures] -version = "0.4" +version = "0.5" path = "../futures" features = ["thread-pool"] [dependencies.iced_style] -version = "0.4" +version = "0.5" path = "../style" diff --git a/style/Cargo.toml b/style/Cargo.toml index 4a482a4f44..559b446279 100644 --- a/style/Cargo.toml +++ b/style/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_style" -version = "0.4.0" +version = "0.5.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "The default set of styles of Iced" @@ -11,7 +11,7 @@ keywords = ["gui", "ui", "graphics", "interface", "widgets"] categories = ["gui"] [dependencies.iced_core] -version = "0.5" +version = "0.6" path = "../core" features = ["palette"] diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml index e9509db235..b017c3a3b7 100644 --- a/wgpu/Cargo.toml +++ b/wgpu/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_wgpu" -version = "0.5.1" +version = "0.6.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "A wgpu renderer for Iced" @@ -42,11 +42,11 @@ version = "1.9" features = ["derive"] [dependencies.iced_native] -version = "0.5" +version = "0.6" path = "../native" [dependencies.iced_graphics] -version = "0.3" +version = "0.4" path = "../graphics" features = ["font-fallback", "font-icons"] diff --git a/winit/Cargo.toml b/winit/Cargo.toml index d3ed949fe0..1133adb1d0 100644 --- a/winit/Cargo.toml +++ b/winit/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_winit" -version = "0.4.0" +version = "0.5.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "A winit runtime for Iced" @@ -26,15 +26,15 @@ git = "https://github.com/iced-rs/winit.git" rev = "940457522e9fb9f5dac228b0ecfafe0138b4048c" [dependencies.iced_native] -version = "0.5" +version = "0.6" path = "../native" [dependencies.iced_graphics] -version = "0.3" +version = "0.4" path = "../graphics" [dependencies.iced_futures] -version = "0.4" +version = "0.5" path = "../futures" [target.'cfg(target_os = "windows")'.dependencies.winapi]