mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
[feat] do not show menu button during streaming
This commit is contained in:
@@ -22,24 +22,26 @@ int Render::TitleBar() {
|
|||||||
ImGui::PushStyleColor(ImGuiCol_HeaderHovered, ImVec4(0, 0, 0, 0.1f));
|
ImGui::PushStyleColor(ImGuiCol_HeaderHovered, ImVec4(0, 0, 0, 0.1f));
|
||||||
ImGui::PushStyleColor(ImGuiCol_HeaderActive,
|
ImGui::PushStyleColor(ImGuiCol_HeaderActive,
|
||||||
ImVec4(1.0f, 1.0f, 1.0f, 1.0f));
|
ImVec4(1.0f, 1.0f, 1.0f, 1.0f));
|
||||||
if (ImGui::BeginMenu(ICON_FA_BARS)) {
|
if (!streaming_) {
|
||||||
ImGui::SetWindowFontScale(0.5f);
|
if (ImGui::BeginMenu(ICON_FA_BARS)) {
|
||||||
if (ImGui::MenuItem(
|
ImGui::SetWindowFontScale(0.5f);
|
||||||
localization::settings[localization_language_index_].c_str())) {
|
if (ImGui::MenuItem(
|
||||||
show_settings_window_ = true;
|
localization::settings[localization_language_index_].c_str())) {
|
||||||
|
show_settings_window_ = true;
|
||||||
|
}
|
||||||
|
if (ImGui::MenuItem(
|
||||||
|
localization::about[localization_language_index_].c_str())) {
|
||||||
|
show_about_window_ = true;
|
||||||
|
}
|
||||||
|
ImGui::SetWindowFontScale(1.0f);
|
||||||
|
ImGui::EndMenu();
|
||||||
}
|
}
|
||||||
if (ImGui::MenuItem(
|
ImGui::PopStyleColor(2);
|
||||||
localization::about[localization_language_index_].c_str())) {
|
|
||||||
show_about_window_ = true;
|
|
||||||
}
|
|
||||||
ImGui::SetWindowFontScale(1.0f);
|
|
||||||
ImGui::EndMenu();
|
|
||||||
}
|
|
||||||
ImGui::PopStyleColor(2);
|
|
||||||
|
|
||||||
{
|
{
|
||||||
SettingWindow();
|
SettingWindow();
|
||||||
AboutWindow();
|
AboutWindow();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0, 0, 0, 0));
|
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0, 0, 0, 0));
|
||||||
|
|||||||
2
thirdparty/projectx
vendored
2
thirdparty/projectx
vendored
Submodule thirdparty/projectx updated: 9e30203e90...4624d4f27f
Reference in New Issue
Block a user