Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2021-12-14 18:29:18 +0300
committerYuSanka <yusanka@gmail.com>2021-12-14 18:34:56 +0300
commit74cf1ed0f98ab033ce6156b88167c051183f638e (patch)
tree0aba74b28173f407cac6379e85b516e821312af7 /src/slic3r/GUI
parentb3d42df0f7a6b2ebf64e8fd6768fabac9b1dd9da (diff)
MsgDialog: Fixed text color under non-MSW platforms
Diffstat (limited to 'src/slic3r/GUI')
-rw-r--r--src/slic3r/GUI/MsgDialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/slic3r/GUI/MsgDialog.cpp b/src/slic3r/GUI/MsgDialog.cpp
index 4e2462d4b..6484ead73 100644
--- a/src/slic3r/GUI/MsgDialog.cpp
+++ b/src/slic3r/GUI/MsgDialog.cpp
@@ -131,7 +131,11 @@ static void add_msg_content(wxWindow* parent, wxBoxSizer* content_sizer, wxStrin
wxFont font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
wxFont monospace = wxGetApp().code_font();
+#ifdef _WIN32
wxColour text_clr = wxGetApp().get_label_clr_default();
+#else
+ wxColour text_clr = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT);
+#endif
wxColour bgr_clr = parent->GetBackgroundColour(); //wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW);
auto text_clr_str = wxString::Format(wxT("#%02X%02X%02X"), text_clr.Red(), text_clr.Green(), text_clr.Blue());
auto bgr_clr_str = wxString::Format(wxT("#%02X%02X%02X"), bgr_clr.Red(), bgr_clr.Green(), bgr_clr.Blue());