mirror of
https://github.com/transmission/transmission.git
synced 2026-04-25 19:29:31 +01:00
even more new images
This commit is contained in:
@@ -30,7 +30,8 @@
|
||||
{
|
||||
if ((self = [super initWithCoder: coder]))
|
||||
{
|
||||
fImage = [NSImage imageNamed: @"ActionGear.png"];
|
||||
fImage = [NSImage imageNamed: @"ActionPopUp.png"];
|
||||
[fImage setFlipped: YES];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
@@ -40,8 +41,8 @@
|
||||
[super drawRect: rect];
|
||||
|
||||
NSSize imageSize = [fImage size];
|
||||
NSRect imageRect = NSMakeRect(rect.origin.x + 4.0, rect.origin.y + (rect.size.height - imageSize.height) * 0.5,
|
||||
imageSize.width, imageSize.height);
|
||||
NSRect imageRect = NSMakeRect(rect.origin.x + (rect.size.width - imageSize.width) * 0.5,
|
||||
rect.origin.y + (rect.size.height - imageSize.height) * 0.5, imageSize.width, imageSize.height);
|
||||
|
||||
[fImage drawInRect: imageRect fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user