Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 264531 - [CSS] Provide css styling for SWT menu bar
Summary: [CSS] Provide css styling for SWT menu bar
Status: CLOSED DUPLICATE of bug 168716
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.0   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 308931 430997 (view as bug list)
Depends on:
Blocks: 260408 384907
  Show dependency tree
 
Reported: 2009-02-11 10:34 EST by Kai Toedter CLA
Modified: 2014-03-25 07:45 EDT (History)
14 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Toedter CLA 2009-02-11 10:34:18 EST
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?
Comment 1 Kevin McGuire CLA 2009-02-11 13:05:08 EST
Steve, what are our styling options here?  Is there API available on *some* platforms that we could use? 
Comment 2 Steve Northover CLA 2009-02-11 13:46:44 EST
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.
Comment 3 Kevin McGuire CLA 2009-02-11 16:52:18 EST
(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)?
Comment 4 Steve Northover CLA 2009-02-11 18:13:21 EST
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.
Comment 5 Paul Webster CLA 2009-02-12 07:56:05 EST
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
Comment 6 Kai Toedter CLA 2010-06-16 04:00:29 EDT
Is there any chance to get this in the next weeks/month?
Comment 7 Felipe Heidrich CLA 2010-06-16 16:51:35 EDT
(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.
Comment 8 Lars Vogel CLA 2012-07-11 06:36:16 EDT
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).
Comment 9 Kai Toedter CLA 2012-07-11 09:07:06 EDT
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.
Comment 10 Lars Vogel CLA 2012-07-12 05:12:58 EDT
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.
Comment 11 Lars Vogel CLA 2013-07-23 16:16:12 EDT
*** Bug 308931 has been marked as a duplicate of this bug. ***
Comment 12 Lars Vogel CLA 2014-03-24 07:55:42 EDT
*** Bug 430997 has been marked as a duplicate of this bug. ***
Comment 13 Lars Vogel CLA 2014-03-25 07:45:36 EDT

*** This bug has been marked as a duplicate of bug 168716 ***