mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
[demo] bug fix: add back clock in upper right corner
This commit is contained in:
@@ -277,14 +277,13 @@ fn show_menu_bar(ui: &mut Ui, windows: &mut OpenWindows) {
|
||||
(time.rem_euclid(60.0)).floor(),
|
||||
(time.rem_euclid(1.0) * 100.0).floor()
|
||||
);
|
||||
ui.inner_layout(Layout::horizontal(Align::Max).reverse(), |ui| {
|
||||
if ui
|
||||
.add(Button::new(time).text_style(TextStyle::Monospace))
|
||||
.clicked
|
||||
{
|
||||
windows.fractal_clock = !windows.fractal_clock;
|
||||
}
|
||||
});
|
||||
ui.set_layout(Layout::horizontal(Align::Max).reverse());
|
||||
if ui
|
||||
.add(Button::new(time).text_style(TextStyle::Monospace))
|
||||
.clicked
|
||||
{
|
||||
windows.fractal_clock = !windows.fractal_clock;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user