Skip to content

Commit

Permalink
override missing styles for addon window
Browse files Browse the repository at this point in the history
  • Loading branch information
DeltaGW2 committed Feb 13, 2024
1 parent c6e08b7 commit 01f3810
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/GUI/Widgets/Addons/AddonsWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ namespace GUI
ImGui::PushStyleVar(ImGuiStyleVar_ButtonTextAlign, ImVec2(0.5f, 0.5f));
ImGui::PushStyleVar(ImGuiStyleVar_FrameBorderSize, 0);
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 0);
ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(1, 1, 1, 1));
ImGui::PushStyleColor(ImGuiCol_ChildBg, ImVec4(0, 0, 0, 0));

ImGui::SetNextWindowSize(ImVec2(windowWidth * Renderer::Scaling, windowHeight * Renderer::Scaling));
if (ImGui::Begin(Name.c_str(), &Visible, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_NoTitleBar |
Expand Down Expand Up @@ -249,6 +251,7 @@ namespace GUI
}
ImGui::End();

ImGui::PopStyleColor(2);
ImGui::PopStyleVar(6);
ImGui::PopFont();
}
Expand Down

0 comments on commit 01f3810

Please sign in to comment.