mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
NEW:update the style when the virtual tray is empty
Change-Id: I40fc05ce31ed9225e5dea6d080fdbff138b2f9d8
This commit is contained in:
@@ -631,6 +631,13 @@ void AMSMaterialsSetting::on_select_close(wxCommandEvent &event)
|
||||
void AMSMaterialsSetting::set_color(wxColour color)
|
||||
{
|
||||
//m_clrData->SetColour(color);
|
||||
m_clr_picker->is_empty(false);
|
||||
m_clr_picker->set_color(color);
|
||||
}
|
||||
|
||||
void AMSMaterialsSetting::set_empty_color(wxColour color)
|
||||
{
|
||||
m_clr_picker->is_empty(true);
|
||||
m_clr_picker->set_color(color);
|
||||
}
|
||||
|
||||
@@ -1032,6 +1039,13 @@ void ColorPicker::doRender(wxDC& dc)
|
||||
dc.DrawBitmap(m_bitmap_border, wxPoint(0, 0));
|
||||
}
|
||||
}
|
||||
|
||||
if (m_is_empty) {
|
||||
dc.SetTextForeground(*wxBLACK);
|
||||
auto tsize = dc.GetTextExtent("?");
|
||||
auto pot = wxPoint((size.x - tsize.x) / 2, (size.y - tsize.y) / 2);
|
||||
dc.DrawText("?", pot);
|
||||
}
|
||||
}
|
||||
|
||||
ColorPickerPopup::ColorPickerPopup(wxWindow* parent)
|
||||
|
||||
Reference in New Issue
Block a user