From d54e5bd9d25ef117e2ca2f3288210181fe5865a2 Mon Sep 17 00:00:00 2001 From: "Michal Dziekonski (mdz)" Date: Sun, 8 Oct 2023 18:20:27 +0200 Subject: [PATCH] Fix object's list text color on Linux (GH-2086) (#2346) Co-authored-by: SoftFever --- src/slic3r/GUI/GUI_ObjectList.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/slic3r/GUI/GUI_ObjectList.cpp b/src/slic3r/GUI/GUI_ObjectList.cpp index 1090dc7ff7..24f44a12a1 100644 --- a/src/slic3r/GUI/GUI_ObjectList.cpp +++ b/src/slic3r/GUI/GUI_ObjectList.cpp @@ -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));