mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +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];
|
Torrent * torrent = [(FileOutlineView *)[self controlView] torrent];
|
||||||
FileListNode * node = (FileListNode *)[self objectValue];
|
FileListNode * node = (FileListNode *)[self objectValue];
|
||||||
|
|
||||||
NSString * percentString;
|
|
||||||
CGFloat progress = [torrent fileProgress: node];
|
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 %@",
|
NSString * status = [NSString localizedStringWithFormat: NSLocalizedString(@"%@ of %@",
|
||||||
|
|
|
@ -433,10 +433,7 @@
|
||||||
//text color
|
//text color
|
||||||
NSColor * titleColor, * statusColor;
|
NSColor * titleColor, * statusColor;
|
||||||
if ([self backgroundStyle] == NSBackgroundStyleDark)
|
if ([self backgroundStyle] == NSBackgroundStyleDark)
|
||||||
{
|
titleColor = statusColor = [NSColor whiteColor];
|
||||||
titleColor = [NSColor whiteColor];
|
|
||||||
statusColor = [NSColor whiteColor];
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
titleColor = [NSColor controlTextColor];
|
titleColor = [NSColor controlTextColor];
|
||||||
|
|
Loading…
Reference in a new issue