Skip to content

Commit 181b14c

Browse files
committed
Don't bother with gradients in dark mode
1 parent 7d013b8 commit 181b14c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Classes/Views/PBGitGradientBarView.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ - (id) initWithFrame:(NSRect)frame
2727

2828
- (void) drawRect:(NSRect)dirtyRect
2929
{
30-
[gradient drawInRect:[self bounds] angle:90];
30+
if (![NSApp isDarkMode])
31+
[gradient drawInRect:[self bounds] angle:90];
3132
}
3233

3334

0 commit comments

Comments
 (0)