mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-09-26 05:45:35 +00:00
Update src/gui/gsc_info_window.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot
parent
258d06b755
commit
7e626460c0
@@ -2446,8 +2446,9 @@ gboolean GscInfoWindow::test_idle_callback(void* data)
|
||||
if (!result_main_msg.empty()) { // Highlight in red
|
||||
std::string alert_color;
|
||||
// Use the same color as Alert level warnings for consistency
|
||||
app_property_get_label_highlight_color(WarningLevel::Alert, alert_color);
|
||||
result_main_msg = "<span color=\"" + alert_color + "\">"s + result_main_msg + "</span>";
|
||||
if (app_property_get_label_highlight_color(WarningLevel::Alert, alert_color) && !alert_color.empty()) {
|
||||
result_main_msg = "<span color=\"" + alert_color + "\">"s + result_main_msg + "</span>";
|
||||
}
|
||||
}
|
||||
result_details_msg += "\n"s + _("Check the Self-Test Log for more information.");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user