mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-24 09:43:47 +08:00
ui: fix offset with OptionControlSP for macOS (#705)
ui: fix offset with `OptionControlSP`
This commit is contained in:
@@ -520,7 +520,11 @@ protected:
|
||||
}
|
||||
|
||||
// Draw the rectangle
|
||||
#ifdef __APPLE__
|
||||
QRect rect(0, !_title.isEmpty() ? (h - 16) : 20, w, h);
|
||||
#else
|
||||
QRect rect(0, !_title.isEmpty() ? (h - 24) : 20, w, h);
|
||||
#endif
|
||||
p.setBrush(QColor(button_enabled ? "#b24a4a4a" : "#121212")); // Background color
|
||||
p.setPen(QPen(Qt::NoPen));
|
||||
p.drawRoundedRect(rect, 20, 20);
|
||||
|
||||
Reference in New Issue
Block a user