Skip to content

Commit

Permalink
theme - restore tabs flicker protection
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Mar 17, 2017
1 parent ea651c1 commit fa50b52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/vs/workbench/browser/parts/editor/media/tabstitle.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

/* Title Container */

.hc-black .monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title.tabs.shows-tabs {
.monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title.empty {
background: inherit !important; /* prevents some ugly flickering when opening first tab */
}

.hc-black .monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title.tabs {
border-bottom: 1px solid;
}

Expand Down Expand Up @@ -182,7 +186,7 @@

/* TODO@theme */

.hc-black .monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title.tabs.shows-tabs {
.hc-black .monaco-workbench > .part.editor > .content > .one-editor-silo > .container > .title.tabs {
border-bottom-color: #6FC3DF;
}

Expand Down
4 changes: 2 additions & 2 deletions src/vs/workbench/browser/parts/editor/tabsTitleControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export class TabsTitleControl extends TitleControl {

// Handle Tabs
this.handleTabs(group.count);
DOM.addClass(this.titleContainer, 'shows-tabs');
DOM.removeClass(this.titleContainer, 'empty');

// Update Tabs
this.doUpdate();
Expand All @@ -363,7 +363,7 @@ export class TabsTitleControl extends TitleControl {
this.tabDisposeables = dispose(this.tabDisposeables);
this.editorLabels = [];

DOM.removeClass(this.titleContainer, 'shows-tabs');
DOM.addClass(this.titleContainer, 'empty');
}

private handleTabs(tabsNeeded: number): void {
Expand Down

0 comments on commit fa50b52

Please sign in to comment.