wxMSW wxTextCtrl using wxTE_RICH2 results in incorrect dark mode appearance (Issue #26551)

16 views
Skip to first unread message

Ryan Ogurek

unread,
Jun 2, 2026, 12:10:07 AM (yesterday) Jun 2
to wx-...@googlegroups.com, Subscribed
ryancog created an issue (wxWidgets/wxWidgets#26551)

Description

Whenever dark mode is enabled for MSW, and a text ctrl with wxTE_RICH2 is disabled, its background appears with the light mode disabled background color, with the text appearing "highlighted" in dark mode (enabled) colors.

Expected vs observed behaviour:

The control should appear dark, same as without wxTE_RICH2.
This also occurs with wxTE_RICH. It appears correctly without wxTE_RICH or wxTE_RICH2

Patch or snippet allowing to reproduce the problem:

Adding MSWEnableDarkMode() to the Widgets sample allows this to be reproduced.

To Reproduce:

  1. Run Widgets sample w/ dark mode enabled.
  2. Disable the control w/ menu
  3. Switch "Control kind" to rich edit or rich edit 2.0

Platform and version information

  • wxWidgets version you use: 3.3.3 master
  • wxWidgets port you use: wxMSW
  • OS and its version: Windows 10


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26551@github.com>

Ryan Ogurek

unread,
Jun 2, 2026, 12:10:30 AM (yesterday) Jun 2
to wx-...@googlegroups.com, Subscribed
ryancog left a comment (wxWidgets/wxWidgets#26551)
image.png (view on web)


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26551/4598641946@github.com>

VZ

unread,
Jun 2, 2026, 8:21:15 AM (yesterday) Jun 2
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26551)

I can indeed see this, thanks. Not sure if #26516 changes anything here, will look after that one is merged.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26551/4602314644@github.com>

Ryan Ogurek

unread,
Jun 2, 2026, 1:02:14 PM (yesterday) Jun 2
to wx-...@googlegroups.com, Subscribed
ryancog left a comment (wxWidgets/wxWidgets#26551)

It does look like those changes are expected to fix this, but will wait and see.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26551/4604822449@github.com>

Reply all
Reply to author
Forward
0 new messages