ENH:Bold font for preview title

Change-Id: I75c9b1ad0b1b7b07650b2038dbbc101b5a4fb4d7
This commit is contained in:
xiangdong.yang 2022-08-11 11:16:13 +08:00 committed by Lane.Wei
parent afc1395828
commit aa59c93eb5
3 changed files with 38 additions and 5 deletions

View file

@ -4160,10 +4160,10 @@ void GCodeViewer::render_legend(float &legend_height, int canvas_width, int canv
auto append_headers = [&imgui](const std::array<std::string, 5>& texts, const std::array<float, 4>& offsets) {
size_t i = 0;
for (; i < offsets.size(); i++) {
imgui.text(texts[i]);
imgui.bold_text(texts[i]);
ImGui::SameLine(offsets[i]);
}
imgui.text(texts[i]);
imgui.bold_text(texts[i]);
ImGui::Separator();
};
@ -4267,7 +4267,7 @@ void GCodeViewer::render_legend(float &legend_height, int canvas_width, int canv
ImGui::PopStyleColor(3);
ImGui::PopStyleVar(1);
ImGui::SameLine();
ImGui::Text(_u8L("Color Scheme").c_str());
imgui.bold_text(_u8L("Color Scheme"));
push_combo_style();
ImGui::SameLine();