wxListCtrl does not react to on-the-fly dark-mode vs light-mode switches (Issue #25007)

10 views
Skip to first unread message

Christian Beier

unread,
Dec 16, 2024, 2:57:25 PM (4 days ago) Dec 16
to wx-...@googlegroups.com, Subscribed

Description

wxListCtrl from wxWidgets v3.2.6 does not react to on-the-fly dark-mode vs light-mode switches

Bug description:

wxListCtrl on GTK retains the original fore- and background colours on switching between light and dark mode while the application is running. When the application is restarted, the colours are OK, i.e. in line with other widgets.

Expected vs observed behaviour:

Some screenshots of https://github.com/wxWidgets/wxWidgets/tree/master/samples/listctrl showing the issue:

app started in light mode, good

grafik.png (view on web)

switched to dark mode while app is running, bad

grafik.png (view on web)

app started in dark mode, good

grafik.png (view on web)

Stack trace:

N/A

Patch or snippet allowing to reproduce the problem:

https://github.com/wxWidgets/wxWidgets/tree/master/samples/listctrl shows the behaviour.

To Reproduce:

See above. FYI I also checked listrctrl example on MacOS, issue is not present there so seems to be GTK-specific.

Platform and version information

  • wxWidgets version you use: 3.2.6
  • wxWidgets port you use: wxGTK
  • OS and its version: Debian 12
    • GTK version: 3.24.38
    • Which GDK backend is used: happens with both, checked this
    • Desktop environment : Gnome
    • Current theme: Adwaita


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25007@github.com>

Reply all
Reply to author
Forward
0 new messages