mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
fix overlapping dock badging
This commit is contained in:
@@ -120,7 +120,7 @@
|
||||
//string is in center of image
|
||||
NSSize stringSize = [string sizeWithAttributes: fAttributes];
|
||||
|
||||
NSRect stringRect;
|
||||
NSRect stringRect = badgeRect;
|
||||
stringRect.origin.x += (badgeRect.size.width - stringSize.width) * 0.5;
|
||||
stringRect.origin.y += (badgeRect.size.height - stringSize.height) * 0.5 + 1.0; //adjust for shadow
|
||||
stringRect.size = stringSize;
|
||||
|
||||
Reference in New Issue
Block a user