?

Log in

No account? Create an account
Color preview has been added in the CVS version. That was much less… - LogJam [entries|archive|friends|userinfo]
LogJam

[ website | LogJam ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

[Jul. 31st, 2000|02:44 pm]
LogJam
logjam
[evan]
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
LinkReply

Comments:
[User Picture]From: bradfitz
2000-07-31 02:51 pm (UTC)

bug

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 ....

(Reply) (Thread)
From: evan
2000-07-31 03:11 pm (UTC)

Re: bug

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.
(Reply) (Parent) (Thread)
[User Picture]From: bradfitz
2000-07-31 03:26 pm (UTC)

Re: bug

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
(Reply) (Parent) (Thread)
From: evan
2000-07-31 03:32 pm (UTC)

Re: bug

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.)
(Reply) (Parent) (Thread)
[User Picture]From: bradfitz
2000-07-31 03:34 pm (UTC)

Re: bug

base it on the default (simple, blah) theme...
(Reply) (Parent) (Thread)
[User Picture]From: patrick
2000-07-31 03:29 pm (UTC)
no problems on my debian machine at work. i like how it's going, evan.
(Reply) (Thread)
[User Picture]From: revjim
2000-08-01 02:11 pm (UTC)

GRRRRR---- undo?

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)
(Reply) (Thread)