From b9c53adddb13f7db37579b741211823f8c2e1dfc Mon Sep 17 00:00:00 2001 From: YuSanka Date: Wed, 2 Dec 2020 11:57:09 +0100 Subject: [PATCH] Linux specific, dark mode: Fixed a black text on a black background for the view mode buttons. --- src/slic3r/GUI/wxExtensions.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/wxExtensions.cpp b/src/slic3r/GUI/wxExtensions.cpp index 5674d2a2a..c754c8600 100644 --- a/src/slic3r/GUI/wxExtensions.cpp +++ b/src/slic3r/GUI/wxExtensions.cpp @@ -16,6 +16,12 @@ #include "Plater.hpp" #include "../Utils/MacDarkMode.hpp" +#ifdef __Linux__ +#define wxLinux true +#else +#define wxLinux false +#endif + #ifndef __WXGTK__// msw_menuitem_bitmaps is used for MSW and OSX static std::map msw_menuitem_bitmaps; #ifdef __WXMSW__ @@ -653,7 +659,7 @@ void ModeButton::focus_button(const bool focus) Slic3r::GUI::wxGetApp().normal_font(); SetFont(new_font); - SetForegroundColour(wxSystemSettings::GetColour(focus ? wxSYS_COLOUR_BTNTEXT : wxSYS_COLOUR_BTNSHADOW)); + SetForegroundColour(wxSystemSettings::GetColour(focus ? wxSYS_COLOUR_BTNTEXT : wxLinux ? wxSYS_COLOUR_GRAYTEXT : wxSYS_COLOUR_BTNSHADOW)); Refresh(); Update();