mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-11 19:17:33 +00:00
Add back control pool
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user