mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
NEW:update the style when the virtual tray is empty
Change-Id: I40fc05ce31ed9225e5dea6d080fdbff138b2f9d8
This commit is contained in:
parent
c1010e5d0e
commit
73d3b37979
4 changed files with 35 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue