From 403e2dfe5f21c3ff9f4f48ea10e4dba831f1a365 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sun, 13 Dec 2020 21:15:57 +0100 Subject: [PATCH] Release Egui 0.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 0.5.0 - 2020-12-13 ### Added ⭐ * Emoji support: 1216 different emojis that work in any text. * The Demo app comes with a Font Book to explore the available glyphs. * `ui.horizontal_wrapped(|ui| ...)`: Add widgets on a row but wrap at `max_size`. * `ui.horizontal_wrapped_for_text`: Like `ui.horizontal_wrapped`, but with spacing made for embedding text. * `ui.horizontal_for_text`: Like `ui.horizontal`, but with spacing made for embedding text. * `egui::Layout` now supports justified layouts where contents is _also_ centered, right-aligned, etc. * `ui.allocate_ui(size, |ui| ...)`: Easily create a child-`Ui` of a given size. * `SelectableLabel` (`ui.selectable_label` and `ui.selectable_value`): A text-button that can be selected. * `ui.small_button`: A smaller button that looks good embedded in text. * `ui.drag_angle_tau`: For those who want to specify angles as fractions of τ (a full turn). * Add `Resize::id_source` and `ScrollArea::id_source` to let the user avoid Id clashes. ### Changed 🔧 * New default font: [Ubuntu-Light](https://fonts.google.com/specimen/Ubuntu). * Make it simpler to override fonts in `FontDefinitions`. * Remove minimum button width. * Refactor `egui::Layout` substantially, changing its interface. * Calling `on_hover_text`/`on_hover_ui` multiple times will stack tooltips underneath the previous ones. * Text wrapping on labels, buttons, checkboxes and radio buttons is now based on the layout. ### Removed 🔥 * Removed the `label!` macro. --- CHANGELOG.md | 2 ++ Cargo.lock | 6 +++--- egui/Cargo.toml | 2 +- egui_glium/Cargo.toml | 4 ++-- egui_web/Cargo.toml | 4 ++-- 5 files changed, 10 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f4db48ed..a51278f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## Unreleased +## 0.5.0 - 2020-12-13 + ### Added ⭐ * Emoji support: 1216 different emojis that work in any text. diff --git a/Cargo.lock b/Cargo.lock index 1c868b7a..4066792f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -569,7 +569,7 @@ checksum = "9ea835d29036a4087793836fa931b08837ad5e957da9e23886b29586fb9b6650" [[package]] name = "egui" -version = "0.4.0" +version = "0.5.0" dependencies = [ "ahash", "criterion", @@ -581,7 +581,7 @@ dependencies = [ [[package]] name = "egui_glium" -version = "0.4.0" +version = "0.5.0" dependencies = [ "chrono", "clipboard", @@ -594,7 +594,7 @@ dependencies = [ [[package]] name = "egui_web" -version = "0.4.0" +version = "0.5.0" dependencies = [ "egui", "js-sys", diff --git a/egui/Cargo.toml b/egui/Cargo.toml index 3be4039e..c387bce8 100644 --- a/egui/Cargo.toml +++ b/egui/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "egui" -version = "0.4.0" +version = "0.5.0" authors = ["Emil Ernerfeldt "] description = "Simple, portable immediate mode GUI library for Rust" edition = "2018" diff --git a/egui_glium/Cargo.toml b/egui_glium/Cargo.toml index be33bcd5..7543cee6 100644 --- a/egui_glium/Cargo.toml +++ b/egui_glium/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "egui_glium" -version = "0.4.0" +version = "0.5.0" authors = ["Emil Ernerfeldt "] description = "Bindings for using Egui natively using the glium library" edition = "2018" @@ -15,7 +15,7 @@ include = [ "**/*.rs", "Cargo.toml"] [dependencies] chrono = { version = "0.4" } clipboard = "0.5" -egui = { version = "0.4.0", path = "../egui", features = ["serde", "serde_json"] } +egui = { version = "0.5.0", path = "../egui", features = ["serde", "serde_json"] } glium = "0.28" serde = "1" serde_json = "1" diff --git a/egui_web/Cargo.toml b/egui_web/Cargo.toml index 57150fff..1bf02709 100644 --- a/egui_web/Cargo.toml +++ b/egui_web/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "egui_web" -version = "0.4.0" +version = "0.5.0" authors = ["Emil Ernerfeldt "] description = "Bindings for compiling Egui code to WASM for a web page" license = "MIT OR Apache-2.0" @@ -16,7 +16,7 @@ include = [ "**/*.rs", "Cargo.toml"] crate-type = ["cdylib", "rlib"] [dependencies] -egui = { version = "0.4.0", path = "../egui", features = ["serde"] } +egui = { version = "0.5.0", path = "../egui", features = ["serde"] } js-sys = "0.3" parking_lot = "0.11" serde = "1"