]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
label-pango: Don't draw a black box around rich text when the background is default
authornerdopolis <bluescreen_avenger@verizon.net>
Wed, 7 Aug 2024 04:12:13 +0000 (00:12 -0400)
committernerdopolis <bluescreen_avenger@verizon.net>
Wed, 7 Aug 2024 04:12:13 +0000 (00:12 -0400)
src/plugins/controls/label-pango/plugin.c

index 1ff898efea622e5a675c3a313a1316fe6c062abe..61704fdf9a154d615eabe05d0b8f8f101f1979da 100644 (file)
@@ -551,10 +551,6 @@ set_rich_text_for_control (ply_label_plugin_control_t *label,
                         }
                 }
 
-                /* Default to a black background when none is set so bright text is readable on bright backgrounds */
-                if (background_color == PLY_TERMINAL_COLOR_DEFAULT)
-                        background_color = PLY_TERMINAL_COLOR_BLACK;
-
                 look_up_rgb_color_from_terminal_color (foreground_color,
                                                        &foreground_red,
                                                        &foreground_green,