diff options
author | William Jon McCann <jmccann@redhat.com> | 2009-09-23 15:11:09 -0400 |
---|---|---|
committer | William Jon McCann <jmccann@redhat.com> | 2009-09-23 15:11:09 -0400 |
commit | 6f14cfcb53a538a3fea98d55e87cc6c9291cb54d (patch) | |
tree | 2b3f3e56636a520dbe7c52c570f8953dd0e1413e | |
parent | 38a7e6a7b8d0185f51dc47f942f632507169e393 (diff) |
Use the background color for fill
Using light only works for dark colors and doesn't work at all
for themes that want a specific contrast ratio.
-rw-r--r-- | src/theme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/theme.c b/src/theme.c index fe67392..ec7cccc 100644 --- a/src/theme.c +++ b/src/theme.c @@ -156,7 +156,7 @@ fill_background (GtkWidget *widget, widget->allocation.width - 2, widget->allocation.height - 2); - color = widget->style->light [GTK_STATE_NORMAL]; + color = widget->style->bg [GTK_STATE_NORMAL]; r = (float)color.red / 65535.0; g = (float)color.green / 65535.0; b = (float)color.blue / 65535.0; @@ -875,7 +875,7 @@ on_countdown_expose (GtkWidget *pie, cr = cairo_create (surface); cairo_set_operator (cr, CAIRO_OPERATOR_OVER); - color = windata->win->style->light [GTK_STATE_NORMAL]; + color = windata->win->style->bg [GTK_STATE_NORMAL]; r = (float)color.red / 65535.0; g = (float)color.green / 65535.0; b = (float)color.blue / 65535.0; |