Frontend: Use Roboto font
This commit is contained in:
parent
52caf312d9
commit
e8ebead23d
File diff suppressed because it is too large
Load Diff
|
@ -56,3 +56,11 @@ void ImGui::StyleColorsDarker(ImGuiStyle* dst)
|
|||
colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.20f);
|
||||
colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.35f);
|
||||
}
|
||||
|
||||
#include "font_roboto_regular.inl"
|
||||
|
||||
void ImGui::AddRobotoRegularFont(float size /*= 15.0f*/)
|
||||
{
|
||||
ImGui::GetIO().Fonts->AddFontFromMemoryCompressedTTF(s_font_roboto_regular_compressed_data,
|
||||
s_font_roboto_regular_compressed_size, 15.0f);
|
||||
}
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
|
||||
namespace ImGui {
|
||||
void StyleColorsDarker(ImGuiStyle* dst = nullptr);
|
||||
void AddRobotoRegularFont(float size = 15.0f);
|
||||
}
|
||||
|
|
|
@ -93,6 +93,7 @@ bool SDLHostInterface::CreateImGuiContext()
|
|||
ImGui::GetIO().BackendFlags |= ImGuiBackendFlags_HasGamepad;
|
||||
|
||||
ImGui::StyleColorsDarker();
|
||||
ImGui::AddRobotoRegularFont();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue