Skip to content

Commit 0146c7e

Browse files
committed
Release 0.16.0 - Context menus and rich text
1 parent 77869c2 commit 0146c7e

File tree

21 files changed

+115
-84
lines changed

21 files changed

+115
-84
lines changed

CHANGELOG.md

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,49 +7,56 @@ NOTE: [`epaint`](epaint/CHANGELOG.md), [`eframe`](eframe/CHANGELOG.md), [`egui_w
77

88
## Unreleased
99

10+
11+
## 0.16.0 - 2021-12-29 - Context menus and rich text
12+
1013
### Added ⭐
11-
* Add context menus: See `Ui::menu_button` and `Response::context_menu` ([#543](https://github.com/emilk/egui/pull/543)).
14+
* Added context menus: See `Ui::menu_button` and `Response::context_menu` ([#543](https://github.com/emilk/egui/pull/543)).
1215
* Most widgets containing text (`Label`, `Button` etc) now supports rich text ([#855](https://github.com/emilk/egui/pull/855)).
1316
* Plots:
14-
* Add bar charts and box plots ([#863](https://github.com/emilk/egui/pull/863)).
17+
* Added bar charts and box plots ([#863](https://github.com/emilk/egui/pull/863)).
1518
* You can now query information about the plot (e.g. get the mouse position in plot coordinates, or the plot
1619
bounds) while adding items. `Plot` ([#766](https://github.com/emilk/egui/pull/766) and
1720
[#892](https://github.com/emilk/egui/pull/892)).
1821
* You can now read and write the cursor of a `TextEdit` ([#848](https://github.com/emilk/egui/pull/848)).
1922
* When using a custom font you can now specify a font index ([#873](https://github.com/emilk/egui/pull/873)).
20-
* Add vertical sliders with `Slider::new(…).vertical()` ([#875](https://github.com/emilk/egui/pull/875)).
21-
* Add `Button::image_and_text` ([#832](https://github.com/emilk/egui/pull/832)).
22-
* Add `CollapsingHeader::open` to control if it is open or collapsed ([#1006](https://github.com/emilk/egui/pull/1006)).
23+
* Added vertical sliders with `Slider::new(…).vertical()` ([#875](https://github.com/emilk/egui/pull/875)).
24+
* Added `Button::image_and_text` ([#832](https://github.com/emilk/egui/pull/832)).
25+
* Added `CollapsingHeader::open` to control if it is open or collapsed ([#1006](https://github.com/emilk/egui/pull/1006)).
26+
* Added `egui::widgets::color_picker::color_picker_color32` to show the color picker.
2327

2428
### Changed 🔧
2529
* MSRV (Minimum Supported Rust Version) is now `1.56.0`.
2630
* `ui.add(Button::new("…").text_color(…))` is now `ui.button(RichText::new("…").color(…))` (same for `Label` )([#855](https://github.com/emilk/egui/pull/855)).
2731
* Plots now provide a `show` method that has to be used to add items to and show the plot ([#766](https://github.com/emilk/egui/pull/766)).
28-
* Replace `CtxRef::begin_frame` and `end_frame` with `CtxRef::run` ([#872](https://github.com/emilk/egui/pull/872)).
29-
* Replace `scroll_delta` and `zoom_delta` in `RawInput` with `Event::Scroll` and `Event::Zoom`.
30-
* Unifiy the four `Memory` data buckets (`data`, `data_temp`, `id_data` and `id_data_temp`) into a single `Memory::data`, with a new interface ([#836](https://github.com/emilk/egui/pull/836)).
31-
* Replace `Ui::__test` with `egui::__run_test_ui` ([#872](https://github.com/emilk/egui/pull/872)).
3232
* `menu::menu(ui, ...)` is now `ui.menu_button(...)` ([#543](https://github.com/emilk/egui/pull/543))
33+
* Replaced `CtxRef::begin_frame` and `end_frame` with `CtxRef::run` ([#872](https://github.com/emilk/egui/pull/872)).
34+
* Replaced `scroll_delta` and `zoom_delta` in `RawInput` with `Event::Scroll` and `Event::Zoom`.
35+
* Unified the four `Memory` data buckets (`data`, `data_temp`, `id_data` and `id_data_temp`) into a single `Memory::data`, with a new interface ([#836](https://github.com/emilk/egui/pull/836)).
36+
* Replaced `Ui::__test` with `egui::__run_test_ui` ([#872](https://github.com/emilk/egui/pull/872)).
3337

3438
### Fixed 🐛
35-
* Fix `ComboBox` and other popups getting clipped to parent window ([#885](https://github.com/emilk/egui/pull/885)).
39+
* Fixed `ComboBox` and other popups getting clipped to parent window ([#885](https://github.com/emilk/egui/pull/885)).
3640
* The color picker is now better att keeping the same hue even when saturation goes to zero ([#886](https://github.com/emilk/egui/pull/886)).
3741

3842
### Removed 🔥
3943
* Removed `egui::math` (use `egui::emath` instead).
4044
* Removed `egui::paint` (use `egui::epaint` instead).
4145

4246
### Contributors 🙏
43-
* [5225225](https://github.com/5225225): ([#849](https://github.com/emilk/egui/pull/849)).
44-
* [B-Reif](https://github.com/B-Reif) ([#875](https://github.com/emilk/egui/pull/875)).
45-
* [Bromeon](https://github.com/Bromeon): ([#863](https://github.com/emilk/egui/pull/863)).
46-
* [d10sfan](https://github.com/d10sfan) ([#832](https://github.com/emilk/egui/pull/832)).
47-
* [EmbersArc](https://github.com/EmbersArc): ([#766](https://github.com/emilk/egui/pull/766), [#892](https://github.com/emilk/egui/pull/892)).
48-
* [Hperigo](https://github.com/Hperigo): ([#905](https://github.com/emilk/egui/pull/905)).
49-
* [mankinskin](https://github.com/mankinskin) ([#543](https://github.com/emilk/egui/pull/543)).
50-
* [niladic](https://github.com/niladic): ([#499](https://github.com/emilk/egui/pull/499), [#863](https://github.com/emilk/egui/pull/863)).
51-
* [sumibi-yakitori](https://github.com/sumibi-yakitori) ([#830](https://github.com/emilk/egui/pull/830)).
52-
* [t18b219k](https://github.com/t18b219k): ([#868](https://github.com/emilk/egui/pull/868), [#888](https://github.com/emilk/egui/pull/888)).
47+
* [5225225](https://github.com/5225225): [#849](https://github.com/emilk/egui/pull/849).
48+
* [aevyrie](https://github.com/aevyrie): [#966](https://github.com/emilk/egui/pull/966).
49+
* [B-Reif](https://github.com/B-Reif): [#875](https://github.com/emilk/egui/pull/875).
50+
* [Bromeon](https://github.com/Bromeon): [#863](https://github.com/emilk/egui/pull/863), [#918](https://github.com/emilk/egui/pull/918).
51+
* [d10sfan](https://github.com/d10sfan): [#832](https://github.com/emilk/egui/pull/832).
52+
* [EmbersArc](https://github.com/EmbersArc): [#766](https://github.com/emilk/egui/pull/766), [#892](https://github.com/emilk/egui/pull/892).
53+
* [Hperigo](https://github.com/Hperigo): [#905](https://github.com/emilk/egui/pull/905).
54+
* [isegal](https://github.com/isegal): [#934](https://github.com/emilk/egui/pull/934).
55+
* [mankinskin](https://github.com/mankinskin): [#543](https://github.com/emilk/egui/pull/543).
56+
* [niladic](https://github.com/niladic): [#499](https://github.com/emilk/egui/pull/499), [#863](https://github.com/emilk/egui/pull/863).
57+
* [singalen](https://github.com/singalen): [#973](https://github.com/emilk/egui/pull/973).
58+
* [sumibi-yakitori](https://github.com/sumibi-yakitori): [#830](https://github.com/emilk/egui/pull/830), [#870](https://github.com/emilk/egui/pull/870).
59+
* [t18b219k](https://github.com/t18b219k): [#868](https://github.com/emilk/egui/pull/868), [#888](https://github.com/emilk/egui/pull/888).
5360

5461

5562
## 0.15.0 - 2021-10-24 - Syntax highlighting and hscroll

Cargo.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eframe/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ NOTE: [`egui_web`](egui_web/CHANGELOG.md), [`egui-winit`](egui-winit/CHANGELOG.m
55

66

77
## Unreleased
8+
9+
10+
## 0.16.0 - 2021-12-29
811
* `Frame` can now be cloned, saved, and passed to background threads ([#999](https://github.com/emilk/egui/pull/999)).
912
* Added `Frame::request_repaint` to replace `repaint_signal` ([#999](https://github.com/emilk/egui/pull/999)).
1013
* Added `Frame::alloc_texture/free_texture` to replace `tex_allocator` ([#999](https://github.com/emilk/egui/pull/999)).

eframe/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "eframe"
3-
version = "0.15.0"
3+
version = "0.16.0"
44
authors = ["Emil Ernerfeldt <[email protected]>"]
55
description = "egui framework - write GUI apps that compiles to web and/or natively"
66
edition = "2021"
@@ -24,18 +24,18 @@ all-features = true
2424
[lib]
2525

2626
[dependencies]
27-
egui = { version = "0.15.0", path = "../egui", default-features = false }
28-
epi = { version = "0.15.0", path = "../epi" }
27+
egui = { version = "0.16.0", path = "../egui", default-features = false }
28+
epi = { version = "0.16.0", path = "../epi" }
2929

3030
# native:
3131
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
32-
egui-winit = { version = "0.15.0", path = "../egui-winit", default-features = false }
33-
egui_glium = { version = "0.15.0", path = "../egui_glium", default-features = false, features = ["clipboard", "epi", "links"], optional = true }
34-
egui_glow = { version = "0.15.0", path = "../egui_glow", default-features = false, features = ["clipboard", "epi", "links", "winit"], optional = true }
32+
egui-winit = { version = "0.16.0", path = "../egui-winit", default-features = false }
33+
egui_glium = { version = "0.16.0", path = "../egui_glium", default-features = false, features = ["clipboard", "epi", "links"], optional = true }
34+
egui_glow = { version = "0.16.0", path = "../egui_glow", default-features = false, features = ["clipboard", "epi", "links", "winit"], optional = true }
3535

3636
# web:
3737
[target.'cfg(target_arch = "wasm32")'.dependencies]
38-
egui_web = { version = "0.15.0", path = "../egui_web", default-features = false }
38+
egui_web = { version = "0.16.0", path = "../egui_web", default-features = false }
3939

4040
[dev-dependencies]
4141
image = { version = "0.23", default-features = false, features = ["png"] }

egui-winit/CHANGELOG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ All notable changes to the `egui-winit` integration will be noted in this file.
44

55

66
## Unreleased
7-
* Add helper `EpiIntegration` ([#871](https://github.com/emilk/egui/pull/871)).
8-
* Fix shift key getting stuck enabled with the X11 option `shift:both_capslock` enabled ([#849](https://github.com/emilk/egui/pull/849)).
9-
* Remove `State::is_quit_event` and `State::is_quit_shortcut` ([#881](https://github.com/emilk/egui/pull/881)).
7+
8+
9+
## 0.16.0 - 2021-12-29
10+
* Added helper `EpiIntegration` ([#871](https://github.com/emilk/egui/pull/871)).
11+
* Fixed shift key getting stuck enabled with the X11 option `shift:both_capslock` enabled ([#849](https://github.com/emilk/egui/pull/849)).
12+
* Removed `State::is_quit_event` and `State::is_quit_shortcut` ([#881](https://github.com/emilk/egui/pull/881)).
1013
* Updated `winit` to 0.26 ([#930](https://github.com/emilk/egui/pull/930)).
1114

1215

egui-winit/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "egui-winit"
3-
version = "0.15.0"
3+
version = "0.16.0"
44
authors = ["Emil Ernerfeldt <[email protected]>"]
55
description = "Bindings for using egui with winit"
66
edition = "2021"
@@ -22,10 +22,10 @@ include = [
2222
all-features = true
2323

2424
[dependencies]
25-
egui = { version = "0.15.0", path = "../egui", default-features = false, features = ["single_threaded"] }
25+
egui = { version = "0.16.0", path = "../egui", default-features = false, features = ["single_threaded"] }
2626
winit = "0.26"
2727

28-
epi = { version = "0.15.0", path = "../epi", optional = true }
28+
epi = { version = "0.16.0", path = "../epi", optional = true }
2929

3030
copypasta = { version = "0.7", optional = true }
3131
serde = { version = "1.0", optional = true, features = ["derive"] }

egui/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "egui"
3-
version = "0.15.0"
3+
version = "0.16.0"
44
authors = ["Emil Ernerfeldt <[email protected]>"]
55
description = "Simple, portable immediate mode GUI library for Rust"
66
edition = "2021"
@@ -24,7 +24,7 @@ all-features = true
2424
[lib]
2525

2626
[dependencies]
27-
epaint = { version = "0.15.0", path = "../epaint", default-features = false }
27+
epaint = { version = "0.16.0", path = "../epaint", default-features = false }
2828

2929
ahash = "0.7"
3030
nohash-hasher = "0.2"

egui/src/widgets/color_picker.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ fn background_checkers(painter: &Painter, rect: Rect) {
4444
painter.add(Shape::mesh(mesh));
4545
}
4646

47+
/// Show a color with background checkers to demonstrate transparency (if any).
4748
pub fn show_color(ui: &mut Ui, color: impl Into<Hsva>, desired_size: Vec2) -> Response {
4849
show_hsva(ui, color.into(), desired_size)
4950
}
@@ -322,13 +323,15 @@ fn color_picker_hsva_2d(ui: &mut Ui, hsva: &mut Hsva, alpha: Alpha) -> bool {
322323
}
323324
}
324325

326+
/// Shows a color picker where the user can change the given color.
327+
///
325328
/// Returns `true` on change.
326329
pub fn color_picker_color32(ui: &mut Ui, srgba: &mut Color32, alpha: Alpha) -> bool {
327330
let mut hsva = color_cache_get(ui.ctx(), *srgba);
328-
let response = color_picker_hsva_2d(ui, &mut hsva, alpha);
331+
let changed = color_picker_hsva_2d(ui, &mut hsva, alpha);
329332
*srgba = Color32::from(hsva);
330333
color_cache_set(ui.ctx(), *srgba, hsva);
331-
response
334+
changed
332335
}
333336

334337
pub fn color_edit_button_hsva(ui: &mut Ui, hsva: &mut Hsva, alpha: Alpha) -> Response {

egui_demo_app/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "egui_demo_app"
3-
version = "0.15.0"
3+
version = "0.16.0"
44
authors = ["Emil Ernerfeldt <[email protected]>"]
55
license = "MIT OR Apache-2.0"
66
edition = "2021"
@@ -11,10 +11,10 @@ publish = false
1111
crate-type = ["cdylib", "rlib"]
1212

1313
[dependencies]
14-
eframe = { version = "0.15.0", path = "../eframe" }
15-
# eframe = { version = "0.15.0", path = "../eframe", default-features = false, features = ["default_fonts", "egui_glow"] }
14+
eframe = { version = "0.16.0", path = "../eframe" }
15+
# eframe = { version = "0.16.0", path = "../eframe", default-features = false, features = ["default_fonts", "egui_glow"] }
1616

17-
egui_demo_lib = { version = "0.15.0", path = "../egui_demo_lib", features = ["extra_debug_asserts"] }
17+
egui_demo_lib = { version = "0.16.0", path = "../egui_demo_lib", features = ["extra_debug_asserts"] }
1818

1919
[features]
2020
default = ["persistence"]

egui_demo_lib/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "egui_demo_lib"
3-
version = "0.15.0"
3+
version = "0.16.0"
44
authors = ["Emil Ernerfeldt <[email protected]>"]
55
description = "Example library for egui"
66
edition = "2021"
@@ -24,8 +24,8 @@ all-features = true
2424
[lib]
2525

2626
[dependencies]
27-
egui = { version = "0.15.0", path = "../egui", default-features = false }
28-
epi = { version = "0.15.0", path = "../epi" }
27+
egui = { version = "0.16.0", path = "../egui", default-features = false }
28+
epi = { version = "0.16.0", path = "../epi" }
2929

3030
chrono = { version = "0.4", features = ["js-sys", "wasmbind"], optional = true }
3131
enum-map = { version = "1", features = ["serde"] }

egui_glium/CHANGELOG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ All notable changes to the `egui_glium` integration will be noted in this file.
33

44

55
## Unreleased
6-
* Simplify `EguiGlium` interface ([#871](https://github.com/emilk/egui/pull/871)).
7-
* Remove `EguiGlium::is_quit_event` ([#881](https://github.com/emilk/egui/pull/881)).
6+
7+
8+
## 0.16.0 - 2021-12-29
9+
* Simplified `EguiGlium` interface ([#871](https://github.com/emilk/egui/pull/871)).
10+
* Removed `EguiGlium::is_quit_event` ([#881](https://github.com/emilk/egui/pull/881)).
811
* Updated `glium` to 0.31 ([#930](https://github.com/emilk/egui/pull/930)).
9-
* Changed the `Painter` inteface slightly ([#999](https://github.com/emilk/egui/pull/999)).
12+
* Changed the `Painter` interface slightly ([#999](https://github.com/emilk/egui/pull/999)).
1013

1114

1215
## 0.15.0 - 2021-10-24

egui_glium/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "egui_glium"
3-
version = "0.15.0"
3+
version = "0.16.0"
44
authors = ["Emil Ernerfeldt <[email protected]>"]
55
description = "Bindings for using egui natively using the glium library"
66
edition = "2021"
@@ -23,9 +23,9 @@ include = [
2323
all-features = true
2424

2525
[dependencies]
26-
egui = { version = "0.15.0", path = "../egui", default-features = false, features = ["single_threaded"] }
27-
egui-winit = { version = "0.15.0", path = "../egui-winit", default-features = false, features = ["epi"] }
28-
epi = { version = "0.15.0", path = "../epi", optional = true }
26+
egui = { version = "0.16.0", path = "../egui", default-features = false, features = ["single_threaded"] }
27+
egui-winit = { version = "0.16.0", path = "../egui-winit", default-features = false, features = ["epi"] }
28+
epi = { version = "0.16.0", path = "../epi", optional = true }
2929

3030
glium = "0.31"
3131

egui_glow/CHANGELOG.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ All notable changes to the `egui_glow` integration will be noted in this file.
33

44

55
## Unreleased
6-
* Make winit/glutin an optional dependency ([#868](https://github.com/emilk/egui/pull/868)).
7-
* Simplify `EguiGlow` interface ([#871](https://github.com/emilk/egui/pull/871)).
8-
* Remove `EguiGlow::is_quit_event` ([#881](https://github.com/emilk/egui/pull/881)).
6+
7+
8+
## 0.16.0 - 2021-12-29
9+
* Made winit/glutin an optional dependency ([#868](https://github.com/emilk/egui/pull/868)).
10+
* Simplified `EguiGlow` interface ([#871](https://github.com/emilk/egui/pull/871)).
11+
* Removed `EguiGlow::is_quit_event` ([#881](https://github.com/emilk/egui/pull/881)).
912
* Updated `glutin` to 0.28 ([#930](https://github.com/emilk/egui/pull/930)).
10-
* Changed the `Painter` inteface slightly ([#999](https://github.com/emilk/egui/pull/999)).
13+
* Changed the `Painter` interface slightly ([#999](https://github.com/emilk/egui/pull/999)).
1114

1215

1316
## 0.15.0 - 2021-10-24

0 commit comments

Comments
 (0)