FIX: The display of _ is not clear in dark mode

jira: STUDIO-4525

In dark mode, the second '_' in the cavity temperature '_/_' display is
not clear.

Signed-off-by: wenjie.guo <wenjie.guo@bambulab.com>
Change-Id: I43547371d4c824c2820eb0cb88d67dd2c4dc4678
This commit is contained in:
wenjie.guo 2023-10-19 17:38:06 +08:00 committed by Lane.Wei
parent ae40f0fc4d
commit 017c8b5c93
2 changed files with 8 additions and 2 deletions

View File

@ -1958,9 +1958,14 @@ void StatusPanel::update(MachineObject *obj)
if (obj->is_support_chamber_edit) {
m_tempCtrl_chamber->SetReadOnly(false);
m_tempCtrl_chamber->Enable();
wxCursor cursor(wxCURSOR_IBEAM);
m_tempCtrl_chamber->GetTextCtrl()->SetCursor(cursor);
} else {
m_tempCtrl_chamber->SetReadOnly(true);
wxCursor cursor(wxCURSOR_ARROW);
m_tempCtrl_chamber->GetTextCtrl()->SetCursor(cursor);
if (obj->get_printer_series() == PrinterSeries::SERIES_X1) {
m_tempCtrl_chamber->SetTagTemp(TEMP_BLANK_STR);
}if (obj->get_printer_series() == PrinterSeries::SERIES_P1P)
@ -1969,7 +1974,8 @@ void StatusPanel::update(MachineObject *obj)
m_tempCtrl_chamber->GetTextCtrl()->SetValue(TEMP_BLANK_STR);
}
m_tempCtrl_chamber->Disable();
//m_tempCtrl_chamber->Disable();
}
if (!obj->dev_connection_type.empty()) {

View File

@ -117,7 +117,7 @@ void TempInput::Create(wxWindow *parent, wxString text, wxString label, wxString
}
});
text_ctrl->SetFont(Label::Body_13);
text_ctrl->SetForegroundColour(text_color.colorForStates(StateColor::Normal));
text_ctrl->SetForegroundColour(StateColor::darkModeColorFor(*wxBLACK));
if (!normal_icon.IsEmpty()) { this->normal_icon = ScalableBitmap(this, normal_icon.ToStdString(), 16); }
if (!actice_icon.IsEmpty()) { this->actice_icon = ScalableBitmap(this, actice_icon.ToStdString(), 16); }
this->degree_icon = ScalableBitmap(this, "degree", 16);