Adapt to Liquid Glass window corner metrics (#7829)

This commit is contained in:
Dzmitry Neviadomski
2025-11-18 03:50:18 +03:00
committed by GitHub
parent aa22aea392
commit 4d8a1e5e78
2 changed files with 9 additions and 1 deletions

View File

@@ -491,7 +491,7 @@
<constraint firstAttribute="height" constant="24" id="dyn-PY-CuN"/>
<constraint firstItem="2700" firstAttribute="centerX" secondItem="JCm-xb-Dpw" secondAttribute="centerX" id="hcK-0p-UnE"/>
<constraint firstItem="3420" firstAttribute="centerY" secondItem="JCm-xb-Dpw" secondAttribute="centerY" id="usg-NR-gmG"/>
<constraint firstItem="3435" firstAttribute="leading" secondItem="JCm-xb-Dpw" secondAttribute="leading" constant="8" id="xFe-Hi-hSp"/>
<constraint firstItem="3435" firstAttribute="leading" secondItem="JCm-xb-Dpw" secondAttribute="leading" priority="750" constant="8" id="xFe-Hi-hSp"/>
</constraints>
</customView>
</subviews>

View File

@@ -649,6 +649,14 @@ void onTorrentCompletenessChanged(tr_torrent* tor, tr_completeness status, bool
self.fTotalTorrentsField.cell.backgroundStyle = NSBackgroundStyleRaised;
self.fActionButton.toolTip = NSLocalizedString(@"Shortcuts for changing global settings.", "Main window -> 1st bottom left button (action) tooltip");
if (@available(macOS 26.0, *))
{
NSLayoutConstraint* constraint = [self.fActionButton.leadingAnchor constraintEqualToAnchor:self.fActionButton.superview.leadingAnchor
constant:16.0];
constraint.priority = NSLayoutPriorityRequired;
constraint.active = YES;
}
self.fSpeedLimitButton.toolTip = NSLocalizedString(
@"Speed Limit overrides the total bandwidth limits with its own limits.",
"Main window -> 2nd bottom left button (turtle) tooltip");