diff --git a/troposphere/daybreak/source/ui.cpp b/troposphere/daybreak/source/ui.cpp
index 03fd6a7ca..a27a0b06a 100644
--- a/troposphere/daybreak/source/ui.cpp
+++ b/troposphere/daybreak/source/ui.cpp
@@ -30,6 +30,20 @@ namespace dbk {
static constexpr u32 ExosphereHasRcmBugPatch = 65004;
static constexpr u32 ExosphereEmummcType = 65007;
+ /* Insets of content within windows. */
+ static constexpr float HorizontalInset = 20.0f;
+ static constexpr float BottomInset = 20.0f;
+
+ /* Insets of content within text areas. */
+ static constexpr float TextHorizontalInset = 8.0f;
+ static constexpr float TextVerticalInset = 8.0f;
+
+ static constexpr float ButtonHeight = 60.0f;
+ static constexpr float ButtonHorizontalGap = 10.0f;
+
+ static constexpr float VerticalGap = 10.0f;
+
+
u32 g_screen_width;
u32 g_screen_height;
@@ -317,11 +331,7 @@ namespace dbk {
return m_prev_menu;
}
- ErrorMenu::ErrorMenu(const char *text, const char *subtext, Result rc) : Menu(nullptr), m_text{}, m_subtext{}, m_result_text{}, m_rc(rc) {
- const float window_height = WindowHeight + (R_FAILED(m_rc) ? SubTextHeight : 0.0f);
- const float x = g_screen_width / 2.0f - WindowWidth / 2.0f;
- const float y = g_screen_height / 2.0f - window_height / 2.0f;
-
+ AlertMenu::AlertMenu(std::shared_ptr