mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
FIX: background color of text ctrl when disabled
Change-Id: I904a6ea78a692e2f511857d908c98ffa8f8b1bc8
This commit is contained in:
@@ -157,6 +157,7 @@ bool SpinInput::Enable(bool enable)
|
|||||||
wxCommandEvent e(EVT_ENABLE_CHANGED);
|
wxCommandEvent e(EVT_ENABLE_CHANGED);
|
||||||
e.SetEventObject(this);
|
e.SetEventObject(this);
|
||||||
GetEventHandler()->ProcessEvent(e);
|
GetEventHandler()->ProcessEvent(e);
|
||||||
|
text_ctrl->SetBackgroundColour(background_color.colorForStates(state_handler.states()));
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -150,6 +150,7 @@ bool TextInput::Enable(bool enable)
|
|||||||
wxCommandEvent e(EVT_ENABLE_CHANGED);
|
wxCommandEvent e(EVT_ENABLE_CHANGED);
|
||||||
e.SetEventObject(this);
|
e.SetEventObject(this);
|
||||||
GetEventHandler()->ProcessEvent(e);
|
GetEventHandler()->ProcessEvent(e);
|
||||||
|
text_ctrl->SetBackgroundColour(background_color.colorForStates(state_handler.states()));
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user