||[Jul. 31st, 2000|02:44 pm]
Color preview has been added in the CVS version. That was much less painful than I expected.|
I had some GTK color theming code I wrote from a long time ago handy.
Please let me know if this works correctly on paletted displays. I don't expect it to, unfortunately.
nVidia's X Servers won't go into 256 colors, I think.
Brad, can I release it now? :P
it doesn't work with pixmap themes.
also, why pack that extra color preview label in there? I'd just change the color of the username GtkEntry ....
2000-07-31 03:11 pm (UTC)
It appears, from reading the mailing list archives, that GtkEntries have their own set of problems with color changing... :\
To even do the current amount of changing requires a label packed into an eventbox.
AND, speaking of which, it appears that most pixmap themes explicitly override the eventbox's background color with the parent's background. Hmm.
um, theme engines define functions to do things like painting different types of widgets, right?
so define the type needed to draw an eventbox, and call set_style on that particular eventbox and register your own function as the painter.
or something. ;-P
2000-07-31 03:32 pm (UTC)
It appears that's what I'll be forced to do.
The problem is: which style do I base my new style off of?
(Terminology note: this "style" is actually an "RcStyle" in Gtk. There is also a "GtkStyle" which controls the simpler things, such as background, foreground, and font. I modify the GtkStyle in my code, but it doesn't work with this pixmap retardedness.)
base it on the default (simple, blah) theme...
no problems on my debian machine at work. i like how it's going, evan.
When you get a chance.... an UNDO feature would be incredible. I don't know many times I type up an ENTIRE entry, only to hit the wrong key (I think CTRL-ENTER, or something similar) and have the WHOLE ENTRY blasted into oblivion. I know, I know. I should watch which keys I smash with my fat fingers... but still. It sure would be nice.
Daniel (who is going to smoke a cigarette before retyping ***ALL*** of that Entry)