FIX:fix mac display
jira: STUDIO-11041 Change-Id: Ib9dcd9e033fa635e82e74f42105185a1d9139062
This commit is contained in:
parent
6b70020068
commit
563bb3dffc
|
@ -26,8 +26,6 @@ SideButton::SideButton(wxWindow* parent, wxString text, wxString icon, long stly
|
|||
icon_offset = 0;
|
||||
text_orientation = HO_Left;
|
||||
|
||||
|
||||
|
||||
border_color.append(0x6B6B6B, StateColor::Disabled);
|
||||
border_color.append(wxColour(23, 129, 63), StateColor::Pressed);
|
||||
border_color.append(wxColour(48,221,112), StateColor::Hovered);
|
||||
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue