mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-22 19:50:44 +00:00
ENH:Text not centered on mac15
jira: STUDIO-11056 Change-Id: I1c651421f8914a25707ad5b5c1d3e3d56c2df959 (cherry picked from commit 7af3eba50047c4b5f852f2ac3814243543a5019a)
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
#include "Label.hpp"
|
||||
|
||||
#include <wx/dcgraph.h>
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include "libslic3r/MacUtils.hpp"
|
||||
#endif
|
||||
BEGIN_EVENT_TABLE(Button, StaticBox)
|
||||
|
||||
EVT_LEFT_DOWN(Button::mouseDown)
|
||||
@@ -347,6 +349,11 @@ void Button::render(wxDC& dc)
|
||||
#endif
|
||||
#ifdef __WXOSX__
|
||||
pt.y -= textSize.x / 2;
|
||||
#endif
|
||||
#ifdef __APPLE__
|
||||
if (Slic3r::is_mac_version_15()) {
|
||||
pt.y -= FromDIP(1);
|
||||
}
|
||||
#endif
|
||||
dc.DrawText(text, pt);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user