diff --git a/src/sandbox/layers/test_panel/test_panel.cpp b/src/sandbox/layers/test_panel/test_panel.cpp index fe0533d..d3908cc 100644 --- a/src/sandbox/layers/test_panel/test_panel.cpp +++ b/src/sandbox/layers/test_panel/test_panel.cpp @@ -21,8 +21,7 @@ namespace tr::layers BEGIN_IMGUI_WIN(); - ImFont* font = try_engine::style::fonts::get_font(font_type::ICON, 18); - ImGui::PushFont(font); + TR_PUSH_FONT(ICON, 18); if (ImGui::Button(try_engine::style::icon::ICON_STOP, ImVec2(28, 30))) { em->execute(std::string("asdf"), "asdf"); @@ -31,7 +30,7 @@ namespace tr::layers // ImGui::Text(try_engine::style::icon::ICON_PAINT_BRUSH " Paint" ); ImGui::Text("\xef\x87\xbc"); - ImGui::PopFont(); + TR_POP_FONT(); END_IMGUI_WIN(); }