Skip to main content

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: 2
Registered: June 2016
Junior Member

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



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:Generation of SWT based GUIs/Wizards
Next Topic:View
Goto Forum:

Current Time: Sat Apr 17 15:18:20 GMT 2021

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

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

Back to the top