mirror of
https://github.com/transmission/transmission
synced 2025-01-31 03:12:44 +00:00
add color and adjust size of group row
This commit is contained in:
parent
03f986dffe
commit
d17cb50d25
3 changed files with 4002 additions and 3956 deletions
|
@ -2485,6 +2485,11 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
return group != -1 ? [[GroupsWindowController groups] nameForIndex: group]
|
||||
: NSLocalizedString(@"No Group", "Group table row");
|
||||
}
|
||||
else if ([ident isEqualToString: @"Color"])
|
||||
{
|
||||
int group = [[item objectForKey: @"Group"] intValue];
|
||||
return [[GroupsWindowController groups] imageForIndex: group isSmall: YES];
|
||||
}
|
||||
else if ([ident isEqualToString: @"UL Image"])
|
||||
return [NSImage imageNamed: @"UpArrowGroupTemplate.png"];
|
||||
else if ([ident isEqualToString: @"DL Image"])
|
||||
|
@ -2499,6 +2504,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
while ((torrent = [enumerator nextObject]))
|
||||
rate += upload ? [torrent uploadRate] : [torrent downloadRate];
|
||||
|
||||
return @"999.9 KB/s";
|
||||
return [NSString stringForSpeed: rate];
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -28,7 +28,7 @@
|
|||
|
||||
@class TorrentCell;
|
||||
|
||||
#define GROUP_SEPARATOR_HEIGHT 18.0
|
||||
#define GROUP_SEPARATOR_HEIGHT 20.0
|
||||
|
||||
@interface TorrentTableView : NSOutlineView
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue