Skip to content

Commit

Permalink
Update UI backend
Browse files Browse the repository at this point in the history
  • Loading branch information
user-grinch committed Oct 13, 2024
1 parent bfa98e8 commit 1a42bd8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions include/ui/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,12 +333,16 @@ void Ui::Renderer::DrawLayer(Specification &Spec)
bool state = true;
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 0.5f);
ImGui::SetNextWindowFocus();
if (ImGui::Begin("##PopupWindow", &state, flags))

ImGui::OpenPopup("##PopupWindow");
if (ImGui::BeginPopupModal("##PopupWindow", &state, flags))
{
Spec.PopupFunc();
sz = ImGui::GetWindowSize();
ImGui::End();
ImGui::NewLine();
ImGui::EndPopup();
}

ImGui::PopStyleVar();

if (!state)
Expand Down
6 changes: 3 additions & 3 deletions src/editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void Editor::AboutPopUp()
ShellExecute(nullptr, "open", "https://www.patreon.com/grinch_", nullptr, nullptr, SW_SHOWNORMAL);
}
ImGui::Spacing();
ImGui::Text("Copyright Grinch_ 2022-2023. All rights reserved.");
ImGui::Text("Copyright Grinch_ 2022-2025. All rights reserved.");
}

void Editor::UpdatePopUp()
Expand All @@ -53,7 +53,7 @@ void Editor::UpdatePopUp()
ShellExecute(nullptr, "open", "https://github.com/user-grinch/IMGEditor/releases/", nullptr, nullptr, SW_SHOWNORMAL);
}
ImGui::Spacing();
ImGui::Text("Copyright Grinch_ 2022-2023. All rights reserved.");
ImGui::Text("Copyright Grinch_ 2022-2025. All rights reserved.");
}

void Editor::WelcomePopup()
Expand Down Expand Up @@ -86,7 +86,7 @@ void Editor::WelcomePopup()
ShellExecute(nullptr, "open", "https://www.patreon.com/grinch_", nullptr, nullptr, SW_SHOWNORMAL);
}
ImGui::Spacing();
ImGui::Text("Copyright Grinch_ 2022-2023. All rights reserved.");
ImGui::Text("Copyright Grinch_ 2022-2025. All rights reserved.");
}

const char* Editor::GetFilterText()
Expand Down

0 comments on commit 1a42bd8

Please sign in to comment.