Ubuntu Forums Archive Viewer

What does base[PRELIGHT] in the gtkrc affect?

Archived thread 1018011 from Art & Design. Markdown source: Art_&_Design/thread_1018011_What_does_base[PRELIGHT]_in_the_gtkrc_affect.md

Original URL About this archive
#1

What the title says. I'm working on a theme and out of curiosity I've put, in the default style, base[PRELIGHT] = "#ff00ff". I've been waiting for a couple of days for some garish pink widget to pop up with no success. So, what *does* it affect? Oh, and the theme is based on clearlooks.

#2

As the gnome art's tutorial says is the background color of text widgets and lists

#3

Thanks for the reply but I'm not asking about base in general. I'm asking about base[PRELIGHT] specifically. From the same tutorial: "Prelight means mouse over effects. Usually the background will be slightly lighter." I have never seen prelighting effects in lists, hence my original question.

I know that sometimes GTK+ engines sometimes use values for weird things. (Aurora is infamous for this because of the way the arrows are colourised.) I'm wondering if base[PRELIGHT] is used for something really rare. Otherwise, it seems to be a redundant value, at least in clearlooks.

#4

It all depends on how the GtkWidget in question was programed to draw based on the GtkStyle's PRELIGHT GtkStateType.

The base color is typically used for the GtkCList, GtkEntry, GtkText editable area backgrounds (not it's "surface background" in which case bg[NORMAL] would have an affect).

Most such GtkWidgets, as mentioned above, simply do not draw any details that use the GtkStyle's base color with the PRELIGHT GtkStateType.

If you want to see an affect with the PRELIGHT state, only bg[PRELIGHT] and fg[PRELIGHT] for the GtkButton would produce a result when you move the pointer over the GtkButton. Most other GtkWidgets just don't have anything that responds to base[PRELIGHT].