wxGrid grid lines invisible in dark mode (Issue #23768)

64 views
Skip to first unread message

PB

unread,
Aug 14, 2023, 8:24:28 AM8/14/23
to wx-...@googlegroups.com, Subscribed

Description

When wxGrid is used on Windows in dark mode (i.e., the cell background is black), the grid lines are not visible in the grid itself. The grid lines are visible in column and row headers (but perhaps too bright?):
wx-grid-dark

FWIW, both Microsoft Office Excel and LibreOffice Calc (in their last versions) show the grid itself white even when the Windows is in the dark mode and they are set to use the system theme (since the documents are often printed?):
excel-dark
calc-dark

Platform and version information

  • wxWidgets version: the current master
  • wxWidgets port: wxMSW
  • OS: Windows 10 22H2 v. 31.‎05.‎2020

I cannot test how wxGrid and Excel/Calc look on Linux or macOS.


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

PB

unread,
Aug 14, 2023, 1:54:43 PM8/14/23
to wx-...@googlegroups.com, Subscribed

I have also noticed another wxGrid dark mode issue. The lines for the columns and rows headers and the grid itself are not aligned (off by one pixel or so). This can be tested with unmodified grid sample, changing grid line colour from its Colours menu.
wx-grid-dark-red-lines
vs
wx-grid-red-lines


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

VZ

unread,
Aug 23, 2023, 4:21:55 PM8/23/23
to wx-...@googlegroups.com, Subscribed

I'm not sure what colours should be used for the grid in dark mode. Any opinions?


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

Daniel Kulp

unread,
Aug 25, 2023, 1:12:22 PM8/25/23
to wx-...@googlegroups.com, Subscribed

My preference would be to match macOS for consistency, but not sure it matters. The borders around the headers and everything would need adjusting.
Screenshot 2023-08-25 at 1 10 57 PM


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

VZ

unread,
Aug 26, 2023, 6:41:12 AM8/26/23
to wx-...@googlegroups.com, Subscribed

Sorry, but what does macOS use?


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

Daniel Kulp

unread,
Aug 26, 2023, 7:15:53 AM8/26/23
to wx-...@googlegroups.com, Subscribed

Actually, not sure it would work on Windows. On macOS, the row/col headers seem to be a lighter 0x32 grey (I assume wxSYS_COLOUR_BTNFACE) and the background of the cells are a darker 0x1E ( I assume wxSYS_COLOUR_LISTBOX). The gridlines match the row/col headers. The 3d highlight on the headers are 0x26 and 0x42.

Windows doesn't seem to use different colors for the headers compared to the cells. Thus, using the header color wouldn't work there.


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

Reply all
Reply to author
Forward
0 new messages