From 3f1c845089155333d9fb7feb544c769aafabdb81 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Mon, 20 Sep 2021 12:05:35 +0200 Subject: [PATCH] Tech ENABLE_PREVIEW_LAYOUT - Darker background for the new combo into legend --- src/slic3r/GUI/GCodeViewer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp index ac4749459..742a11459 100644 --- a/src/slic3r/GUI/GCodeViewer.cpp +++ b/src/slic3r/GUI/GCodeViewer.cpp @@ -3351,6 +3351,8 @@ void GCodeViewer::render_legend(float& legend_height) int view_type = old_view_type; ImGuiStyle& style = ImGui::GetStyle(); ImGui::PushItemWidth(ImGui::GetWindowWidth() - style.ItemSpacing.x - 2.0f * style.FramePadding.x); + ImGui::PushStyleColor(ImGuiCol_FrameBg, { 0.1f, 0.1f, 0.1f, 0.8f }); + ImGui::PushStyleColor(ImGuiCol_FrameBgHovered, { 0.2f, 0.2f, 0.2f, 0.8f }); imgui.combo("", { _u8L("Feature type"), _u8L("Height (mm)"), _u8L("Width (mm)"), @@ -3360,6 +3362,7 @@ void GCodeViewer::render_legend(float& legend_height) _u8L("Volumetric flow rate (mm³/s)"), _u8L("Tool"), _u8L("Color Print") }, view_type); + ImGui::PopStyleColor(2); if (old_view_type != view_type) { set_view_type(static_cast(view_type));