1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

Fix stroke of custom_window_frame example

This commit is contained in:
Emil Ernerfeldt
2025-01-02 15:32:43 +01:00
parent 64f077588c
commit 72ac2113dd

View File

@@ -49,7 +49,7 @@ fn custom_window_frame(ctx: &egui::Context, title: &str, add_contents: impl FnOn
fill: ctx.style().visuals.window_fill(),
rounding: 10.0.into(),
stroke: ctx.style().visuals.widgets.noninteractive.fg_stroke,
outer_margin: 0.5.into(), // so the stroke is within the bounds
outer_margin: 1.0.into(), // so the stroke is within the bounds
..Default::default()
};