Skip to content

Commit

Permalink
Upgrade to egui v0.23
Browse files Browse the repository at this point in the history
  • Loading branch information
tosti007 committed Sep 28, 2023
1 parent be10e19 commit c7ec7a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ keywords = ["egui", "toast", "notification"]
members = ["demo"]

[dependencies]
egui = { version = "0.22.0", default-features = false }
egui = { version = "0.23.0", default-features = false }

[profile.release]
opt-level = 2
2 changes: 1 addition & 1 deletion demo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.8.0"
edition = "2021"

[dependencies]
eframe = "0.22.0"
eframe = "0.23.0"
egui-toast = { path = ".." }

[target.'cfg(target_arch = "wasm32")'.dependencies]
Expand Down
11 changes: 5 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,11 @@ fn default_toast_contents(ui: &mut Ui, toast: &mut Toast) -> Response {
}

// Draw the frame's stroke last
let frame_shape = Shape::Rect(RectShape {
rect: response.rect,
rounding: frame.rounding,
fill: Color32::TRANSPARENT,
stroke: ui.visuals().window_stroke,
});
let frame_shape = Shape::Rect(RectShape::stroke(
response.rect,
frame.rounding,
ui.visuals().window_stroke,
));
ui.painter().add(frame_shape);

response
Expand Down

0 comments on commit c7ec7a4

Please sign in to comment.