chore: improve scaling of UI by adding a space

Former-commit-id: 244390f855fe9f7614767b25c47bbce74118e985
This commit is contained in:
Muhammad Nauman Raza 2023-12-03 12:41:31 +00:00
parent 9ad9fbf254
commit 78692f259d
Signed by: devraza
GPG key ID: 91EAD6081011574B

View file

@ -134,11 +134,16 @@ fn render_ui(mut contexts: EguiContexts, mut windows: Query<&mut Window>, mut ui
.desired_width(window_width / 4.)
.show(ui);
// Manually add some space between the heading and the text inputs
ui.add_space(window_height / 20.);
// Manually add some space between the text inputs and the 'confirm' button
ui.add_space(window_height / 26.);
let button = ui.add(egui::Button::new("Confirm")
.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.);
});
});
}