Fix object's list text color on Linux (GH-2086) (#2346)

Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
Michal Dziekonski (mdz) 2023-10-08 18:20:27 +02:00 committed by GitHub
parent 6962cd6577
commit d54e5bd9d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,6 +91,13 @@ ObjectList::ObjectList(wxWindow* parent) :
wxDataViewCtrl(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_MULTIPLE)
{
wxGetApp().UpdateDVCDarkUI(this, true);
#ifdef __linux__
// Temporary fix for incorrect dark mode application regarding list item's text color.
// See: https://github.com/SoftFever/OrcaSlicer/issues/2086
this->SetForegroundColour(*wxBLACK);
#endif
SetFont(Label::sysFont(13));
#ifdef __WXMSW__
GenericGetHeader()->SetFont(Label::sysFont(13));