mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
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:
@@ -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]];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user