Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to change the color of toolbar?
How to change the color of toolbar? [message #116135] Wed, 17 December 2008 23:01 Go to next message
Terry  is currently offline Terry
Messages: 19
Registered: July 2009
Junior Member
Hi,

How to change the color of toolbar and status line, and how to add
background image to them?
Toolbar and status line colors could be set by the following method, but the
perpective bar will disappear.

IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
toolbar = configurer.createCoolBarControl(shell);
page = configurer.createPageComposite(shell);
statusline = configurer.createStatusLine(shell);

Thanks,
Terry
Re: How to change the color of toolbar? [message #116176 is a reply to message #116135] Thu, 18 December 2008 04:30 Go to previous messageGo to next message
Holger Staudacher is currently offline Holger Staudacher
Messages: 166
Registered: July 2009
Senior Member
Hi Terry,
did you have tried to style these components with theming?

If not, take a look at this:
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.rap.help/help/html/advanced/theming.html

Regards,
Holger


On

2008-12-18 05:01:20 +0100, Terry Zhang <terry_zhang@i-len.com> said:

> Hi,
>
> How to change the color of toolbar and status line, and how to add
> background image to them?
> Toolbar and status line colors could be set by the following method, but the
> perpective bar will disappear.
>
> IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
> toolbar = configurer.createCoolBarControl(shell);
> page = configurer.createPageComposite(shell);
> statusline = configurer.createStatusLine(shell);
>
> Thanks,
> Terry
Re: How to change the color of toolbar? [message #116761 is a reply to message #116176] Fri, 19 December 2008 12:08 Go to previous messageGo to next message
Setya Mising name is currently offline Setya Mising name
Messages: 486
Registered: July 2009
Senior Member
Hi,

In an attempt to provide workaround for Bug#232510, I need to change the
background color of the toolbar to match its parent color, but since I
don't want to change all toolbar, I have to assign variant, but I don't
know how to do this since the toolbar was created via ToolbarManager and
not exposed directly.

Please help.

Regards,

Setya
Re: How to change the color of toolbar? [message #116890 is a reply to message #116761] Mon, 22 December 2008 06:08 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger Herrmann
Messages: 563
Registered: July 2009
Senior Member
ToolBarManager#getControl() should return the tool bar.

HTH
Rüdiger

Setya wrote:
> Hi,
>
> In an attempt to provide workaround for Bug#232510, I need to change the
> background color of the toolbar to match its parent color, but since I
> don't want to change all toolbar, I have to assign variant, but I don't
> know how to do this since the toolbar was created via ToolbarManager and
> not exposed directly.
>
> Please help.
>
> Regards,
>
> Setya
>
Re: How to change the color of toolbar? [message #116944 is a reply to message #116890] Mon, 22 December 2008 10:17 Go to previous message
Setya Mising name is currently offline Setya Mising name
Messages: 486
Registered: July 2009
Senior Member
Hi,

> ToolBarManager#getControl() should return the tool bar.

Thanks, I overlook this since my variable refers to IToolBarManager, but
accessing implementation rather than its interface doesn't comfort me.

I hope the bug will be fixed soon.


Regards,

Setya
Previous Topic:Help with custom widget "example GMap"
Next Topic:JNDI-Context on Tomcat 5.5
Goto Forum:
  


Current Time: Fri Aug 22 23:43:04 EDT 2014

Powered by FUDForum. Page generated in 0.01952 seconds