Update GCodeViewer.cpp

This commit is contained in:
76Octane
2023-06-10 16:53:59 +08:00
parent 38a3e48f60
commit ae69c9f1b8

View File

@@ -3215,7 +3215,7 @@ void GCodeViewer::render_legend(float& legend_height)
imgui.set_next_window_pos(0.0f, 0.0f, ImGuiCond_Always);
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f);
ImGui::SetNextWindowBgAlpha(0.6f);
ImGui::SetNextWindowBgAlpha(0.8f);
const float max_height = 0.75f * static_cast<float>(cnv_size.get_height());
const float child_height = 0.3333f * max_height;
ImGui::SetNextWindowSizeConstraints({ 0.0f, 0.0f }, { -1.0f, max_height });