[demo] bug fix: add back clock in upper right corner
This commit is contained in:
parent
1f8d3a699f
commit
d07132cc13
1 changed files with 7 additions and 8 deletions
|
@ -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| {
|
||||
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;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue