-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eclipse should be able to 'follow system theme' (light/dark) #2440
Comments
The IDE is already supposed to switch to dark theme when system is dark. So please provide details about your setup to hopefully reproduce this issue. |
It does switch between light/dark with a fresh workspace. But once a theme has been set it won't. If the In our RCP app we workaround this by deleting the |
Thanks for the info @mickaelistria ; been using Eclipse for around 20 years and always used theming. As @Phillipus says though, a theme was initially selected already in my installation so restarting after going to dark mode does not help. An explicit 'follow system theme' or similar would be very useful. I am not sure if disabling theming is supposed to use OS colors in dark mode, but it does not. I am using Gnome 47 in case that matters. |
As I said, all you have to do is delete the |
We could think about making this properly configurable through preferences, e.g.:
Or there could just be an additional "virtual" option in the themes drop-down menu for enabling to follow the system theme. |
That's what I do. Selecting this deletes the |
Sorry, I missed that comment. Sounds like a simple and sufficient approach to address this. |
More accurately it deletes the |
There used to be a "System" theme: https://eclipse.dev/eclipse/news/4.18/platform.html#system-theme |
A System theme is a different concept (at least on Windows). I think what we would want / need to have is the following:
Lines 602 to 613 in 5c9af91
However, simply doing that is not enough, because
To consider:
Technically, we would therefore need to:
|
@Phillipus - that does not work for me, for whatever reason. I removeds the existing file, closed Eclipse, and started it again but I was still in light mode while the OS was in dark mode. Regarding the wider discussion: I think ideally there would be a way to say 'follow System dark/light setting'. And yes, there may be multiple light and dark theme modes but for starters it would be great to be able to toggle between the build in dark and light modes through a virtual theme or checkbox in the preferences page. |
Which OS? Works for me on Windows and Mac (Linux might not work) |
Linux :-) Using Gnome 47.1 , to be more precise. |
In that case I'd say that the expected outcome will be...unpredictable. |
I can confirm that this follows the system theme on macOS, but it doesn't on Fedora KDE. |
Does it work for plain SWT application in Fedora KDE ? |
What I found out so far is
See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=564022 and my current workaround eclipse/chemclipse#1972. |
Let's make sure issue is not already fixed in latest builds first.
Suggestion
From a fresh installation and clean workspace:
I would like to be able to tell Eclipse to 'follow the system theme' and use a Light or Dark theme based on what the operating system preference is set to.
Community
The text was updated successfully, but these errors were encountered: