ui: fix offset with OptionControlSP for macOS (#705)

ui: fix offset with `OptionControlSP`
This commit is contained in:
Jason Wen
2025-03-23 15:50:21 -04:00
committed by GitHub
parent e6177c49aa
commit a307a08591
@@ -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);