Tech ENABLE_PREVIEW_LAYOUT - Fixed legend layout for tool view

This commit is contained in:
enricoturri1966 2021-09-24 12:33:26 +02:00
parent 57a0b23a07
commit d458de601b

View File

@ -3538,6 +3538,8 @@ void GCodeViewer::render_legend(float& legend_height)
// extrusion paths section -> title
if (m_view_type == EViewType::FeatureType)
append_headers({ _u8L(""), _u8L("Time"), _u8L("Percentage"), _u8L("Used filament") }, offsets);
else if (m_view_type == EViewType::Tool)
append_headers({ _u8L(""), _u8L("Used filament"), _u8L(""), _u8L("") }, offsets);
else
ImGui::Separator();
#else
@ -4121,6 +4123,7 @@ void GCodeViewer::render_legend(float& legend_height)
ImGui::Spacing();
ImGui::Separator();
ImGui::Spacing();
ImGui::Spacing();
toggle_button(Preview::OptionType::Travel, _u8L("Travel"), [line_icon](ImGuiWindow& window, const ImVec2& pos, float size) {
line_icon(window, pos, size, Travel_Colors[0]);
});