[feat] change UI layouts

This commit is contained in:
dijunkun
2024-11-18 16:08:54 +08:00
parent bf097008e7
commit 5bf5e9ee25
7 changed files with 296 additions and 300 deletions

View File

@@ -14,8 +14,9 @@ int Render::TitleBar(bool main_window) {
ImGuiChildFlags_Border,
ImGuiWindowFlags_MenuBar | ImGuiWindowFlags_NoDecoration |
ImGuiWindowFlags_NoBringToFrontOnFocus);
ImDrawList* draw_list = ImGui::GetWindowDrawList();
ImGui::SetWindowFontScale(1.0f);
ImDrawList* draw_list = ImGui::GetWindowDrawList();
if (ImGui::BeginMenuBar()) {
ImGui::SetCursorPosX(
(main_window ? main_window_width_ : stream_window_width_) -
@@ -157,8 +158,6 @@ int Render::TitleBar(bool main_window) {
}
ImGui::EndMenuBar();
ImGui::SetWindowFontScale(1.0f);
ImGui::EndChild();
ImGui::PopStyleColor();
return 0;