Skip to content

Commit

Permalink
better main menu bar styling
Browse files Browse the repository at this point in the history
  • Loading branch information
nem0 committed Sep 10, 2023
1 parent 8e1a9d7 commit d200384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/studio_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1595,6 +1595,7 @@ struct StudioAppImpl final : StudioApp
ImGui::Image(*(void**)m_logo, ImVec2(ImGui::GetFrameHeight(), ImGui::GetFrameHeight()));
}

ImGui::PopStyleVar(2);
const ImVec2 menu_min = ImGui::GetCursorPos();
ImGui::SetNextItemAllowOverlap();
ImGui::InvisibleButton("titlebardrag", ImVec2(ImGui::GetContentRegionAvail().x, ImGui::GetFrameHeight()));
Expand All @@ -1605,7 +1606,6 @@ struct StudioAppImpl final : StudioApp
entityMenu();
toolsMenu();
viewMenu();
ImGui::PopStyleVar(2);

float w = (ImGui::GetWindowContentRegionMax().x - ImGui::GetWindowContentRegionMin().x) * 0.5f - 30 - ImGui::GetCursorPosX();
ImGui::Dummy(ImVec2(w, ImGui::GetTextLineHeightWithSpacing()));
Expand Down

0 comments on commit d200384

Please sign in to comment.