Skip to content
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

When an app is running, Display.isSystemDarkTheme is not reporting changes (GTK) #1636

Open
nfalliere opened this issue Dec 5, 2024 · 0 comments

Comments

@nfalliere
Copy link

Describe the bug
The GTK implementation of Display.isSystemDarkTheme() is returning a boolean initialized once, when the Display is set up. If the theme is changed when the app is running, the value returned by isSystemDarkTheme() is stale and should be updated.

To Reproduce
Start a SWT app; check Display.isSystemDarkTheme(), which should match the current system theme; change the theme; check Display.isSystemDarkTheme(): nothing has changed.

Expected behavior
The GTK implementation of isSystemDarkTheme() should reflect changes in theme selection, as is the case on Windows.

Environment:

  1. Select the platform(s) on which the behavior is seen:
    • Windows (OK on Windows)
    • Linux
    • macOS (unverified on macOS)
  1. Additional OS info (e.g. OS version, Linux Desktop, etc)
    Tested on an up-to-date Ubuntu.

  2. JRE/JDK version

  3. JDK 17.

Version since
Tested with Eclipse 4.34 (December 2024).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant