[gnome-desktop] bgo#556050 - Make GnomeRRLabeler's labels explicitly black
- From: Federico Mena Quintero <federico src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-desktop] bgo#556050 - Make GnomeRRLabeler's labels explicitly black
- Date: Wed, 6 May 2009 15:00:11 -0400 (EDT)
commit 1556f925e58e97a007920e6e5376f2c61e90d3c4
Author: Federico Mena Quintero <federico novell com>
Date: Wed May 6 12:51:57 2009 -0500
bgo#556050 - Make GnomeRRLabeler's labels explicitly black
The labels are always drawn against a light pastel background. When using an
inverse-colored theme (with text nearly white, backgrounds nearly black), we
want GnomeRRLabeler's labels to still be black. Otherwise, the color from
the theme will be hard to read against the light pastel background in the
per-monitor labels.
Signed-off-by: Federico Mena Quintero <federico novell com>
---
libgnome-desktop/gnome-rr-labeler.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/libgnome-desktop/gnome-rr-labeler.c b/libgnome-desktop/gnome-rr-labeler.c
index c7f443f..aa15364 100644
--- a/libgnome-desktop/gnome-rr-labeler.c
+++ b/libgnome-desktop/gnome-rr-labeler.c
@@ -181,6 +181,7 @@ create_label_window (GnomeRRLabeler *labeler, GnomeOutputInfo *output, GdkColor
GtkWidget *window;
GtkWidget *widget;
char *str;
+ GdkColor black = { 0, 0, 0, 0 };
window = gtk_window_new (GTK_WINDOW_POPUP);
GTK_WIDGET_SET_FLAGS (window, GTK_APP_PAINTABLE);
@@ -201,6 +202,12 @@ create_label_window (GnomeRRLabeler *labeler, GnomeOutputInfo *output, GdkColor
gtk_label_set_markup (GTK_LABEL (widget), 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 (widget, GTK_WIDGET_STATE (widget), &black);
+
gtk_container_add (GTK_CONTAINER (window), widget);
/* Should we center this at the top edge of the monitor, instead of using the upper-left corner? */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]