wxMac: wxTreeCtrl / wxTreeBook highlight color is not great (Issue #24605)

22 views
Skip to first unread message

Jon Evans

unread,
Jun 11, 2024, 10:16:36 PMJun 11
to wx-...@googlegroups.com, Subscribed

Description

The selected-item highlight color used in wxTreeCtrl and wxTreeBook is very low-contrast with the text in both light and dark modes on wxMac. Screenshots from treectrl sample:

Light mode:

image.png (view on web)

Dark mode:

image.png (view on web)

For comparison, wxListCtrl works ok:

image.png (view on web) image.png (view on web)

Platform and version information

  • wxWidgets version you use: 3.2.5
  • wxWidgets port you use: wxOSX
  • OS and its version: macOS 14.4


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/24605@github.com>

HenkDemper

unread,
Jun 21, 2024, 4:06:53 PM (14 days ago) Jun 21
to wx-...@googlegroups.com, Subscribed

I have the same issue here on macOS 14.5

I think the gray color that you are seeing is the unfocused color.
When selected and the control has focus, tree or list controls should be drawn with the system focus color, like blue in my case, which works fine in wxWidget 3.2.4:
Focus.png (view on web)
But since wxWidgets 3.2.5, at least wxListCtrl and wxTreeCtrl (and wxGenericDirCtrl using it) always show their selection in gray, so it is difficult to see which control (if you use multiple) currently has focus.
If the control looses focus, the selected items are drawn correctly in gray in both wxWidgets 3.2.4 and 3.2.5

Furthermore in the identically build listctrl.app and treectrl.app it seems keyboard interception is lost, only a short beep is sound when you press a key in 3.2.5. In wxWidgets 3.2.4 (see screenshot above) you will see keyboard notifications in the message pane as expected...

I also tested latest git snapshot today and the problems are both present.
It seems something focus colour & keyboard message handling is broken, at least for list and tree controls (text controls appear Ok) on Mac...


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/24605/2183382617@github.com>

Stefan Csomor

unread,
3:14 AM (6 hours ago) 3:14 AM
to wx-...@googlegroups.com, Subscribed

related to #24667


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/24605/2210327512@github.com>

Reply all
Reply to author
Forward
0 new messages