Skip to content

Commit

Permalink
Make colors more readable in light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rmheuer committed Oct 16, 2024
1 parent aaa3b9f commit 1c4916c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions glass/src/lib/native/cpp/other/Alerts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ void glass::DisplayAlerts(AlertsModel* model) {
auto& warnings = model->GetWarnings();
auto& errors = model->GetErrors();

const ImVec4 kInfoColor{1.0f, 1.0f, 1.0f, 1.0f};
const ImVec4 kWarningColor{1.0f, 0.66f, 0.0f, 1.0f};
const ImVec4 kErrorColor{1.0f, 0.33f, 0.33f, 1.0f};
const ImVec4 kWarningColor{0.85f, 0.56f, 0.0f, 1.0f};
const ImVec4 kErrorColor{0.9f, 0.25f, 0.25f, 1.0f};

// show higher severity alerts on top
for (auto&& error : errors) {
Expand All @@ -28,6 +27,6 @@ void glass::DisplayAlerts(AlertsModel* model) {
warning.c_str());
}
for (auto&& info : infos) {
ImGui::TextColored(kInfoColor, "%s %s", ICON_FA_CIRCLE_INFO, info.c_str());
ImGui::Text("%s %s", ICON_FA_CIRCLE_INFO, info.c_str());
}
}

0 comments on commit 1c4916c

Please sign in to comment.