mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
Update PeerProgressIndicatorCell.m
Fix the peer progress number in dark mode.
This commit is contained in:
@@ -48,8 +48,9 @@
|
|||||||
NSMutableParagraphStyle * paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
|
NSMutableParagraphStyle * paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
|
||||||
[paragraphStyle setAlignment: NSRightTextAlignment];
|
[paragraphStyle setAlignment: NSRightTextAlignment];
|
||||||
|
|
||||||
fAttributes = [[NSDictionary alloc] initWithObjects: @[[NSFont systemFontOfSize: 11.0], paragraphStyle]
|
fAttributes = @{NSFontAttributeName: [NSFont systemFontOfSize: 11.0],
|
||||||
forKeys: @[NSFontAttributeName, NSParagraphStyleAttributeName]];
|
NSForegroundColorAttributeName: NSColor.labelColor,
|
||||||
|
NSParagraphStyleAttributeName: paragraphStyle};
|
||||||
}
|
}
|
||||||
|
|
||||||
[[NSString percentString: [self floatValue] longDecimals: NO] drawInRect: cellFrame withAttributes: fAttributes];
|
[[NSString percentString: [self floatValue] longDecimals: NO] drawInRect: cellFrame withAttributes: fAttributes];
|
||||||
|
|||||||
Reference in New Issue
Block a user