1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

add maximized to WindowInfo

update button text
fix clippy
This commit is contained in:
SunDoge
2022-11-14 20:53:22 +08:00
parent 634d506012
commit 817236f640
3 changed files with 7 additions and 3 deletions

View File

@@ -112,7 +112,7 @@ fn custom_window_frame(
rect.left_top() + vec2((height - 4.0) * 1.0, 0.0),
Vec2::splat(height),
),
Button::new(RichText::new("--").size(height - 4.0)).frame(false),
Button::new(RichText::new("🗕").size(height - 4.0)).frame(false),
);
if minimized_response.clicked() {
frame.set_minimized(true);
@@ -123,7 +123,7 @@ fn custom_window_frame(
rect.left_top() + vec2((height - 4.0) * 2.0, 0.0),
Vec2::splat(height),
),
Button::new(RichText::new("O").size(height - 4.0)).frame(false),
Button::new(RichText::new("🗖").size(height - 4.0)).frame(false),
);
if maximized_response.clicked() {
app.maximized = !app.maximized;