Skip to content

Commit

Permalink
Update for egui 0.27.1 (#201)
Browse files Browse the repository at this point in the history
### Checklist

* [x] I have read the [Contributor Guide](../CONTRIBUTING.md)
* [x] I have read and agree to the [Code of
Conduct](../CODE_OF_CONDUCT.md)
* [x] I have added a description of my changes and why I'd like them
included in the section below

### Description of Changes

Update for egui 0.27.0

### Related Issues

List related issues here
  • Loading branch information
abey79 authored Apr 2, 2024
1 parent 0dd10b2 commit db01a34
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 22 deletions.
42 changes: 25 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions puffin_egui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ include = [
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
egui = { version = "0.26.1", default-features = false }
egui = { version = "0.27.1", default-features = false }
indexmap = { version = "2.1.0", features = ["serde"] }
natord = "1.0.9"
once_cell = "1.7"
Expand All @@ -36,7 +36,7 @@ vec1 = "1.8"
web-time = "0.2"

[dev-dependencies]
eframe = { version = "0.26.0", default-features = false, features = [
eframe = { version = "0.27.1", default-features = false, features = [
"default_fonts",
"glow",
] }
Expand Down
4 changes: 2 additions & 2 deletions puffin_egui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,8 @@ impl ProfilerUi {

ui.horizontal(|ui| {
let play_pause_button_size = Vec2::splat(24.0);
let space_pressed =
ui.input(|i| i.key_pressed(egui::Key::Space)) && ui.memory(|m| m.focus().is_none());
let space_pressed = ui.input(|i| i.key_pressed(egui::Key::Space))
&& ui.memory(|m| m.focused().is_none());

if self.paused.is_some() {
if ui
Expand Down
2 changes: 1 addition & 1 deletion puffin_viewer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ puffin = { version = "0.19.0", path = "../puffin", features = [
puffin_http = { version = "0.16.0", path = "../puffin_http" }

argh = "0.1"
eframe = { version = "0.26.0", default-features = false, features = [
eframe = { version = "0.27.1", default-features = false, features = [
"default_fonts",
"glow",
"persistence",
Expand Down

0 comments on commit db01a34

Please sign in to comment.