1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 16:52:39 +00:00

extremely trivial adjustments

This commit is contained in:
Mitchell Livingston 2009-01-02 02:41:54 +00:00
parent b97fa09270
commit 94600c6cf8
2 changed files with 2 additions and 6 deletions

View file

@ -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 %@",

View file

@ -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];