1
0
mirror of synced 2025-01-31 12:03:46 +01:00

ui: Show non existing folders in red in about view (#781)

* show non existing folders in red in about view

* use ImGuiCustomCol_ToolbarRed for theming

* Fix compilation problem for Ubuntu
This commit is contained in:
iTrooz_ 2022-10-13 08:07:46 +02:00 committed by GitHub
parent dd9b6643e6
commit 14b28ba899
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,8 +161,13 @@ namespace hex::plugin::builtin {
ImGui::TextUnformatted(name);
ImGui::TableNextColumn();
for (auto &path : fs::getDefaultPaths(type))
ImGui::TextUnformatted(hex::toUTF8String(path).c_str());
for (auto &path : fs::getDefaultPaths(type, true)){
if(fs::isDirectory(path)){
ImGui::TextUnformatted(hex::toUTF8String(path).c_str());
}else{
ImGui::TextFormattedColored(ImGui::GetCustomColorVec4(ImGuiCustomCol_ToolbarRed), hex::toUTF8String(path).c_str());
}
}
}
ImGui::EndTable();