diff options
author | raveit65 <[email protected]> | 2018-03-30 15:54:04 +0200 |
---|---|---|
committer | monsta <[email protected]> | 2018-05-22 17:34:57 +0300 |
commit | 7b5f72ca61e6462233d0ef33b258264410654f0c (patch) | |
tree | 3d20faa70d4674665139362d727fc6b4cfcecbc7 | |
parent | b400d5d18ae79dd6ddf6c963e0270a662a84834d (diff) | |
download | mate-desktop-7b5f72ca61e6462233d0ef33b258264410654f0c.tar.bz2 mate-desktop-7b5f72ca61e6462233d0ef33b258264410654f0c.tar.xz |
mate-rr-labeler: fix font-color for dark themes
Fixes https://github.com/ubuntu-mate/ubuntu-mate-artwork/issues/29
-rw-r--r-- | libmate-desktop/mate-rr-labeler.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmate-desktop/mate-rr-labeler.c b/libmate-desktop/mate-rr-labeler.c index de65423..04f02a1 100644 --- a/libmate-desktop/mate-rr-labeler.c +++ b/libmate-desktop/mate-rr-labeler.c @@ -382,7 +382,7 @@ create_label_window (MateRRLabeler *labeler, MateRROutputInfo *output, GdkRGBA * GtkWidget *widget; char *str; char *display_name; - GdkColor black = { 0, 0, 0, 0 }; + GdkRGBA black = { 0, 0, 0, 1.0 }; int x,y; window = gtk_window_new (GTK_WINDOW_POPUP); @@ -423,7 +423,7 @@ create_label_window (MateRRLabeler *labeler, MateRROutputInfo *output, GdkRGBA * * theme's colors, since the label is always shown against a light * pastel background. See bgo#556050 */ - gtk_widget_modify_fg (widget, gtk_widget_get_state_flags (widget), &black); + gtk_widget_override_color (widget, gtk_widget_get_state_flags (widget), &black); gtk_container_add (GTK_CONTAINER (window), widget); @@ -521,7 +521,7 @@ mate_rr_labeler_hide (MateRRLabeler *labeler) * mate_rr_labeler_get_rgba_for_output: * @labeler: A #MateRRLabeler * @output: Output device (i.e. monitor) to query - * @rgba_out: (out): Color of selected monitor. + * @color_out: (out): Color of selected monitor. * * Get the color used for the label on a given output (monitor). */ |