diff --git a/src/ui/windows/bootstrap_download_dialog.h b/src/ui/windows/bootstrap_download_dialog.h index 3594d12..811dac3 100644 --- a/src/ui/windows/bootstrap_download_dialog.h +++ b/src/ui/windows/bootstrap_download_dialog.h @@ -91,21 +91,8 @@ private: ImGui::TextWrapped("%s", TR("bootstrap_desc")); ImGui::Spacing(); - // Warning card - ImGui::PushStyleColor(ImGuiCol_ChildBg, ImVec4(0.9f, 0.6f, 0.0f, 0.08f)); - ImGui::BeginChild("##bsWarn", ImVec2(0, 0), - ImGuiChildFlags_AutoResizeY | ImGuiChildFlags_AlwaysUseWindowPadding, - ImGuiWindowFlags_NoScrollbar); - { - ImFont* iconFont = Type().iconSmall(); - ImGui::PushFont(iconFont); - ImGui::TextColored(ImGui::ColorConvertU32ToFloat4(Warning()), "%s", ICON_MD_WARNING); - ImGui::PopFont(); - ImGui::SameLine(); - ImGui::TextWrapped("%s", TR("bootstrap_warning")); - } - ImGui::EndChild(); - ImGui::PopStyleColor(); + // Care header (reference style: ⚠ + Warning color, wraps if long). + DialogWarningHeader(TR("bootstrap_warning")); ImGui::Spacing(); @@ -124,9 +111,12 @@ private: ImGui::Spacing(); ImGui::Spacing(); - // Buttons: Download | Mirror | Cancel + // Buttons: Download | Mirror | Cancel — centered as a group. float btnW = 140.0f * dp; float btnSm = 90.0f * dp; + const float rowTotal = btnW * 2.0f + btnSm + ImGui::GetStyle().ItemSpacing.x * 2.0f; + const float rowOff = (ImGui::GetContentRegionAvail().x - rowTotal) * 0.5f; + if (rowOff > 0.0f) ImGui::SetCursorPosX(ImGui::GetCursorPosX() + rowOff); if (TactileButton(TR("download"), ImVec2(btnW, 0))) { startDownload("");