Skip to content

Commit abaa1e4

Browse files
raveit65monsta
authored andcommitted
mate-rr-labeler: fix font-color for dark themes
Fixes ubuntu-mate/ubuntu-mate-artwork#29
1 parent 247a5fd commit abaa1e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libmate-desktop/mate-rr-labeler.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ create_label_window (MateRRLabeler *labeler, MateRROutputInfo *output, GdkRGBA *
380380
GtkWidget *widget;
381381
char *str;
382382
char *display_name;
383-
GdkColor black = { 0, 0, 0, 0 };
383+
GdkRGBA black = { 0, 0, 0, 1.0 };
384384
int x,y;
385385

386386
window = gtk_window_new (GTK_WINDOW_POPUP);
@@ -421,7 +421,7 @@ create_label_window (MateRRLabeler *labeler, MateRROutputInfo *output, GdkRGBA *
421421
* theme's colors, since the label is always shown against a light
422422
* pastel background. See bgo#556050
423423
*/
424-
gtk_widget_modify_fg (widget, gtk_widget_get_state_flags (widget), &black);
424+
gtk_widget_override_color (widget, gtk_widget_get_state_flags (widget), &black);
425425

426426
gtk_container_add (GTK_CONTAINER (window), widget);
427427

@@ -519,7 +519,7 @@ mate_rr_labeler_hide (MateRRLabeler *labeler)
519519
* mate_rr_labeler_get_rgba_for_output:
520520
* @labeler: A #MateRRLabeler
521521
* @output: Output device (i.e. monitor) to query
522-
* @rgba_out: (out): Color of selected monitor.
522+
* @color_out: (out): Color of selected monitor.
523523
*
524524
* Get the color used for the label on a given output (monitor).
525525
*/

0 commit comments

Comments
 (0)