]> Pileus Git - ~andy/gtk/commit
Handle transparent colors better in GtkStyle emulation
authorAlexander Larsson <alexl@redhat.com>
Thu, 28 Jun 2012 19:30:24 +0000 (21:30 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 28 Jun 2012 19:48:14 +0000 (21:48 +0200)
commit10423726709539724be0ea19bed76ba4331af774
tree862663f4d5e66bc7fad1881b1839866351cce549
parente307f08ec29e2c17b37446a60a5aa2e889a3ce09
Handle transparent colors better in GtkStyle emulation

We can't expose colors with alpha in the GtkStyle colors, since
GdkColor has no alpha. Currently we throw away alpha completely,
which fails very badly for completely transparent backgrounds,
which now is the default for most widgets, as it typically
end up with black-on-black.

We handle this by falling back on the default/previous colors for
transparent colors. This is is simple and avoids complete failure.

https://bugzilla.gnome.org/show_bug.cgi?id=671437
gtk/deprecated/gtkstyle.c