mirror of
https://github.com/transmission/transmission
synced 2024-12-24 00:34:04 +00:00
extremely trivial adjustments
This commit is contained in:
parent
b97fa09270
commit
94600c6cf8
2 changed files with 2 additions and 6 deletions
|
@ -226,9 +226,8 @@
|
|||
Torrent * torrent = [(FileOutlineView *)[self controlView] torrent];
|
||||
FileListNode * node = (FileListNode *)[self objectValue];
|
||||
|
||||
NSString * percentString;
|
||||
CGFloat progress = [torrent fileProgress: node];
|
||||
percentString = progress == 1.0f ? @"100%" : [NSString localizedStringWithFormat: @"%.2f%%", progress * 100.0f];
|
||||
NSString * percentString = progress == 1.0f ? @"100%" : [NSString localizedStringWithFormat: @"%.2f%%", progress * 100.0f];
|
||||
|
||||
|
||||
NSString * status = [NSString localizedStringWithFormat: NSLocalizedString(@"%@ of %@",
|
||||
|
|
|
@ -433,10 +433,7 @@
|
|||
//text color
|
||||
NSColor * titleColor, * statusColor;
|
||||
if ([self backgroundStyle] == NSBackgroundStyleDark)
|
||||
{
|
||||
titleColor = [NSColor whiteColor];
|
||||
statusColor = [NSColor whiteColor];
|
||||
}
|
||||
titleColor = statusColor = [NSColor whiteColor];
|
||||
else
|
||||
{
|
||||
titleColor = [NSColor controlTextColor];
|
||||
|
|
Loading…
Reference in a new issue