FIX: support dark mode for nozzle

jira: [STUDIO-9384]
Change-Id: I9fa2ae969f1ae3210773ab5db590595fd27bd3d8
This commit is contained in:
xin.zhang 2025-01-01 14:13:24 +08:00 committed by lane.wei
parent f1445ff047
commit 0d2733db0b
1 changed files with 8 additions and 4 deletions

View File

@ -436,8 +436,10 @@ void TempInput::render(wxDC &dc)
dc.SetFont(::Label::Body_12);
auto sepSize = dc.GetMultiLineTextExtent(wxString("L"));
dc.SetTextForeground(*wxWHITE);
dc.SetTextBackground(*wxWHITE);
const wxColour& clr = Slic3r::GUI::wxGetApp().dark_mode() ? StateColor::darkModeColorFor(*wxWHITE) : *wxWHITE;
dc.SetTextForeground(clr);
dc.SetTextBackground(clr);
dc.DrawText(wxString("L"), pt.x + (szIcon.x - sepSize.x) / 2, (size.y - sepSize.y) / 2);
pt.x += szIcon.x + 3;
}
@ -449,8 +451,10 @@ void TempInput::render(wxDC &dc)
dc.SetFont(::Label::Body_12);
auto sepSize = dc.GetMultiLineTextExtent(wxString("R"));
dc.SetTextForeground(*wxWHITE);
dc.SetTextBackground(*wxWHITE);
const wxColour& clr = Slic3r::GUI::wxGetApp().dark_mode() ? StateColor::darkModeColorFor(*wxWHITE) : *wxWHITE;
dc.SetTextForeground(clr);
dc.SetTextBackground(clr);
dc.DrawText(wxString("R"), pt.x + (szIcon.x - sepSize.x) / 2, (size.y - sepSize.y) / 2);
pt.x += szIcon.x + 3;
}