From 234e63a637c533cedd8f13df255cc676bdbffa80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dzieko=C5=84ski?= Date: Sat, 7 Oct 2023 02:02:03 +0200 Subject: [PATCH] Fix object's list text color on Linux (GH-2086) --- 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 1090dc7ff74..24f44a12a10 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));