Commit b7f88b45 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

UI: fix button insets

Change-Id: I11572848f1f6212e9f2f16bc3b12996e2ff0c244
parent 8f77b795
......@@ -199,7 +199,7 @@ NSString* BLINK_ANIMATION_IDENTIFIER = @"blinkAnimation";
[self setImagePosition:NSImageOverlaps];
auto insets = self.mouseDown ? (self.imageInsets - self.imageIncreaseOnClick) : self.imageInsets;
auto rect = NSInsetRect(dirtyRect, self.imageInsets, insets);
auto rect = NSInsetRect(dirtyRect, insets, insets);
[[NSColor image:self.image tintedWithColor:tintColor] drawInRect:rect
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment