Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to get colors of GTK3 Adwaita Dark theme in SWT 4.6M6+
How to get colors of GTK3 Adwaita Dark theme in SWT 4.6M6+ [message #1749822] Mon, 12 December 2016 22:03
Oliver Meier is currently offline Oliver MeierFriend
Messages: 3
Registered: June 2016
Junior Member
Hello

I developed an application using SWT 4.6M5 / GTK3 in Fedora 23 using the Adwaita Dark theme in Gnome3.
I know that a lot of changes went into the GTK 3 color management since SWT 4.6M6, so it makes sense to me that since the release of SWT 4.6 I can't get the correct colors anymore (using display.getSystemColor(), etc..). SWT4.6M6 does not work with the GTK version shipped with Fedora 24.

Of course hard-coding the dark theme colors is possible, but tedious (if someone knows an easy way to get the colors from gnome, than this would probably be the solution for me for now).

Is there a better solution?

Also the behaviour of the attached demo window looks like a bug.

  • First button colors are left alone
  • Second button and text field are set with their own background color

btn_2.setBackground(btn_2.getBackground());

index.php/fa/27844/0/

Are there any initialisations I have to do manually to get the correct colors?

[Updated on: Fri, 23 December 2016 02:37]

Report message to a moderator

Previous Topic:[duplicate, sorry] How to get Adwaita Dark theme colors with SWT 4.6+ GTK3
Next Topic:View
Goto Forum:
  


Current Time: Fri Dec 15 14:18:14 GMT 2017

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

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