mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 17:27:52 -06:00
Added tooltips for reverse buttons
* Corrected default size of undo buttons for GTK * Experiment with rich tooltips
This commit is contained in:
parent
7083f58326
commit
88dadcec78
3 changed files with 60 additions and 6 deletions
|
@ -20,8 +20,12 @@ namespace Slic3r { namespace GUI {
|
|||
|
||||
void Field::PostInitialize(){
|
||||
auto color = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW);
|
||||
m_Undo_btn = new wxButton(m_parent, wxID_ANY, "", wxDefaultPosition, wxSize(16, 16), wxNO_BORDER);
|
||||
m_Undo_to_sys_btn = new wxButton(m_parent, wxID_ANY, "", wxDefaultPosition, wxSize(16, 16), wxNO_BORDER);
|
||||
auto sz = 16;
|
||||
#ifdef __WXGTK__
|
||||
sz = 28
|
||||
#endif // __WXGTK__
|
||||
m_Undo_btn = new wxButton(m_parent, wxID_ANY, "", wxDefaultPosition, wxSize(sz,sz), wxNO_BORDER);
|
||||
m_Undo_to_sys_btn = new wxButton(m_parent, wxID_ANY, "", wxDefaultPosition, wxSize(sz,sz), wxNO_BORDER);
|
||||
if (wxMSW) {
|
||||
m_Undo_btn->SetBackgroundColour(color);
|
||||
m_Undo_to_sys_btn->SetBackgroundColour(color);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue