mirror of
https://github.com/transmission/transmission.git
synced 2025-12-19 18:08:31 +00:00
Adapt to Liquid Glass window corner metrics (#7829)
This commit is contained in:
committed by
GitHub
parent
aa22aea392
commit
4d8a1e5e78
@@ -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>
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user