add color and adjust size of group row
This commit is contained in:
parent
03f986dffe
commit
d17cb50d25
|
@ -2485,6 +2485,11 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||||
return group != -1 ? [[GroupsWindowController groups] nameForIndex: group]
|
return group != -1 ? [[GroupsWindowController groups] nameForIndex: group]
|
||||||
: NSLocalizedString(@"No Group", "Group table row");
|
: 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"])
|
else if ([ident isEqualToString: @"UL Image"])
|
||||||
return [NSImage imageNamed: @"UpArrowGroupTemplate.png"];
|
return [NSImage imageNamed: @"UpArrowGroupTemplate.png"];
|
||||||
else if ([ident isEqualToString: @"DL Image"])
|
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]))
|
while ((torrent = [enumerator nextObject]))
|
||||||
rate += upload ? [torrent uploadRate] : [torrent downloadRate];
|
rate += upload ? [torrent uploadRate] : [torrent downloadRate];
|
||||||
|
|
||||||
|
return @"999.9 KB/s";
|
||||||
return [NSString stringForSpeed: rate];
|
return [NSString stringForSpeed: rate];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
@class TorrentCell;
|
@class TorrentCell;
|
||||||
|
|
||||||
#define GROUP_SEPARATOR_HEIGHT 18.0
|
#define GROUP_SEPARATOR_HEIGHT 20.0
|
||||||
|
|
||||||
@interface TorrentTableView : NSOutlineView
|
@interface TorrentTableView : NSOutlineView
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue