> GTK's `PlatformSupport` class only listens to the `gtk-theme-name` signal to > detect theme changes. However, it seems that with KDE, color changes are > posted with a delay after the theme change. Since we only collect platform > preferences when the theme name was changed, we can miss delayed color > changes. > > The fix is to also listen to a changed style context. The style context's > `changed` signal can fire multiple times, so we don't collect the new > preferences right away, but schedule them to be collected in an idle callback. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Michael Strauß has updated the pull request incrementally with one additional commit since the last revision: use GtkStyleContext instead of GtkStyle ------------- Changes: - all: https://git.openjdk.org/jfx/pull/2372/files - new: https://git.openjdk.org/jfx/pull/2372/files/610af1fc..071e15dd Webrevs: - full: https://webrevs.openjdk.org/?repo=jfx&pr=2372&range=01 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=2372&range=00-01 Stats: 30 lines in 2 files changed: 1 ins; 5 del; 24 mod Patch: https://git.openjdk.org/jfx/pull/2372.diff Fetch: git fetch https://git.openjdk.org/jfx.git pull/2372/head:pull/2372 PR: https://git.openjdk.org/jfx/pull/2372
