Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » styling the menu and menu items?
styling the menu and menu items? [message #564053] Tue, 27 October 2009 19:35 Go to next message
Dave Combs is currently offline Dave CombsFriend
Messages: 21
Registered: July 2009
Junior Member
I was experimenting with e4 1.0. I ran Lars Vogel's examples to set up a first app, then to add some CSS styling to it. That all worked fine. I was trying to figure out, however, how to style the menu or menu items, which his examples don't cover. I tried adding a CSS selector 'Menu', and another one 'MenuItem', and neither of those had any effect. Any ideas whether I'm just doing something that's not possible, or how to actually style a menu?

Thanks!
Dave
Re: styling the menu and menu items? [message #564123 is a reply to message #564053] Wed, 28 October 2009 10:34 Go to previous messageGo to next message
Remy Suen is currently offline Remy SuenFriend
Messages: 462
Registered: July 2009
Senior Member
On Tue, 27 Oct 2009 15:35:33 -0400, Dave Combs wrote:
> Any ideas whether I'm just doing something that's not possible, or how
> to actually style a menu?

SWT does not expose API for changing a menu or menu item's colour so we
cannot do this with CSS. It's also not possible to use PaintListeners or
GCs so we're essentially stuck. I guess it might technically be possible
for a menu bar (of a shell) with a PaintListener on the shell maybe but
that's not been attempted yet I don't think.

Regards,
Remy
Re: styling the menu and menu items? [message #881225 is a reply to message #564123] Mon, 04 June 2012 07:17 Go to previous messageGo to next message
Gerald Rosenberg is currently offline Gerald RosenbergFriend
Messages: 106
Registered: July 2009
Senior Member
After 2+ years, does Remy's answer still stand correct? I did not find any corresponding bug report - not even a nofix.

If not fixed (yet), any practical suggestions on how to work around this?

Thanks,
Gerald
Re: styling the menu and menu items? [message #881342 is a reply to message #881225] Mon, 04 June 2012 11:22 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
No change. The are several open bug reports dating back years:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=168716
https://bugs.eclipse.org/bugs/show_bug.cgi?id=264531
https://bugs.eclipse.org/bugs/show_bug.cgi?id=293231
https://bugs.eclipse.org/bugs/show_bug.cgi?id=308931

It's been tried but proven difficult. Feel free to take up the torch.

Brian.
Previous Topic:Eclipse IDE as a pure E4 IDE
Next Topic:Customizing Toolbar Views
Goto Forum:
  


Current Time: Thu Apr 25 10:34:48 GMT 2024

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

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

Back to the top