Skip to content
Permalink
Browse files

xrandr-applet: don't hard code label colors in menu

Using black color makes the label unreadable with dark themes
  • Loading branch information...
raveit65 committed May 7, 2018
1 parent 2ae546b commit 2674157347d3950b3ed055cfecc0a3dd65bb614a
Showing with 0 additions and 7 deletions.
  1. +0 −7 plugins/xrandr/msd-xrandr-manager.c
@@ -1787,7 +1787,6 @@ make_menu_item_for_output_title (MsdXrandrManager *manager, MateRROutputInfo *ou
GtkWidget *item;
GtkWidget *label;
char *str;
GdkColor black = { 0, 0, 0, 0 };

item = gtk_menu_item_new ();

@@ -1799,12 +1798,6 @@ make_menu_item_for_output_title (MsdXrandrManager *manager, MateRROutputInfo *ou
gtk_label_set_markup (GTK_LABEL (label), str);
g_free (str);

/* Make the label explicitly black. We don't want it to follow the
* theme's colors, since the label is always shown against a light
* pastel background. See bgo#556050
*/
gtk_widget_modify_fg (label, gtk_widget_get_state (label), &black);

/* Add padding around the label to fit the box that we'll draw for color-coding */
gtk_label_set_xalign (GTK_LABEL (label), 0.0);
gtk_label_set_yalign (GTK_LABEL (label), 0.5);

0 comments on commit 2674157

Please sign in to comment.
You can’t perform that action at this time.