提交 fa50b52c 编写于 作者: B Benjamin Pasero

theme - restore tabs flicker protection

上级 ea651c1f
......@@ -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;
}
......@@ -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;
}
......
......@@ -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();
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册