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:
parent
dd9b6643e6
commit
14b28ba899
@ -161,8 +161,13 @@ namespace hex::plugin::builtin {
|
|||||||
ImGui::TextUnformatted(name);
|
ImGui::TextUnformatted(name);
|
||||||
|
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
for (auto &path : fs::getDefaultPaths(type))
|
for (auto &path : fs::getDefaultPaths(type, true)){
|
||||||
ImGui::TextUnformatted(hex::toUTF8String(path).c_str());
|
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();
|
ImGui::EndTable();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user