mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
add color and adjust size of group row
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user