1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

display arrows in priority segmented cell

This commit is contained in:
Mitchell Livingston 2008-01-11 22:05:40 +00:00
parent 4f9e28ca2c
commit afcadd4c30

View file

@ -42,6 +42,18 @@
[self setLabel: @"" forSegment: i];
[self setWidth: 9.0 forSegment: i]; //9 is minimum size to get proper look
}
NSSize imageSize = NSMakeSize(7.0, 11.0);
NSImage * downArrow = [NSImage imageNamed: @"DownArrow.png"];
[downArrow setScalesWhenResized: YES];
[downArrow setSize: imageSize];
[self setImage: downArrow forSegment: 0];
NSImage * upArrow = [NSImage imageNamed: @"UpArrow.png"];
[upArrow setScalesWhenResized: YES];
[upArrow setSize: imageSize];
[self setImage: upArrow forSegment: 2];
}
return self;
}