mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
Variables are a bit more relevant.
This commit is contained in:
parent
826c8fd6c9
commit
b671e909db
1 changed files with 4 additions and 5 deletions
|
@ -45,12 +45,11 @@
|
|||
* rightOver = [NSImage imageNamed: @"FilterButtonOverRight.png"],
|
||||
* mainOver = [NSImage imageNamed: @"FilterButtonOverMain.png"];
|
||||
|
||||
float endWidth = [leftOver size].width,
|
||||
mainWidth = buttonSize.width - 2.0 * endWidth;
|
||||
NSSize endSize = [leftOver size],
|
||||
mainSize = NSMakeSize(buttonSize.width - endSize.width * 2.0, endSize.height);
|
||||
NSPoint leftPoint = NSMakePoint(0, 0),
|
||||
mainPoint = NSMakePoint(endWidth, 0),
|
||||
rightPoint = NSMakePoint(mainWidth + endWidth, 0);
|
||||
NSSize mainSize = NSMakeSize(mainWidth, [leftOver size].height);
|
||||
mainPoint = NSMakePoint(endSize.width, 0),
|
||||
rightPoint = NSMakePoint(buttonSize.width - endSize.width, 0);
|
||||
|
||||
[mainOver setScalesWhenResized: YES];
|
||||
[mainOver setSize: mainSize];
|
||||
|
|
Loading…
Reference in a new issue