From 8733d08fba13ba46d7b9db1b67a309a9c2129941 Mon Sep 17 00:00:00 2001 From: Jackburton79 Date: Fri, 6 Dec 2024 18:11:10 +0100 Subject: [PATCH] StatusView: use B_FAILURE_COLOR instead of hardcoding red as suggested by Humdinger --- src/ui/GlobalStatusView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/GlobalStatusView.cpp b/src/ui/GlobalStatusView.cpp index 425d9df2..d426d5e2 100644 --- a/src/ui/GlobalStatusView.cpp +++ b/src/ui/GlobalStatusView.cpp @@ -132,8 +132,8 @@ GlobalStatusView::MessageReceived(BMessage *message) fStringView->SetText(text.String()); if (status != B_OK) { - // Red text on fail - fStringView->SetHighColor(240, 0, 0); + // On fail + fStringView->SetHighColor(ui_color(B_FAILURE_COLOR)); // beep(); } else fStringView->SetHighColor(ui_color(B_CONTROL_TEXT_COLOR));