mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 06:57:36 -06:00
ENH:adjust assembly view toolbar UI (STUDIO-1213)
https://jira.bambooolab.com/browse/STUDIO-1213 Change-Id: I3b17b37a229348d347f56d0672f2c258fbeb91e1
This commit is contained in:
parent
ffc4e7080c
commit
9b47255bc1
5 changed files with 98 additions and 38 deletions
|
@ -1669,7 +1669,24 @@ void ImGuiWrapper::bold_text(const std::string& str)
|
|||
text(str);
|
||||
}
|
||||
}
|
||||
|
||||
bool ImGuiWrapper::push_bold_font() {
|
||||
if (bold_font) {
|
||||
ImGui::PushFont(bold_font);
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
bool ImGuiWrapper::pop_bold_font() {
|
||||
if (bold_font) {
|
||||
ImGui::PopFont();
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
bool ImGuiWrapper::push_font_by_name(std::string font_name)
|
||||
{
|
||||
auto sys_font = im_fonts_map.find(font_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue