Skip to content

Commit

Permalink
mate-rr-labeler: fix font-color for dark themes
Browse files Browse the repository at this point in the history
  • Loading branch information
raveit65 authored and flexiondotorg committed Mar 30, 2018
1 parent fb57f93 commit 1aa9a47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libmate-desktop/mate-rr-labeler.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ create_label_window (MateRRLabeler *labeler, MateRROutputInfo *output, GdkRGBA *
GtkWidget *widget; GtkWidget *widget;
char *str; char *str;
char *display_name; char *display_name;
GdkColor black = { 0, 0, 0, 0 }; GdkRGBA black = { 0, 0, 0, 1.0 };
int x,y; int x,y;


window = gtk_window_new (GTK_WINDOW_POPUP); window = gtk_window_new (GTK_WINDOW_POPUP);
Expand Down Expand Up @@ -421,7 +421,7 @@ create_label_window (MateRRLabeler *labeler, MateRROutputInfo *output, GdkRGBA *
* theme's colors, since the label is always shown against a light * theme's colors, since the label is always shown against a light
* pastel background. See bgo#556050 * 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); gtk_container_add (GTK_CONTAINER (window), widget);


Expand Down Expand Up @@ -519,7 +519,7 @@ mate_rr_labeler_hide (MateRRLabeler *labeler)
* mate_rr_labeler_get_rgba_for_output: * mate_rr_labeler_get_rgba_for_output:
* @labeler: A #MateRRLabeler * @labeler: A #MateRRLabeler
* @output: Output device (i.e. monitor) to query * @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). * Get the color used for the label on a given output (monitor).
*/ */
Expand Down

0 comments on commit 1aa9a47

Please sign in to comment.