Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Styling menus and buttons
Styling menus and buttons [message #1722591] Sat, 06 February 2016 09:35 Go to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
Hi all,

since a while I am working on a product which contains a custom icon set
and supports two different themes: light and dark, inheriting from the
e4 css files. For the light theme dark icons are used, while the dark
theme has light icons. Note the product is still using compatibility
mode, no native e4 yet.

Now I am trying to cope with the SWT limitations of styling main menu,
context menus and buttons. Specifically I need to customise the font as
well as the foreground and background colours. From what I've tried
programmatically and read during web research there seems no way to get
this done in e3.

Can you please give me some advice about which options exist?

- Would switching to native e4 allow these styles? Is that possible if
diagrams made by Sirius/GMF/GEF are used?
- Any third party solution available which I could utilise?
- Any other ways to get around these limitations?

Thanks in advance,
Axel

[Updated on: Mon, 08 February 2016 13:43]

Report message to a moderator

Re: Styling menus and buttons [message #1722687 is a reply to message #1722591] Mon, 08 February 2016 09:36 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You can not color Menus/Buttons/Table-Header/Scrollbars in SWT so it
really does not matter if you used e4/Eclipse 4 Compat/... .

For scrollbars there's a trick used eg by the cleansheet L&F but the
other limitations still stay.

As long as you target SWT you are out of luck.

Tom

On 06.02.16 10:35, Axel Guckelsberger wrote:
> Hi all,
>
> since a while I am working on a product which contains a custom icon set
> and supports two different themes: light and dark, inheriting from the
> e4 css files. For the light theme dark icons are used, while the dark
> theme has light icons. Note the product is still using compatibility
> mode, no native e4 yet.
>
> Now I've trying to cope with the SWT limitations of styling main menu,
> context menus and buttons. Specifically I need to customise the font as
> well as the foreground and background colours. From what I've tried
> programmatically and read during web research there seems no way to get
> this done in e3.
>
> Can you please give me some advice about which options exist?
>
> - Would switching to native e4 allow these styles? Is that possible if
> diagrams made by Sirius/GMF/GEF are used?
> - Any third party solution available which I could utilise?
> - Any other ways to get around these limitations?
>
> Thanks in advance,
> Axel
Previous Topic:How to use native lib in an Eclipse RCP App. (Bundling OpenCV)
Next Topic:Error with SWT.MOZILLA browser on Windows
Goto Forum:
  


Current Time: Fri Apr 19 17:14:24 GMT 2024

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

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

Back to the top