Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
aiekick committed Sep 18, 2023
1 parent 9d3b79a commit 13ec61c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ImGuiFileDialog
6 changes: 4 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ int main(int, char**) {
// return true is a file style was defined
ImGuiFileDialog::Instance()->SetFileStyle([](const IGFD::FileInfos& vFileInfos, IGFD::FileStyle& vOutStyle) -> bool {
if (!vFileInfos.fileNameExt.empty() && vFileInfos.fileNameExt[0] == '.') {
vOutStyle = IGFD::FileStyle(ImVec4(0.0f, 0.9f, 0.9f, 1.0f), ICON_IGFD_REMOVE);
vOutStyle.color = ImVec4(0.0f, 0.9f, 0.9f, 1.0f);
vOutStyle.icon = ICON_IGFD_REMOVE;
return true;
}
return false;
Expand Down Expand Up @@ -441,7 +442,8 @@ int main(int, char**) {
// return true is a file style was defined
CustomDrawReadOnlyCheckBoxFileDialog::Instance()->SetFileStyle([](const IGFD::FileInfos& vFile, IGFD::FileStyle& vOutStyle) -> bool {
if (!vFile.fileNameExt.empty() && vFile.fileNameExt[0] == '.') {
vOutStyle = IGFD::FileStyle(ImVec4(0.0f, 0.9f, 0.9f, 1.0f), ICON_IGFD_REMOVE);
vOutStyle.color = ImVec4(0.0f, 0.9f, 0.9f, 1.0f);
vOutStyle.icon = ICON_IGFD_REMOVE;
return true;
}
return false;
Expand Down

0 comments on commit 13ec61c

Please sign in to comment.