35 const std::string &extension,
38 bool isSelected =
false);
50 const std::string &extension,
59 static ImU32
GetFileTypeColor(
const std::string &extension,
bool isDirectory);
65 static void RenderFolderIcon(ImDrawList *drawList, ImVec2 center,
float size,
bool isSelected);
70 static void RenderParentDirIcon(ImDrawList *drawList, ImVec2 center,
float size,
bool isSelected);
75 static void Render3DModelIcon(ImDrawList *drawList, ImVec2 center,
float size,
bool isSelected);
80 static void RenderImageIcon(ImDrawList *drawList, ImVec2 center,
float size,
bool isSelected);
85 static void RenderAudioIcon(ImDrawList *drawList, ImVec2 center,
float size,
bool isSelected);
90 static void RenderTextIcon(ImDrawList *drawList, ImVec2 center,
float size,
bool isSelected);
95 static void RenderCodeIcon(ImDrawList *drawList, ImVec2 center,
float size,
bool isSelected);
100 static void RenderSceneIcon(ImDrawList *drawList, ImVec2 center,
float size,
bool isSelected);
105 static void RenderMaterialIcon(ImDrawList *drawList, ImVec2 center,
float size,
bool isSelected);
110 static void RenderGenericFileIcon(ImDrawList *drawList, ImVec2 center,
float size,
bool isSelected);
113 static constexpr ImU32 FOLDER_COLOR = IM_COL32(255, 200, 100, 255);
114 static constexpr ImU32 PARENT_COLOR = IM_COL32(100, 150, 255, 255);
115 static constexpr ImU32 MODEL_COLOR = IM_COL32(150, 150, 255, 255);
116 static constexpr ImU32 IMAGE_COLOR = IM_COL32(100, 255, 150, 255);
117 static constexpr ImU32 AUDIO_COLOR = IM_COL32(255, 150, 100, 255);
118 static constexpr ImU32 TEXT_COLOR = IM_COL32(200, 200, 200, 255);
119 static constexpr ImU32 CODE_COLOR = IM_COL32(100, 255, 100, 255);
120 static constexpr ImU32 SCENE_COLOR = IM_COL32(255, 100, 255, 255);
121 static constexpr ImU32 MATERIAL_COLOR = IM_COL32(150, 100, 200, 255);
122 static constexpr ImU32 GENERIC_COLOR = IM_COL32(180, 180, 180, 255);
static void RenderSmallIcon(ImDrawList *drawList, ImVec2 center, const std::string &extension, bool isDirectory)
Render a small icon for list view.
Definition IconRenderer.cpp:67
static void RenderFileIcon(ImDrawList *drawList, ImVec2 center, float size, const std::string &extension, bool isDirectory, bool isParentDir, bool isSelected=false)
Render a file icon at the specified position.
Definition IconRenderer.cpp:9