How to get colors of GTK3 Adwaita Dark theme in SWT 4.6M6+ [message #1749822] |
Mon, 12 December 2016 22:03 |
Oliver Meier Messages: 2 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());
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
|
|
|
Powered by
FUDForum. Page generated in 0.03350 seconds