mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-04 04:24:04 -06:00
Add back control pool
This commit is contained in:
parent
0b9a6b5fe4
commit
1ff70be243
7 changed files with 162 additions and 27 deletions
|
@ -166,6 +166,7 @@ int ComboBox::Append(const wxString &item,
|
|||
|
||||
void ComboBox::DoClear()
|
||||
{
|
||||
SetIcon("drop_down");
|
||||
texts.clear();
|
||||
tips.clear();
|
||||
icons.clear();
|
||||
|
|
|
@ -102,6 +102,14 @@ void TextInput::SetIcon(const wxBitmap &icon)
|
|||
Rescale();
|
||||
}
|
||||
|
||||
void TextInput::SetIcon(const wxString &icon)
|
||||
{
|
||||
if (this->icon.name() == icon.ToStdString())
|
||||
return;
|
||||
this->icon = ScalableBitmap(this, icon.ToStdString(), 16);
|
||||
Rescale();
|
||||
}
|
||||
|
||||
void TextInput::SetLabelColor(StateColor const &color)
|
||||
{
|
||||
label_color = color;
|
||||
|
|
|
@ -42,6 +42,8 @@ public:
|
|||
|
||||
void SetIcon(const wxBitmap & icon);
|
||||
|
||||
void SetIcon(const wxString & icon);
|
||||
|
||||
void SetLabelColor(StateColor const &color);
|
||||
|
||||
void SetTextColor(StateColor const &color);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue