Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Getting rid of CSS theme
Getting rid of CSS theme [message #895495] Fri, 13 July 2012 09:28 Go to next message
Marco Maccaferri is currently offline Marco Maccaferri
Messages: 132
Registered: July 2009
Senior Member
Hi,

I'm using Eclipse 4.2 with Linux/GTK. How do I disable the CSS theme at
all ? I want to have the old SWT behaviour back, where the colors are
picked from the operating system defaults and not from a file that has
nothing to do with the OS.

The classic theme selection picks the Windows XP theme even under Linux
(someone got confused about the operating systems ?).

I tried to change that theme and after speding an hour trying to
understand where the files are located, I found that it can be tweaked
to some degree only, the defaults can't be picked from the OS, you have
to set something anyway (for example the tabs background colors).

I also tried to remove all theme extensions from the platform plugin,
but this won't work either.

Seems that CSS is mandatory and there is no way to get rid of it. Hope
it is not true.

Any suggestion ?
Re: Getting rid of CSS theme [message #895496 is a reply to message #895495] Fri, 13 July 2012 09:38 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot Cela
Messages: 597
Registered: December 2010
Senior Member

You can not disable CSS rendering in 4.2 . Your best bet is to switch to classic theme and restart Eclipse.
Re: Getting rid of CSS theme [message #895498 is a reply to message #895496] Fri, 13 July 2012 09:47 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5407
Registered: July 2009
Senior Member
The only difference I see when switching to classic on linux is that the
theme does not pick up the operating system color for the tabs. Is that
what you call "Windows theme"?

Tom

Am 13.07.12 11:38, schrieb Sopot Cela:
> You can not disable CSS rendering in 4.2 . Your best bet is to switch to
> classic theme and restart Eclipse.
Re: Getting rid of CSS theme [message #895499 is a reply to message #895498] Fri, 13 July 2012 09:49 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5407
Registered: July 2009
Senior Member
.... and I say this behavior is a bug in theme IMHO. We should teach our
CSS-Engine derived/calculate colors from OS-Defaults!

So I'd consider this a bug/feature request for our CSS-Engine.

Tom

Am 13.07.12 11:47, schrieb Tom Schindl:
> The only difference I see when switching to classic on linux is that the
> theme does not pick up the operating system color for the tabs. Is that
> what you call "Windows theme"?
>
> Tom
>
> Am 13.07.12 11:38, schrieb Sopot Cela:
>> You can not disable CSS rendering in 4.2 . Your best bet is to switch to
>> classic theme and restart Eclipse.
>
>
Re: Getting rid of CSS theme [message #895500 is a reply to message #895499] Fri, 13 July 2012 09:51 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5407
Registered: July 2009
Senior Member
For the classic theme we could fix this using a specialized
CTabItemRenderer which does this!

Tom

Am 13.07.12 11:49, schrieb Tom Schindl:
> ... and I say this behavior is a bug in theme IMHO. We should teach our
> CSS-Engine derived/calculate colors from OS-Defaults!
>
> So I'd consider this a bug/feature request for our CSS-Engine.
>
> Tom
>
> Am 13.07.12 11:47, schrieb Tom Schindl:
>> The only difference I see when switching to classic on linux is that the
>> theme does not pick up the operating system color for the tabs. Is that
>> what you call "Windows theme"?
>>
>> Tom
>>
>> Am 13.07.12 11:38, schrieb Sopot Cela:
>>> You can not disable CSS rendering in 4.2 . Your best bet is to switch to
>>> classic theme and restart Eclipse.
>>
>>
>
>
Re: Getting rid of CSS theme [message #895503 is a reply to message #895498] Fri, 13 July 2012 09:58 Go to previous messageGo to next message
Marco Maccaferri is currently offline Marco Maccaferri
Messages: 132
Registered: July 2009
Senior Member
On 13/07/2012 11:47 Tom Schindl ha scritto:

> The only difference I see when switching to classic on linux is that the
> theme does not pick up the operating system color for the tabs. Is that
> what you call "Windows theme"?

Yes, and the fact that the classic theme entry in platform's plugin.xml
points to css/e4_classic_winxp.css.
Re: Getting rid of CSS theme [message #895522 is a reply to message #895496] Fri, 13 July 2012 11:23 Go to previous message
Brian de Alwis is currently offline Brian de Alwis
Messages: 191
Registered: January 2012
Senior Member

Sopot Cela wrote on Fri, 13 July 2012 05:38
You can not disable CSS rendering in 4.2 . Your best bet is to switch to classic theme and restart Eclipse.


That's not quite true: the modelled UI is independent of the CSS support. The original poster could uninstall the CSS support -- except that it's specified in the org.eclipse.e4.rcp feature and so can't be uninstalled.

The original poster should be able to create a bundle to define a "null" theme that has an empty file. It'll require a restart to take effect though.

Brian.


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:E4 Console View and Properties View
Next Topic:install e4 tools failed on 4.1
Goto Forum:
  


Current Time: Thu Oct 23 04:49:07 GMT 2014

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

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