Re: changing background colours on buttons (semi-permanently)
- From: Emmanuele Bassi <ebassi gmail com>
- To: gtk-perl-list gnome org
- Subject: Re: changing background colours on buttons (semi-permanently)
- Date: Thu, 10 Aug 2006 18:32:53 +0100
Hi;
On Thu, 2006-08-10 at 13:16 -0400, zentara wrote:
Associated with this question is the fact that: whilst I seem to be able
to change the font and apply it in a style, none of the fg[xxx] or
bg[xxx] in the same style seem to do anything. There is obviously a
theme of some kind running (it is ubuntu) but it seems difficult to
override (or find out what it even is).
I sympathize, it's a PITA to do simple color changes in Gtk2.
Maybe because it's a braindead leftover of the curses and console times,
and flies in the face of every usability study done in the last two
decades and (more importantly) of accessibility rules which are
oftentimes mandated by law. You should *never* change the colour of a
widget depending on your personal taste.
Anyway, GTK+ 2.10 (supported by gtk2-perl HEAD) has "themable colours",
that is the ability to set the colour of a widget/set of widgets using
symbolic names, and the theme chosen by the user will supply the right
colour. For instance, you might have a colour for "important" items and
one for "not so important" ones; each theme will supply two different
colours according to the palette, so that an inverted theme (for high
contrast rendering of the screen) and a "normal" theme will apply the
right colours.
Ciao,
Emmanuele.
--
Emmanuele Bassi, E: ebassi gmail com
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]