Community
Participate
Working Groups
Due to mapping to native widgets, currently it is not possible to style the menu bar and table headers using css. Example: If you want to style an application with a dark style, very common in AIR/Flash, under Windows the very light Menu bar and table headers look strange, see http://toedter.com/blog/wp-content/uploads/2008/10/e4-contacts-demo-css-dark-small.png Would it be a possible workaround to provide optional custom SWT widgets, which could be styled using css and replace the native menu bar and table headers in a styled application?
Steve, what are our styling options here? Is there API available on *some* platforms that we could use?
Obviously, styling the menu bar makes no sense on the Mac. I had hoped to get to this for Eclipse 3.5 but it seems I am out of time. I have some ideas about how this would be implemented.
(In reply to comment #2) > Obviously, styling the menu bar makes no sense on the Mac. I had hoped to get > to this for Eclipse 3.5 but it seems I am out of time. Are you saying you think we could support more sophisticated styling for many platforms in 3.6 (except maybe Mac)?
We can't/shouldn't change the color and font of the Mac menu bar. As for the rest, I'd like to implement custom draw.
This is interesting as we often have requests for things like the ability to drop down a menu, and then right-click and get more options. I would be nice if UI supported either native menus or menus that could be styled and clicked and other things. PW
Is there any chance to get this in the next weeks/month?
(In reply to comment #6) > Is there any chance to get this in the next weeks/month? We are passed the deadline for new features in this release cycle. It is not possible change all colors in some of the natives control. We can't implement this.
I think this bug is mixing two feature requests, one for menus and one for table headers. Maybe we should open a separate bug for table header styling (which I personally think is more important than menu styling).
I filed this bug to make my e4 contacts demo look better. But to really support themes different from the host OS with SWT css styling, also the other native SWT controls like Button, Scrollbar etc. have to be stylable as well. IMHO this can only be done when providing CXXX (CButton, etc.) implementations that are not rendered using native components.
As suggest by Mike Wilson we should have separate bugs for the individual features. I opened Bug 384906 for the styling of table headers and suggest that this bug cover the styling of menus.
*** Bug 308931 has been marked as a duplicate of this bug. ***
*** Bug 430997 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 168716 ***