[feat] use tab bar to manage stream windows

This commit is contained in:
dijunkun
2025-04-29 22:16:10 +08:00
parent 532ad0eb51
commit dfbd4317b7
5 changed files with 94 additions and 59 deletions

View File

@@ -163,15 +163,6 @@ int Render::ControlBar(std::shared_ptr<SubStreamWindowProperties>& props) {
props->reset_control_bar_pos_ = true;
}
ImGui::SameLine();
// close button
std::string close_button = ICON_FA_XMARK;
if (ImGui::Button(close_button.c_str(), ImVec2(25, 25))) {
SDL_Event event;
event.type = SDL_QUIT;
SDL_PushEvent(&event);
}
ImGui::SameLine();
if (!props->is_control_bar_in_left_) {