13
0

Use speaker-icon in loudness report to indicate a too quiet signal

This commit is contained in:
Robin Gareus 2021-12-23 17:41:12 +01:00
parent ef71266129
commit 5406057190
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 10 additions and 4 deletions

View File

@ -693,7 +693,7 @@ ExportReport::init (const AnalysisResults & ar, bool with_file)
#ifdef PLATFORM_WINDOWS
layout->set_text ("\u2713"); // check mark
#else
layout->set_text ("\u2713\u26A0"); // check mark + warning sign
layout->set_text ("\U0001F509"); // speaker icon w/1 bar
#endif
layout->get_pixel_size (w, h);
max_wx = std::max (max_wx, w);
@ -788,7 +788,7 @@ ExportReport::init (const AnalysisResults & ar, bool with_file)
#ifdef PLATFORM_WINDOWS
layout->set_text ("\u2713"); // check mark
#else
layout->set_text ("\u2713\u26A0"); // check mark + warning sign
layout->set_text ("\U0001F509"); // speaker icon w/1 bar
#endif
} else {
cr->set_source_rgba (.1, 1, .1, 1.0);

View File

@ -828,16 +828,22 @@ LoudnessDialog::test_conformity ()
#endif
l->modify_font (UIConfiguration::instance ().get_BigFont ());
l->modify_fg (Gtk::STATE_NORMAL, color_fail);
Gtkmm2ext::set_size_request_to_display_given_text (*l, "\u274C\u2713", 0, 0);
set_tooltip (*l, "The signal is too loud.");
} else if (lufs_i < preset.LUFS_range[1]) {
#ifdef PLATFORM_WINDOWS
l = manage (new Label ("\u2713", ALIGN_CENTER)); // check mark
#else
l = manage (new Label ("\U0001F509", ALIGN_CENTER)); // speaker icon w/1 bar
#endif
l->modify_font (UIConfiguration::instance ().get_BigFont ());
l->modify_fg (Gtk::STATE_NORMAL, color_warn);
Gtkmm2ext::set_size_request_to_display_given_text (*l, "\u274C\u2713", 0, 0);
set_tooltip (*l, "The signal is too quiet, but satisfies the max. loudness spec.");
} else {
#ifdef __APPLE__
l = manage (new Label ("\u2713", ALIGN_CENTER)); // check mark
#else
l = manage (new Label ("\u2714", ALIGN_CENTER)); // heavy check mark
#endif
l->modify_font (UIConfiguration::instance ().get_BigFont ());
l->modify_fg (Gtk::STATE_NORMAL, color_good);
set_tooltip (*l, "Signal loudness is within the spec.");