mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-01 21:17:44 -05:00
impr: Added more fine-grained colors to themes
This commit is contained in:
@@ -13,15 +13,15 @@ namespace hex::plugin::builtin {
|
||||
|
||||
static ImColor getColor(std::string_view level) {
|
||||
if (level.contains("DEBUG"))
|
||||
return ImGui::GetCustomColorVec4(ImGuiCustomCol_ToolbarGreen);
|
||||
return ImGui::GetCustomColorVec4(ImGuiCustomCol_LoggerDebug);
|
||||
else if (level.contains("INFO"))
|
||||
return ImGui::GetCustomColorVec4(ImGuiCustomCol_ToolbarBlue);
|
||||
return ImGui::GetCustomColorVec4(ImGuiCustomCol_LoggerInfo);
|
||||
else if (level.contains("WARN"))
|
||||
return ImGui::GetCustomColorVec4(ImGuiCustomCol_ToolbarYellow);
|
||||
return ImGui::GetCustomColorVec4(ImGuiCustomCol_LoggerWarning);
|
||||
else if (level.contains("ERROR"))
|
||||
return ImGui::GetCustomColorVec4(ImGuiCustomCol_ToolbarRed);
|
||||
return ImGui::GetCustomColorVec4(ImGuiCustomCol_LoggerError);
|
||||
else if (level.contains("FATAL"))
|
||||
return ImGui::GetCustomColorVec4(ImGuiCustomCol_ToolbarPurple);
|
||||
return ImGui::GetCustomColorVec4(ImGuiCustomCol_LoggerFatal);
|
||||
return ImGui::GetStyleColorVec4(ImGuiCol_Text);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user