diff options
| author | Vadim Shpakovski | 2012-09-03 16:23:21 +0300 |
|---|---|---|
| committer | Vadim Shpakovski | 2012-09-03 16:23:21 +0300 |
| commit | e01e9075e5f94abc1428a4799c691836599d7e5b (patch) | |
| tree | 41233259fd943c9b0d8fc7b7ab725e3b1d4c3587 /MASShortcutView.m | |
| parent | 20a94672f8a2b11b2af2276c1dd3d5caf296efcb (diff) | |
| download | MASShortcut-e01e9075e5f94abc1428a4799c691836599d7e5b.tar.bz2 | |
Improves textured view appearance.
Diffstat (limited to 'MASShortcutView.m')
| -rw-r--r-- | MASShortcutView.m | 6 |
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; } |
