RFR: 7056: Fix dark mode

Ashley duke at openjdk.org
Tue Oct 18 11:39:05 UTC 2022


On Sun, 16 Jan 2022 15:32:33 GMT, Brice Dutheil <bdutheil at openjdk.org> wrote:

> This change allows a user of the JMC RCP application to switch the appearance with the default Eclipse themes.
> 
> Those are shipped via the `org.eclipse.ui.themes` and `org.eclipse.e4.ui.css.swt.theme` plugin.
> In order to activate them all that is is required is to add the above in the application feature file, and to declare them in the application manifest file.
> 
> 
> 
> **After**
> ![Screenshot 2022-01-16 at 16 23 46](https://user-images.githubusercontent.com/803621/149666554-3016effc-b527-4dd7-aa6b-baa07a9569ad.png)
> ![Screenshot 2022-01-16 at 16 26 21](https://user-images.githubusercontent.com/803621/149666560-cab76fc9-dd9a-4977-9fe7-0a7dc99335c5.png)
> 
> 
> 
> **Before**
> ![Screenshot 2022-01-16 at 16 24 45](https://user-images.githubusercontent.com/803621/149666542-b8e22717-a797-44b6-9805-30b9c14fb9fa.png)
> There's no theme, as such the combo box doesn't open either.

Looks like a temporary workaround for this is to (at least for GTK) set the `GTK_THEME` environment variable before starting jmc.


GTK_THEME="Adwaita:light" jmc &
GTK_THEME="Adwaita:dark" jmc &

![image](https://user-images.githubusercontent.com/73482956/196418680-764f48de-046e-4fc5-99d4-fb68718bab79.png)

-------------

PR: https://git.openjdk.org/jmc/pull/362


More information about the jmc-dev mailing list