Skip to main content


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] Thu, 18 December 2008 04:01 Go to next message
Terry  is currently offline Terry Friend
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 09:30 Go to previous messageGo to next message
Holger Staudacher is currently offline Holger StaudacherFriend
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 17:08 Go to previous messageGo to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
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 11:08 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
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 15:17 Go to previous message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
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:Combo style
Next Topic:qooxdoo 0.7.4
Goto Forum:
  


Current Time: Fri Mar 29 11:03:57 GMT 2024

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

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

Back to the top