1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10:06 -04:00

Add helpers for zooming an app using Ctrl+Plus and Ctrl+Minus (#2239)

* Using tracing-subscriber in hello_world example

* Add Key::Plus/Minus/Equals

* Warn if failing to guess OS from User-Agent

* Remove jitter when using Context::set_pixels_per_point

* Demo app: zoom in/out using ⌘+ and ⌘-

* Demo app: make backend panel GUI scale slider better

* Optimize debug builds a bit

* typo

* Update changelog

* Add helper module `egui::gui_zoom` for zooming an app

* Better names, and update changelog

* Combine Plus and Equals keys

* Last fix

* Fix docs
This commit is contained in:
Emil Ernerfeldt
2022-11-05 11:18:13 +01:00
committed by GitHub
parent 25718f2774
commit a0b3f1126b
15 changed files with 290 additions and 112 deletions

View File

@@ -321,6 +321,13 @@ fn file_menu_button(ui: &mut Ui) {
ui.set_min_width(220.0);
ui.style_mut().wrap = Some(false);
// On the web the browser controls the zoom
#[cfg(not(target_arch = "wasm32"))]
{
egui::gui_zoom::zoom_menu_buttons(ui, None);
ui.separator();
}
if ui
.add(
egui::Button::new("Organize Windows")