mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Don't show TAB_LAST_PINNED_BORDER color when all tabs are pinned (#193762)
* #193687 * dont show tab border when all sticky
This commit is contained in:
committed by
GitHub
parent
ffc6fdea8f
commit
aa88e1829d
@@ -1510,9 +1510,10 @@ export class MultiEditorTabsControl extends EditorTabsControl {
|
||||
private redrawTabBorders(tabIndex: number, tabContainer: HTMLElement): void {
|
||||
const isTabSticky = this.tabsModel.isSticky(tabIndex);
|
||||
const isTabLastSticky = isTabSticky && this.tabsModel.stickyCount === tabIndex + 1;
|
||||
const showLastStickyTabBorderColor = this.tabsModel.stickyCount !== this.tabsModel.count;
|
||||
|
||||
// Borders / Outline
|
||||
const borderRightColor = ((isTabLastSticky ? this.getColor(TAB_LAST_PINNED_BORDER) : undefined) || this.getColor(TAB_BORDER) || this.getColor(contrastBorder));
|
||||
const borderRightColor = ((isTabLastSticky && showLastStickyTabBorderColor ? this.getColor(TAB_LAST_PINNED_BORDER) : undefined) || this.getColor(TAB_BORDER) || this.getColor(contrastBorder));
|
||||
tabContainer.style.borderRight = borderRightColor ? `1px solid ${borderRightColor}` : '';
|
||||
tabContainer.style.outlineColor = this.getColor(activeContrastBorder) || '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user