Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Custom "theme" for MenuManager?(How to change apperance of menus)
icon5.gif  Custom "theme" for MenuManager? [message #658187] Mon, 07 March 2011 10:33 Go to next message
Peer  Törngren is currently offline Peer TörngrenFriend
Messages: 14
Registered: July 2009
Location: Sweden
Junior Member
Is there some way to change the appearance of menus in an RCP app?

I would like to gain full control of all colors used in menus (both "main" and "context" menus), defining my own background and foreground colors, the color of selected menu item and the icon (arrow) used to indicate a sub-menu. I would also like to paint a gradient strip as background for the menu images, and perhaps a few other tricks that could be done by adding a PaintListener.

However, I don't see any straight-forward way of redefining colors or adding the necessary listeners.

Is there any way to tweak the appearance of Menus without re-implementing the MenuManager and/or related classes (Menu, ...)?
Re: Custom "theme" for MenuManager? [message #658195 is a reply to message #658187] Mon, 07 March 2011 11:31 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
No - SWT has not (yet) support for this. e4 has brought such a change on
the table since sometime but until now the problem has not been solved
and my last information towards this is would require some fundamental
changes in SWT.

Tom

Am 07.03.11 11:33, schrieb Peer T:
> Is there some way to change the appearance of menus in an RCP app?
> I would like to gain full control of all colors used in menus (both
> "main" and "context" menus), defining my own background and foreground
> colors, the color of selected menu item and the icon (arrow) used to
> indicate a sub-menu. I would also like to paint a gradient strip as
> background for the menu images, and perhaps a few other tricks that
> could be done by adding a PaintListener.
>
> However, I don't see any straight-forward way of redefining colors or
> adding the necessary listeners.
>
> Is there any way to tweak the appearance of Menus without
> re-implementing the MenuManager and/or related classes (Menu, ...)?
Re: Custom "theme" for MenuManager? [message #658200 is a reply to message #658195] Mon, 07 March 2011 11:49 Go to previous message
Peer  Törngren is currently offline Peer TörngrenFriend
Messages: 14
Registered: July 2009
Location: Sweden
Junior Member
Ok, thanks for prompt reply, although I would have wished for a different one Smile

As for e4, I sincerely hope this will be addressed. My understanding is that support for "themes" will be a main enhancement in e4 - being stuck with the same old OS menus would be a severe restriction.

Would anyone perhaps know of any third party menus that I could use instead of writing my own from scratch?
Previous Topic:[databinding] JUnit tests, howto ?
Next Topic:Focus listener - inconsistent behavior
Goto Forum:
  


Current Time: Fri Apr 19 03:42:22 GMT 2024

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

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

Back to the top