From a49365ef1e5d10760144f1d2a1799df5f3d8b8ce Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 29 Mar 2020 21:04:21 +0200 Subject: Statusbar: use white on red as fixed color error highlight --- gtk2_ardour/ardour_ui.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 0566e3021d..035c13572f 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -1281,8 +1281,8 @@ ARDOUR_UI::update_cpu_load () const unsigned int x = _session ? _session->get_xrun_count () : 0; double const c = AudioEngine::instance()->get_dsp_load (); - const char* const bg = c > 90 ? " background=\"red\"" : ""; std::string label = string_compose (X_("%1: "), _("DSP")); + const char* const bg = c > 90 ? " background=\"red\" foreground=\"white\"" : ""; char buf[256]; if (x > 9999) { @@ -1312,8 +1312,8 @@ ARDOUR_UI::update_peak_thread_work () char buf[64]; const int c = SourceFactory::peak_work_queue_length (); if (c > 0) { - const char* const bg = c > 2 ? " background=\"red\"" : ""; std::string label = string_compose (X_("%1: "), _("PkBld")); + const char* const bg = c > 2 ? " background=\"red\" foreground=\"white\"" : ""; snprintf (buf, sizeof (buf), "%d", bg, c); peak_thread_work_label.set_markup (label + buf); } else { @@ -1419,7 +1419,7 @@ ARDOUR_UI::update_timecode_format () matching = true; } - const char* const bg = matching ? "" : " background=\"red\""; + const char* const bg = matching ? "" : " background=\"red\" foreground=\"white\""; timecode_format_label.set_markup (string_compose ("%1%3", label, bg, -- cgit v1.2.3