From 13ec61c43240d0942dd9fddcc0cb045b00c91f87 Mon Sep 17 00:00:00 2001 From: aiekick Date: Mon, 18 Sep 2023 23:51:21 +0200 Subject: [PATCH] - --- ImGuiFileDialog | 2 +- main.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ImGuiFileDialog b/ImGuiFileDialog index 446c5cf..b038c74 160000 --- a/ImGuiFileDialog +++ b/ImGuiFileDialog @@ -1 +1 @@ -Subproject commit 446c5cfa8870115d09b234604d651a92030cabc4 +Subproject commit b038c74cf943082a7b13a129170084c7528e127b diff --git a/main.cpp b/main.cpp index f5ebb66..60a9575 100644 --- a/main.cpp +++ b/main.cpp @@ -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; @@ -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;