mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 14:35:54 +08:00
TextInput: Implemented SysColorsChanged function
This commit is contained in:
parent
1fdfbf3921
commit
e4e19f1358
@ -142,6 +142,16 @@ void TextInput::SetSelection(long from, long to)
|
||||
text_ctrl->SetSelection(from, to);
|
||||
}
|
||||
|
||||
void TextInput::SysColorsChanged()
|
||||
{
|
||||
if (auto parent = this->GetParent()) {
|
||||
SetBackgroundColour(parent->GetBackgroundColour());
|
||||
SetForegroundColour(parent->GetForegroundColour());
|
||||
if (this->drop_down_icon.bmp().IsOk())
|
||||
this->drop_down_icon.sys_color_changed();
|
||||
}
|
||||
}
|
||||
|
||||
void TextInput::SetIcon(const wxBitmapBundle& icon_in)
|
||||
{
|
||||
icon = icon_in;
|
||||
|
@ -71,6 +71,8 @@ public:
|
||||
|
||||
void SetSelection(long from, long to);
|
||||
|
||||
void SysColorsChanged();
|
||||
|
||||
protected:
|
||||
virtual void OnEdit() {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user