ENH:adjust assembly view toolbar UI (STUDIO-1213)

https://jira.bambooolab.com/browse/STUDIO-1213

Change-Id: I3b17b37a229348d347f56d0672f2c258fbeb91e1
This commit is contained in:
liz.li 2023-02-24 12:19:18 +08:00 committed by Lane.Wei
parent ffc4e7080c
commit 9b47255bc1
5 changed files with 98 additions and 38 deletions

View file

@ -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);