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:
parent
4f9e28ca2c
commit
afcadd4c30
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue