diff --git a/src/slic3r/GUI/Widgets/SideButton.cpp b/src/slic3r/GUI/Widgets/SideButton.cpp index e387f33cf..e14cf7cb9 100644 --- a/src/slic3r/GUI/Widgets/SideButton.cpp +++ b/src/slic3r/GUI/Widgets/SideButton.cpp @@ -22,11 +22,9 @@ SideButton::SideButton(wxWindow* parent, wxString text, wxString icon, long stly extra_size = wxSize(38, 10); text_margin = 15; #endif - + icon_offset = 0; text_orientation = HO_Left; - - border_color.append(0x6B6B6B, StateColor::Disabled); border_color.append(wxColour(23, 129, 63), StateColor::Pressed); @@ -208,7 +206,7 @@ void SideButton::dorender(wxDC& dc, wxDC& text_dc) dc.SetPen(wxPen(border_color.colorForStates(states))); int pen_width = dc.GetPen().GetWidth(); - + // draw icon style if (icon.bmp().IsOk()) { if (radius > 1e-5) { @@ -280,7 +278,9 @@ void SideButton::dorender(wxDC& dc, wxDC& text_dc) auto text = GetLabel(); if (!text.IsEmpty()) { pt.y += (rcContent.height - textSize.y) / 2; - +#ifdef __APPLE__ + pt.y -= FromDIP(2); +#endif text_dc.SetFont(GetFont()); text_dc.SetTextForeground(text_color.colorForStates(states)); text_dc.DrawText(text, pt);