Skip to content

Commit 8efed07

Browse files
committed
fix(ui): improve Project Options modal UX, update title format, increase modal width, and Confirm Delete Modal centered.
1 parent 2122d54 commit 8efed07

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/UI/Modals.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2690,7 +2690,7 @@ void Modals::RenderProjectActionModal(
26902690
projectActionModalOpened = true;
26912691
}
26922692

2693-
ImGui::SetNextWindowSize(ImVec2(320, 0), ImGuiCond_Always);
2693+
ImGui::SetNextWindowSize(ImVec2(450, 0), ImGuiCond_Always);
26942694

26952695
ImVec2 center = ImGui::GetMainViewport()->GetCenter();
26962696
ImGui::SetNextWindowPos(center, ImGuiCond_Appearing, ImVec2(0.5f, 0.5f));
@@ -2700,11 +2700,12 @@ void Modals::RenderProjectActionModal(
27002700

27012701
// Project name (prominent)
27022702
ImGui::TextColored(ImVec4(1.0f, 1.0f, 1.0f, 1.0f),
2703-
"\"%s\"", projectActionName.c_str());
2703+
"Project: %s", projectActionName.c_str());
27042704

2705-
// Project path (dimmed)
2706-
ImGui::TextColored(ImVec4(0.5f, 0.5f, 0.5f, 1.0f),
2707-
"%s", projectActionPath.c_str());
2705+
// Project path (dimmed, wrapped for long paths)
2706+
ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(0.5f, 0.5f, 0.5f, 1.0f));
2707+
ImGui::TextWrapped("%s", projectActionPath.c_str());
2708+
ImGui::PopStyleColor();
27082709

27092710
ImGui::Spacing();
27102711
ImGui::Separator();
@@ -2731,7 +2732,7 @@ void Modals::RenderProjectActionModal(
27312732

27322733
// Confirmation popup for delete (centered)
27332734
ImVec2 confirmCenter = ImGui::GetMainViewport()->GetCenter();
2734-
ImGui::SetNextWindowPos(confirmCenter, ImGuiCond_Appearing,
2735+
ImGui::SetNextWindowPos(confirmCenter, ImGuiCond_Always,
27352736
ImVec2(0.5f, 0.5f));
27362737
if (ImGui::BeginPopupModal("Confirm Delete", nullptr,
27372738
ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoMove)) {

0 commit comments

Comments
 (0)