Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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:Combo style
Next Topic:qooxdoo 0.7.4
Goto Forum:
  


Current Time: Wed May 28 21:25:55 EDT 2025

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

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

Back to the top