the progress bar color gradients are now all generated by a single color fed into a method to generate the gradient (more consistent gradient between colors and easier to adjust the gradient look in the future)

This commit is contained in:
Mitchell Livingston
2008-06-24 03:59:34 +00:00
parent cd6ff83415
commit 94f08e3074
6 changed files with 60 additions and 331 deletions

View File

@@ -436,15 +436,17 @@ typedef enum
[fCreatorField setStringValue: creatorString];
[fDateCreatedField setObjectValue: [torrent dateCreated]];
BOOL publicTorrent = [torrent publicTorrent];
[fTorrentLocationField setStringValue: publicTorrent
? [[torrent publicTorrentLocation] stringByAbbreviatingWithTildeInPath]
: NSLocalizedString(@"Transmission Support Folder", "Torrent -> location when deleting original")];
if (publicTorrent)
[fTorrentLocationField setToolTip: [[torrent publicTorrentLocation] stringByAppendingFormat: @"\n\n%@",
[torrent torrentLocation]]];
if ([torrent publicTorrent])
{
NSString * location = [torrent publicTorrentLocation];
[fTorrentLocationField setStringValue: [location stringByAbbreviatingWithTildeInPath]];
[fTorrentLocationField setToolTip: [location stringByAppendingFormat: @"\n\n%@", [torrent torrentLocation]]];
}
else
{
[fTorrentLocationField setStringValue: NSLocalizedString(@"Transmission Support Folder", "Inspector -> torrent location")];
[fTorrentLocationField setToolTip: [torrent torrentLocation]];
}
[fDateAddedField setObjectValue: [torrent dateAdded]];