Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Changing the colour of the title bar in a standalone view?
Changing the colour of the title bar in a standalone view? [message #467238] Tue, 01 May 2007 16:35 Go to next message
Eclipse UserFriend
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 #467266 is a reply to message #467238] Wed, 02 May 2007 05:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tom.seidel.spiritlink.de

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");

--
Cheerz,
Tom
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:OpenNewJavaProjectWizardAction
Next Topic:RCP and Java Web Start
Goto Forum:
  


Current Time: Sat May 24 13:08:13 EDT 2025

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

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

Back to the top