aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--MASShortcutView.m6
1 files changed, 2 insertions, 4 deletions
diff --git a/MASShortcutView.m b/MASShortcutView.m
index 27e6ae7..47254fe 100644
--- a/MASShortcutView.m
+++ b/MASShortcutView.m
@@ -204,10 +204,8 @@
{
CGRect shortcutRect, hintRect;
CGFloat hintButtonWidth = HINT_BUTTON_WIDTH;
- switch (self.appearance) {
- case MASShortcutViewAppearanceTexturedRect: hintButtonWidth += 2.0; break;
- case MASShortcutViewAppearanceRounded: hintButtonWidth += 3.0; break;
- default: break;
+ if (self.appearance == MASShortcutViewAppearanceTexturedRect) {
+ hintButtonWidth += 2.0;
}
CGRectDivide(self.bounds, &hintRect, &shortcutRect, hintButtonWidth, CGRectMaxXEdge);
if (shortcutRectRef) *shortcutRectRef = shortcutRect;