Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Customize Workbench Look and feel
Customize Workbench Look and feel [message #400847] Tue, 21 December 2004 18:47 Go to next message
Eclipse UserFriend
Originally posted by: bertrand.goupil.ouvaton.org

Hello,

I would like to customize the workbench's look and feel like changing
View color header.
How can I do this?

Thanks

Bertrand
Re: Customize Workbench Look and feel [message #400863 is a reply to message #400847] Tue, 21 December 2004 22:37 Go to previous messageGo to next message
Nick Edgar is currently offline Nick EdgarFriend
Messages: 439
Registered: July 2009
Senior Member
Do you want to change the presentation implementation (i.e. use
different controls to show views and editor tab folders), or just change
the colours?

For the former, you can implement your own presentation extension.
But this is non-trivial, and there is not currently much in the way of
documentation on how to do this.
The R2.1 presentation is defined by the org.eclipse.ui.presentations.r21
plug-in, so you could look at the source for that. See also other
threads in this newsgroup discussing presentations.

For the latter, you can define your own theme, providing new colour
values for the predefined colour definitions.
See the themes extension point schema at
http://help.eclipse.org/help30/topic/org.eclipse.platform.do c.isv/reference/extension-points/org_eclipse_ui_themes.html
See org.eclipse.ui's plugin.xml for examples.

To change the default theme for the app, add the following to your
plugin_customization.ini file:
org.eclipse.ui.workbench/CURRENT_THEME_ID=<yourThemeId>

For more on customization, see:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-ui-home/rcp/faq.html#customPrefs

Nick

Bertrand Goupil wrote:
> Hello,
>
> I would like to customize the workbench's look and feel like changing
> View color header.
> How can I do this?
>
> Thanks
>
> Bertrand
Re: Customize Workbench Look and feel [message #400877 is a reply to message #400863] Wed, 22 December 2004 11:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bertrand.goupil.ouvaton.org

Hi,

For the moment I just want to change colors.
I use the org.eclipse.ui's plugin.xml as example and I did It.
Now I want to set gradient value to have something like the
setSelectionBackground of the Composite Classe as XML value :
setSelectionBackground(new Color[]
{Display.getCurrent().getSystemColor(SWT.COLOR_TITLE_INACTIV E_BACKGROUND_GRADIENT),
ResourceManager.getColor(255, 255, 255),
Display.getCurrent().getSystemColor(SWT.COLOR_TITLE_INACTIVE _BACKGROUND_GRADIENT),
Display.getCurrent().getSystemColor(SWT.COLOR_TITLE_INACTIVE _BACKGROUND_GRADIENT)},
new int[] {25, 40, 100}, true)

Is it possible to define this in the plugin.xml ?
Thx

Bertrand
> Do you want to change the presentation implementation (i.e. use
> different controls to show views and editor tab folders), or just change
> the colours?
>
> For the former, you can implement your own presentation extension.
> But this is non-trivial, and there is not currently much in the way of
> documentation on how to do this.
> The R2.1 presentation is defined by the org.eclipse.ui.presentations.r21
> plug-in, so you could look at the source for that. See also other
> threads in this newsgroup discussing presentations.
>
> For the latter, you can define your own theme, providing new colour
> values for the predefined colour definitions.
> See the themes extension point schema at
> http://help.eclipse.org/help30/topic/org.eclipse.platform.do c.isv/reference/extension-points/org_eclipse_ui_themes.html
>
> See org.eclipse.ui's plugin.xml for examples.
>
> To change the default theme for the app, add the following to your
> plugin_customization.ini file:
> org.eclipse.ui.workbench/CURRENT_THEME_ID=<yourThemeId>
>
> For more on customization, see:
> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-ui-home/rcp/faq.html#customPrefs
>
>
> Nick
>
> Bertrand Goupil wrote:
>
>> Hello,
>>
>> I would like to customize the workbench's look and feel like changing
>> View color header.
>> How can I do this?
>>
>> Thanks
>>
>> Bertrand
Re: Customize Workbench Look and feel [message #401527 is a reply to message #400877] Wed, 22 December 2004 21:21 Go to previous message
Nick Edgar is currently offline Nick EdgarFriend
Messages: 439
Registered: July 2009
Senior Member
No, the default presentation does not allow an arbitrary array of
percents for tab gradients, just two colors and a single percent.

To see how it uses these, look at the implementation for
DefaultThemeListener and IWorkbenchThemeConstants in the source for the
org.eclipse.ui.workbench plug-in.

Nick


Bertrand Goupil wrote:
> Hi,
>
> For the moment I just want to change colors.
> I use the org.eclipse.ui's plugin.xml as example and I did It.
> Now I want to set gradient value to have something like the
> setSelectionBackground of the Composite Classe as XML value :
> setSelectionBackground(new Color[]
> {Display.getCurrent().getSystemColor(SWT.COLOR_TITLE_INACTIV E_BACKGROUND_GRADIENT),
> ResourceManager.getColor(255, 255, 255),
> Display.getCurrent().getSystemColor(SWT.COLOR_TITLE_INACTIVE _BACKGROUND_GRADIENT),
> Display.getCurrent().getSystemColor(SWT.COLOR_TITLE_INACTIVE _BACKGROUND_GRADIENT)},
> new int[] {25, 40, 100}, true)
>
> Is it possible to define this in the plugin.xml ?
> Thx
>
> Bertrand
>
>> Do you want to change the presentation implementation (i.e. use
>> different controls to show views and editor tab folders), or just
>> change the colours?
>>
>> For the former, you can implement your own presentation extension.
>> But this is non-trivial, and there is not currently much in the way of
>> documentation on how to do this.
>> The R2.1 presentation is defined by the
>> org.eclipse.ui.presentations.r21 plug-in, so you could look at the
>> source for that. See also other threads in this newsgroup discussing
>> presentations.
>>
>> For the latter, you can define your own theme, providing new colour
>> values for the predefined colour definitions.
>> See the themes extension point schema at
>> http://help.eclipse.org/help30/topic/org.eclipse.platform.do c.isv/reference/extension-points/org_eclipse_ui_themes.html
>>
>> See org.eclipse.ui's plugin.xml for examples.
>>
>> To change the default theme for the app, add the following to your
>> plugin_customization.ini file:
>> org.eclipse.ui.workbench/CURRENT_THEME_ID=<yourThemeId>
>>
>> For more on customization, see:
>> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-ui-home/rcp/faq.html#customPrefs
>>
>>
>> Nick
>>
>> Bertrand Goupil wrote:
>>
>>> Hello,
>>>
>>> I would like to customize the workbench's look and feel like changing
>>> View color header.
>>> How can I do this?
>>>
>>> Thanks
>>>
>>> Bertrand
Previous Topic:BUSINESS: eclipse RCP license
Next Topic:Making Buttons in the toolbar of equal size
Goto Forum:
  


Current Time: Thu Apr 25 09:13:43 GMT 2024

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

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

Back to the top