chore: improve scaling of UI by adding a space
Former-commit-id: 244390f855fe9f7614767b25c47bbce74118e985
This commit is contained in:
parent
9ad9fbf254
commit
78692f259d
|
@ -134,11 +134,16 @@ fn render_ui(mut contexts: EguiContexts, mut windows: Query<&mut Window>, mut ui
|
||||||
.desired_width(window_width / 4.)
|
.desired_width(window_width / 4.)
|
||||||
.show(ui);
|
.show(ui);
|
||||||
|
|
||||||
// Manually add some space between the heading and the text inputs
|
// Manually add some space between the text inputs and the 'confirm' button
|
||||||
ui.add_space(window_height / 20.);
|
ui.add_space(window_height / 26.);
|
||||||
|
|
||||||
let button = ui.add(egui::Button::new("Confirm")
|
let button = ui.add(egui::Button::new("Confirm")
|
||||||
.fill(black));
|
.fill(black));
|
||||||
|
|
||||||
|
// Manually add some space between the button and the bottom border of the
|
||||||
|
// window...for scaling purposes
|
||||||
|
ui.add_space(window_height / 22.);
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue