diff --git a/selfdrive/ui/sunnypilot/qt/widgets/controls.h b/selfdrive/ui/sunnypilot/qt/widgets/controls.h index a7c60980f..1578130bb 100644 --- a/selfdrive/ui/sunnypilot/qt/widgets/controls.h +++ b/selfdrive/ui/sunnypilot/qt/widgets/controls.h @@ -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);