Changing the colour of the title bar in a standalone view? [message #467238] |
Tue, 01 May 2007 16:35  |
Eclipse User |
|
|
|
Originally posted by: john.ormerod.erebor.co.uk
Hello
My customer wants to have a portal-like look and feel to the RCP app we
are building in Lotus Expeditor. A consequence of this is that they want
to change the colour of the title bar in each (standalone) view in a
perspective, according to the role of the logged-in user.
Is it possible?
I've searched high and low in Google and the View / IView parts without
any success.
Regards
--
John Ormerod
john.ormerod@erebor.co.uk
|
|
|
|
Re: Changing the colour of the title bar in a standalone view? [message #467279 is a reply to message #467266] |
Wed, 02 May 2007 06:23  |
Eclipse User |
|
|
|
Originally posted by: john.ormerod.erebor.co.uk
Thanks Tom - I will give this a go
John
Tom Seidel wrote:
> John Ormerod schrieb:
>> Hello
>> My customer wants to have a portal-like look and feel to the RCP app
>> we are building in Lotus Expeditor. A consequence of this is that they
>> want to change the colour of the title bar in each (standalone) view
>> in a perspective, according to the role of the logged-in user.
>>
>> Is it possible?
>>
>> I've searched high and low in Google and the View / IView parts
>> without any success.
>>
>> Regards
>>
>
> John,
>
> Yes, this is possible with the org.eclipse.ui.themes Extension-Point.
>
> Here's an example snippet
>
> <extension
> point="org.eclipse.ui.themes">
> <theme
> id="de.spiritlink.custom.ui.theme"
> name="Custom Theme">
> <colorOverride
> id="org.eclipse.ui.workbench.ACTIVE_TAB_BG_END"
> value="255,0,0">
> </colorOverride>
> <colorOverride
> id="org.eclipse.ui.workbench.ACTIVE_TAB_BG_START"
> value="0,255,0">
> </colorOverride>
> </theme>
> </extension>
>
> Setting the theme programmatically:
>
> PlatformUI.getWorkbench().getThemeManager().setCurrentTheme( "myThemeID");
>
--
John Ormerod
john.ormerod@erebor.co.uk
|
|
|
Powered by
FUDForum. Page generated in 0.03517 seconds