From ea1d7c8105eafa1be3cafbd89dc107b9c40d7c9a Mon Sep 17 00:00:00 2001 From: tao wang Date: Fri, 14 Feb 2025 21:34:32 +0800 Subject: [PATCH] ENH:Optimize dark mode jira:[none] Change-Id: I7d122a7148b9288bda2f6e651b05826756050311 --- src/slic3r/GUI/SelectMachine.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/SelectMachine.cpp b/src/slic3r/GUI/SelectMachine.cpp index b98cd92b4..959b7ea8e 100644 --- a/src/slic3r/GUI/SelectMachine.cpp +++ b/src/slic3r/GUI/SelectMachine.cpp @@ -583,6 +583,7 @@ SelectMachineDialog::SelectMachineDialog(Plater *plater) m_advanced_options_title = new Label(scroll_area, _L("Advanced Options")); m_advanced_options_title->SetFont(::Label::Body_13); + m_advanced_options_title->SetForegroundColour(StateColor::darkModeColorFor(*wxBLACK)); m_advanced_options_icon = new wxStaticBitmap(scroll_area, wxID_ANY, create_scaled_bitmap("advanced_option1", scroll_area, 18), wxDefaultPosition, wxSize(FromDIP(18), FromDIP(18))); sizer_advanced_options_title->Add(m_hyperlink, 0, wxALIGN_CENTER, 0); @@ -2963,10 +2964,10 @@ void SelectMachineDialog::on_timer(wxTimerEvent &event) void SelectMachineDialog::enable_advanced_option(bool en) { if (en) { - m_advanced_options_title->SetForegroundColour(wxColour(38, 46, 48)); + m_advanced_options_title->SetForegroundColour(StateColor::darkModeColorFor(*wxBLACK)); m_advanced_options_icon->SetBitmap(create_scaled_bitmap("advanced_option1", this, 18)); } else { - m_advanced_options_title->SetForegroundColour(0xCECECE); + m_advanced_options_title->SetForegroundColour(StateColor::darkModeColorFor(0x6B6B6B)); m_advanced_options_icon->SetBitmap(create_scaled_bitmap("advanced_option1_disable", this, 18)); } }