Fix custom foreground colour of selected items in dark mode Keep the item colour instead of unconditionally replacing it with the highlight colour in dark mode too, for consistency with white mode. Closes #25633.
Document wxObjectRefData as a typedef (vs class) While this is actually more true to reality, this also helps work around an issue with Doxygen 1.15.0 (and wxPython builds). See: https://github.com/doxygen/doxygen/issues/11889 Closes #26033.
| ... | ... | @@ -5,7 +5,7 @@ |
| 5 | 5 | // Licence: wxWindows licence
|
| 6 | 6 | /////////////////////////////////////////////////////////////////////////////
|
| 7 | 7 | |
| 8 | -/** @class wxObjectRefData
|
|
| 8 | +/** @typedef wxObjectRefData
|
|
| 9 | 9 | |
| 10 | 10 | This class is just a typedef to wxRefCounter and is used by wxObject.
|
| 11 | 11 |
| ... | ... | @@ -3408,7 +3408,7 @@ void HandleItemPaint(wxListCtrl* listctrl, LPNMLVCUSTOMDRAW pLVCD) |
| 3408 | 3408 | ? wxColourToRGB(attr->GetTextColour())
|
| 3409 | 3409 | : wxColourToRGB(listctrl->GetTextColour());
|
| 3410 | 3410 | pLVCD->clrTextBk = clrFullBG;
|
| 3411 | - if ( nmcd.uItemState & CDIS_SELECTED )
|
|
| 3411 | + if ( nmcd.uItemState & CDIS_SELECTED && !(attr && attr->HasTextColour()) )
|
|
| 3412 | 3412 | pLVCD->clrText = wxColourToRGB(wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT));
|
| 3413 | 3413 | if ( !(nmcd.uItemState & CDIS_SELECTED) && !(nmcd.uItemState & CDIS_HOT)
|
| 3414 | 3414 | && attr && attr->HasBackgroundColour() )
|
—
View it on GitLab.
You're receiving this email because of your account on gitlab.com. Manage all notifications · Help