Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Colors under Linux. Xdefaults, X resources, or what?
Colors under Linux. Xdefaults, X resources, or what? [message #183881] Fri, 29 October 2004 14:56 Go to next message
Eclipse UserFriend
Originally posted by: jmadams.stsci.edu

I am struggling to change Eclipse colors in general and, in particular, Java
editor colors. I am seeing white background everywhere which is too much
for my eyes.

I am running under KDE/Red Hat Enterprise.

It seems like this ought to be settable via
Windows/Preferences/Workbench/Colors and Fonts/Java Editor text. But here,
I can only change the font. There does not seem to be any way to change
the background color. I've looked all through the maze of color settings
to no avail.

Also, there are no font/color settings under Java/Appearance.

I've found a bunch of references to using Xdefaults, gtkrc, etc. for this,
but none of these are working, even after xrdb -merge, and restarting X.
It would seem natural that Eclipse*background: #7a7a7a should work, but it
doesn't.

I've also tried using the KDE control manager to set fonts and colors but
Eclipse seems insensitive to these as well.

I'm surprised at how hard this is. Can someone offer a suggestion?

Thanks a lot.
Re: Colors under Linux. Xdefaults, X resources, or what? [message #183896 is a reply to message #183881] Sat, 30 October 2004 01:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bhoylma.qwest.com

Not sure which version you're using, but in 4.1 you can change the Java
editor background from Preferences->Java->Editor, then within the
'Background Color' region select the 'Custom' radio button. Selecting a
color and applying it changes the background to the Java editor to that
selected color. My setting for this attr is 'System default'.

HTHYO.

Peace.
Re: Colors under Linux. Xdefaults, X resources, or what? [message #183903 is a reply to message #183896] Sat, 30 October 2004 03:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bhoylma.qwest.com

Bruce W. Hoylman wrote:

> Not sure which version you're using, but in 4.1 you can change the Java
> editor background from Preferences->Java->Editor, then within the
> 'Background Color' region select the 'Custom' radio button. Selecting a
> color and applying it changes the background to the Java editor to that
> selected color. My setting for this attr is 'System default'.

This should be '3.1', not '4.1'.
Re: Colors under Linux. Xdefaults, X resources, or what? [message #183909 is a reply to message #183903] Sat, 30 October 2004 15:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jmadams.stsci.edu

Bruce W. Hoylman wrote:

> Bruce W. Hoylman wrote:
>
>> Not sure which version you're using, but in 4.1 you can change the Java
>> editor background from Preferences->Java->Editor, then within the
>> 'Background Color' region select the 'Custom' radio button. Selecting a
>> color and applying it changes the background to the Java editor to that
>> selected color. My setting for this attr is 'System default'.

Yes, this works for me. Thanks. To find the background color organized
under the syntax tab was unexpected. I still wonder what is meant by
`System default' under Linux. I guess it means whatever you get from the
Window system when you don't specify a color.

Thanks again.
Re: Colors under Linux. Xdefaults, X resources, or what? [message #184028 is a reply to message #183909] Tue, 02 November 2004 07:24 Go to previous message
Eclipse UserFriend
Originally posted by: hcs33.egon.gyaloglo.hu

Hi,

Afaik the motif version of Eclipse uses Xdefaults, the GTK version of
Eclipse uses the current gtk theme to get 'system default' values. In the
SWT FAQ there is some information about setting these values:
http://dev.eclipse.org/viewcvs/index.cgi/platform-swt-home/f aq.html?rev=1.121#motiffontsandcolors
(url may wrap)

HTH,
Regards,
Csaba

<jmadams@stsci.edu> wrote in message news:cm0cle$g2v$1@eclipse.org...
> Bruce W. Hoylman wrote:
>
> > Bruce W. Hoylman wrote:
> >
> >> Not sure which version you're using, but in 4.1 you can change the Java
> >> editor background from Preferences->Java->Editor, then within the
> >> 'Background Color' region select the 'Custom' radio button. Selecting
a
> >> color and applying it changes the background to the Java editor to that
> >> selected color. My setting for this attr is 'System default'.
>
> Yes, this works for me. Thanks. To find the background color organized
> under the syntax tab was unexpected. I still wonder what is meant by
> `System default' under Linux. I guess it means whatever you get from the
> Window system when you don't specify a color.
>
> Thanks again.
Previous Topic:breakpionts in JDT
Next Topic:weird code on Importing a EJB Jar File
Goto Forum:
  


Current Time: Sat Oct 19 08:54:01 GMT 2024

Powered by FUDForum. Page generated in 0.03057 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top