FIX:fix preview Flushed filament add padding

Change-Id: I869f64a56df74e1e096e434676b5f6de39ebcca8
This commit is contained in:
xiangdong.yang 2022-08-12 15:57:06 +08:00 committed by Lane.Wei
parent 8b1ec73b71
commit afc1395828

View file

@ -4621,6 +4621,8 @@ void GCodeViewer::render_legend(float &legend_height, int canvas_width, int canv
max_len += std::max(ImGui::CalcTextSize(filament_change_str.c_str()).x, ImGui::CalcTextSize(flushed_filament_str.c_str()).x); max_len += std::max(ImGui::CalcTextSize(filament_change_str.c_str()).x, ImGui::CalcTextSize(flushed_filament_str.c_str()).x);
//BBS: display total flushed filament //BBS: display total flushed filament
{ {
ImGui::Dummy({window_padding, window_padding});
ImGui::SameLine();
imgui.text(flushed_filament_str + ":"); imgui.text(flushed_filament_str + ":");
ImGui::SameLine(max_len); ImGui::SameLine(max_len);
char buf[64]; char buf[64];
@ -4632,6 +4634,8 @@ void GCodeViewer::render_legend(float &legend_height, int canvas_width, int canv
} }
//BBS display filament change times //BBS display filament change times
{ {
ImGui::Dummy({window_padding, window_padding});
ImGui::SameLine();
imgui.text(filament_change_str + ":"); imgui.text(filament_change_str + ":");
ImGui::SameLine(max_len); ImGui::SameLine(max_len);
char temp_buf[64]; char temp_buf[64];