discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trying to set selectedTextBackgroundColor


From: Adam Fedor
Subject: Re: trying to set selectedTextBackgroundColor
Date: Tue, 02 Jul 2002 21:31:48 -0600
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.0rc2) Gecko/20020513

Chris B.Vetter wrote:
On Tue, 02 Jul 2002 19:50:00 -0400
Jim Balhoff <balhoff@mac.com> wrote:

I am still trying to change the highlight color of text.  From NSColor.h,
I found that I need to set selectedTextBackgroundColor.  I've been trying
commands like this:
defaults write NSGlobalDomain selectedTextBackgroundColor '(0, 255, 0)'
or
defaults write NSGlobalDomain selectedTextBackgroundColor '(0, 1, 0)'


The colour definitions are not in X11 rbg style ...

    NSGlobalDomain = {
        [...]
        System = {
            controlBackgroundColor = "0.89 0.89 0.89";
            controlColor = "0.89 0.89 0.89";
            textBackgroundColor = "0.89 0.89 0.89";
            windowBackgroundColor = "0.89 0.89 0.89";
        };
        [...]

However, changing the values doesn't seem to work. At least not in Ink.app.


I was expecting one of these to produce a green color, but actually after
checking in Ink and GNUMail it appears that neither do a thing.  My
highlight color is still a pale blue.


It's lightGray (0.667 0.667 0.667), not "pale blue", according to 
gui/Source/NSColor.m and gui/Source/externs.m


Colors are stored in an archive in ~/GNUstep/Library/Colors/System.clr, unfortunately, in a format that is not easily editable. I believe there was a preference module announced recently that I'm guessing allows you to edit them.

--
Adam Fedor, Digital Optics Corp.      | I'm glad I hate spinach, because
http://www.doc.com                    | if I didn't, I'd eat it, and you
                                      | know how I hate the stuff.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]