aboutsummaryrefslogtreecommitdiffstats
path: root/MASShortcutView.m
diff options
context:
space:
mode:
authorVadim Shpakovski2012-09-03 16:23:21 +0300
committerVadim Shpakovski2012-09-03 16:23:21 +0300
commite01e9075e5f94abc1428a4799c691836599d7e5b (patch)
tree41233259fd943c9b0d8fc7b7ab725e3b1d4c3587 /MASShortcutView.m
parent20a94672f8a2b11b2af2276c1dd3d5caf296efcb (diff)
downloadMASShortcut-e01e9075e5f94abc1428a4799c691836599d7e5b.tar.bz2
Improves textured view appearance.
Diffstat (limited to 'MASShortcutView.m')
-rw-r--r--MASShortcutView.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/MASShortcutView.m b/MASShortcutView.m
index a454ce1..4bfae8e 100644
--- a/MASShortcutView.m
+++ b/MASShortcutView.m
@@ -195,7 +195,11 @@
- (void)getShortcutRect:(CGRect *)shortcutRectRef hintRect:(CGRect *)hintRectRef
{
CGRect shortcutRect, hintRect;
- CGRectDivide(self.bounds, &hintRect, &shortcutRect, HINT_BUTTON_WIDTH, CGRectMaxXEdge);
+ CGFloat hintButtonWidth = HINT_BUTTON_WIDTH;
+ if (self.appearance == MASShortcutViewAppearanceTexturedRect) {
+ hintButtonWidth += 2.0;
+ }
+ CGRectDivide(self.bounds, &hintRect, &shortcutRect, hintButtonWidth, CGRectMaxXEdge);
if (shortcutRectRef) *shortcutRectRef = shortcutRect;
if (hintRectRef) *hintRectRef = hintRect;
}