Skip to content

Commit 27b0781

Browse files
authored
Merge branch 'master' into feature/customizable-session-messages
2 parents 7e77453 + fc405c9 commit 27b0781

File tree

5 files changed

+24
-2
lines changed

5 files changed

+24
-2
lines changed

ThirdParty/PSMTabBarControl/source/PSMTabBarControl.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -969,6 +969,7 @@ - (void)setPartnerView:(id)view
969969

970970
- (void)backgroundColorWillChange {
971971
_overflowPopUpButton.appearance = _style.accessoryAppearance;
972+
_addTabButton.appearance = _style.accessoryAppearance;
972973
}
973974

974975
#pragma mark -

sources/ProfileListView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ - (void)resizeSubviewsWithOldSize:(NSSize)oldBoundsSize {
11311131
frame.size.height - kSearchWidgetHeight - margin_);
11321132
splitView_.frame = splitViewFrame;
11331133

1134-
if (tableView_.delegate) {
1134+
if (tableView_.delegate && frame.size.width != oldBoundsSize.width) {
11351135
NSMutableIndexSet *rowsWithHeightChange = [NSMutableIndexSet indexSet];
11361136
for (NSInteger i = 0; i < self.numberOfRows; i++) {
11371137
CGFloat savedHeight = [_savedHeights[@(i)] doubleValue];

sources/SplitSelectionView.m

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,23 @@ - (void)drawRect:(NSRect)dirtyRect {
132132
}
133133

134134
- (void)drawSourceWithMessage:(NSString *)message rect:(NSRect)dirtyRect {
135-
[[NSColor colorWithCalibratedRed:0 green:0.5 blue:0 alpha:1] set];
135+
NSString *hexColor = [iTermAdvancedSettingsModel splitPaneSourceFillColor];
136+
NSColor *color = [NSColor colorFromHexString:hexColor];
137+
[color ?: [NSColor colorWithCalibratedRed:0 green:0.5 blue:0 alpha:1] set];
136138
NSRectFill(dirtyRect);
139+
140+
NSRect highlightRect = self.frame;
141+
hexColor = [iTermAdvancedSettingsModel splitPaneSourceBorderColor];
142+
color = [NSColor colorFromHexString:hexColor];
143+
[color ?: [NSColor whiteColor] set];
144+
NSFrameRect(highlightRect);
145+
146+
highlightRect = NSInsetRect(highlightRect, 1, 1);
147+
hexColor = [iTermAdvancedSettingsModel splitPaneSourceInnerBorderColor];
148+
color = [NSColor colorFromHexString:hexColor];
149+
[color ?: [NSColor blackColor] set];
150+
NSFrameRect(highlightRect);
151+
137152
[self _showMessage:message inRect:self.frame];
138153
}
139154

sources/iTermAdvancedSettingsModel.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,9 @@ extern NSString *const iTermAdvancedSettingsDidChange;
414414
+ (int)smartSelectionRadius;
415415
+ (BOOL)solidUnderlines;
416416
+ (NSString *)splitPaneColor;
417+
+ (NSString *)splitPaneSourceFillColor;
418+
+ (NSString *)splitPaneSourceBorderColor;
419+
+ (NSString *)splitPaneSourceInnerBorderColor;
417420
+ (NSString *)splitPaneTargetDropFillColor;
418421
+ (NSString *)splitPaneTargetDropBorderColor;
419422
+ (NSString *)splitPaneTargetDropInnerBorderColor;

sources/iTermAdvancedSettingsModel.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,9 @@ + (BOOL)settingIsDeprecated:(NSString *)name {
319319
DEFINE_BOOL(defaultIconsUsingLetters, YES, SECTION_TABS @"Use the running command's first letter as the tab's default icon if there isn't a built in one.\nThis takes effect when tabs are configured to use built-in icons.");
320320
DEFINE_BOOL(tabCloseButtonsAlwaysVisible, NO, SECTION_TABS @"Should tab close buttons always remain visible?");
321321
DEFINE_BOOL(useSequoiaStyleTabs, NO, SECTION_TABS @"Use Sequoia-style tabs in Tahoe and later?");
322+
DEFINE_STRING(splitPaneSourceFillColor, @"#008000", SECTION_TABS @"Color of source pane fill when moving/swapping a split pane.\nShould be a web-style color, #rrggbb. You can also use p3#rrggbb for p3 color space.")
323+
DEFINE_STRING(splitPaneSourceBorderColor, @"#ffffff", SECTION_TABS @"Color of source pane outer border when moving/swapping a split pane.\nShould be a web-style color, #rrggbb. You can also use p3#rrggbb for p3 color space.")
324+
DEFINE_STRING(splitPaneSourceInnerBorderColor, @"#000000", SECTION_TABS @"Color of source pane inner border when moving/swapping a split pane.\nShould be a web-style color, #rrggbb. You can also use p3#rrggbb for p3 color space.")
322325
DEFINE_STRING(splitPaneTargetDropFillColor, @"#800000", SECTION_TABS @"Color of drop target fill when dragging a split pane.\nShould be a web-style color, #rrggbb. You can also use p3#rrggbb for p3 color space.")
323326
DEFINE_STRING(splitPaneTargetDropBorderColor, @"#ffffff", SECTION_TABS @"Color of drop target outer border when dragging a split pane.\nShould be a web-style color, #rrggbb. You can also use p3#rrggbb for p3 color space.")
324327
DEFINE_STRING(splitPaneTargetDropInnerBorderColor, @"#000000", SECTION_TABS @"Color of drop target inner border when dragging a split pane.\nShould be a web-style color, #rrggbb. You can also use p3#rrggbb for p3 color space.")

0 commit comments

Comments
 (0)