Using font manager for folder icons

This commit is contained in:
Antoine Pilote
2023-07-21 00:18:01 -04:00
parent 14ff258094
commit c748b9a218

View File

@@ -86,7 +86,7 @@ namespace Nuake
void FileSystemUI::DrawDirectory(Ref<Directory> directory)
{
ImGui::PushFont(EditorInterface::bigIconFont);
ImGui::PushFont(FontManager::GetFont(Icons));
const char* icon = ICON_FA_FOLDER;
const std::string id = ICON_FA_FOLDER + std::string("##") + directory->name;
if (ImGui::Button(id.c_str(), ImVec2(100, 100)))