Skip to content
Snippets Groups Projects
Commit ffcba171 authored by Finn Bear's avatar Finn Bear
Browse files

Fix fade in.

parent 23bf8574
No related branches found
No related tags found
No related merge requests found
......@@ -149,14 +149,17 @@ impl Slide for Automata {
if let Some(rules_fade) = rules_fade {
fade_in(ui, rules_fade, |ui| {
Window::new("conway_rules")
.frame(Frame::window(&ui.ctx().style()))
.frame(Frame::window(&ui.style()))
.anchor(Align2::CENTER_CENTER, Vec2::new(HORIZONTAL_OFFSET, 0.0))
.title_bar(false)
.resizable(false)
.show(ui.ctx(), |ui| {
ui.label(" ⏵ Cells with fewer than two neighbors die");
ui.label(" ⏵ Cells with more than three neighbors die");
ui.label(" ⏵ Cells with three neighbors become alive");
// Nested fade in since fade doesn't propagate from [`Window`] to children.
fade_in(ui, rules_fade, |ui| {
ui.label(" ⏵ Cells with fewer than two neighbors die");
ui.label(" ⏵ Cells with more than three neighbors die");
ui.label(" ⏵ Cells with three neighbors become alive");
})
});
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment