diff options
| author | Jason Perkins | 2014-11-24 08:15:24 -0500 |
|---|---|---|
| committer | Jason Perkins | 2014-11-24 08:15:24 -0500 |
| commit | 443e2db73d3268b7dbac7bb1e80bf2f716c86fd3 (patch) | |
| tree | 03d3a83a2d8fdc85fcaba2d6e775dbb0c75ec304 /MASShortcutView.m | |
| parent | 5c7dd533804812732d2e75606f19522578420990 (diff) | |
| download | MASShortcut-443e2db73d3268b7dbac7bb1e80bf2f716c86fd3.tar.bz2 | |
Fix indentation on previous commits: tabs to four spaces
Diffstat (limited to 'MASShortcutView.m')
| -rw-r--r-- | MASShortcutView.m | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/MASShortcutView.m b/MASShortcutView.m index bd18003..dd75729 100644 --- a/MASShortcutView.m +++ b/MASShortcutView.m @@ -107,12 +107,12 @@ _shortcutCell.bezelStyle = NSRoundedBezelStyle; break; } - case MASShortcutViewAppearanceFlat: { - self.wantsLayer = YES; - _shortcutCell.backgroundColor = [NSColor clearColor]; - _shortcutCell.bordered = NO; - break; - } + case MASShortcutViewAppearanceFlat: { + self.wantsLayer = YES; + _shortcutCell.backgroundColor = [NSColor clearColor]; + _shortcutCell.bordered = NO; + break; + } } } @@ -182,16 +182,16 @@ [_shortcutCell drawWithFrame:CGRectOffset(frame, 0.0, 1.0) inView:self]; break; } - case MASShortcutViewAppearanceFlat: { - [_shortcutCell drawWithFrame:frame inView:self]; - break; - } + case MASShortcutViewAppearanceFlat: { + [_shortcutCell drawWithFrame:frame inView:self]; + break; + } } } - (void)drawRect:(CGRect)dirtyRect { - if (self.shortcutValue) { + if (self.shortcutValue) { [self drawInRect:self.bounds withTitle:MASShortcutChar(self.recording ? kMASShortcutGlyphEscape : kMASShortcutGlyphDeleteLeft) alignment:NSRightTextAlignment state:NSOffState]; @@ -237,8 +237,8 @@ switch (self.appearance) { case MASShortcutViewAppearanceTexturedRect: hintButtonWidth += 2.0; break; case MASShortcutViewAppearanceRounded: hintButtonWidth += 3.0; break; - case MASShortcutViewAppearanceFlat: hintButtonWidth -= 8.0 - (_shortcutCell.font.pointSize - BUTTON_FONT_SIZE); break; - default: break; + case MASShortcutViewAppearanceFlat: hintButtonWidth -= 8.0 - (_shortcutCell.font.pointSize - BUTTON_FONT_SIZE); break; + default: break; } CGRectDivide(self.bounds, &hintRect, &shortcutRect, hintButtonWidth, CGRectMaxXEdge); if (shortcutRectRef) *shortcutRectRef = shortcutRect; |
