Skip to content
Snippets Groups Projects
Commit 862448da authored by George Nachman's avatar George Nachman
Browse files

When the theme is dark and window titles are dark then use a dark background...

When the theme is dark and window titles are dark then use a dark background for the toolbelt. A comment by joshuajabbour in issue 3314.
parent 35f3dcb7
No related branches found
No related tags found
No related merge requests found
#import "iTermToolbeltView.h"
 
#import "FutureMethods.h"
#import "iTermAdvancedSettingsModel.h"
#import "iTermApplication.h"
#import "iTermApplicationDelegate.h"
#import "iTermDragHandleView.h"
#import "iTermPreferences.h"
#import "iTermSystemVersion.h"
#import "iTermToolWrapper.h"
#import "iTermToolbeltSplitView.h"
Loading
Loading
@@ -245,7 +247,21 @@ static NSString *const kDynamicToolURL = @"URL";
#pragma mark - NSView
 
- (void)drawRect:(NSRect)dirtyRect {
[[NSColor colorWithCalibratedWhite:237.0/255.0 alpha:1] set];
NSColor *color = [NSColor colorWithCalibratedWhite:237.0/255.0 alpha:1];
switch ([iTermPreferences intForKey:kPreferenceKeyTabStyle]) {
case TAB_STYLE_LIGHT:
case TAB_STYLE_LIGHT_HIGH_CONTRAST:
break;
case TAB_STYLE_DARK:
case TAB_STYLE_DARK_HIGH_CONTRAST:
if ([iTermAdvancedSettingsModel darkThemeHasBlackTitlebar]) {
color = [NSColor colorWithCalibratedWhite:0.12 alpha:1.00];
}
break;
}
[color set];
NSRectFill(dirtyRect);
[super drawRect:dirtyRect];
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment