Skip to content

Commit

Permalink
UI: Fix mute checkbox positioning on macOS
Browse files Browse the repository at this point in the history
Likely related to QTBUG-2699, QMacStyle appears to screw up the size of
this checkbox. Ignoring the style's layout rect fixes this.
  • Loading branch information
gxalpha authored and RytoEX committed Jun 10, 2024
1 parent a989fef commit c7dc09e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UI/volume-control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ VolControl::VolControl(OBSSource source_, bool showConfig, bool vertical)
volLabel->setObjectName("volLabel");
volLabel->setAlignment(Qt::AlignCenter);

#ifdef __APPLE__
mute->setAttribute(Qt::WA_LayoutUsesWidgetRect);
#endif

QString sourceName = obs_source_get_name(source);
setObjectName(sourceName);

Expand Down

0 comments on commit c7dc09e

Please sign in to comment.