Skip to content

Commit abca8c3

Browse files
author
Benjamin Pasero
committed
1 parent df2af5c commit abca8c3

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

src/vs/base/browser/ui/splitview/panelview.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface IPanelStyles {
2727
dropBackground?: Color;
2828
headerForeground?: Color;
2929
headerBackground?: Color;
30-
headerHighContrastBorder?: Color;
30+
headerBorder?: Color;
3131
}
3232

3333
/**
@@ -218,7 +218,7 @@ export abstract class Panel implements IView {
218218

219219
this.header.style.color = this.styles.headerForeground ? this.styles.headerForeground.toString() : null;
220220
this.header.style.backgroundColor = this.styles.headerBackground ? this.styles.headerBackground.toString() : null;
221-
this.header.style.borderTop = this.styles.headerHighContrastBorder ? `1px solid ${this.styles.headerHighContrastBorder}` : null;
221+
this.header.style.borderTop = this.styles.headerBorder ? `1px solid ${this.styles.headerBorder}` : null;
222222
this._dropBackground = this.styles.dropBackground;
223223
}
224224

src/vs/workbench/browser/parts/views/panelViewlet.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import 'vs/css!./media/panelviewlet';
77
import * as nls from 'vs/nls';
88
import { TPromise } from 'vs/base/common/winjs.base';
99
import { Event, Emitter, filterEvent } from 'vs/base/common/event';
10-
import { ColorIdentifier, contrastBorder } from 'vs/platform/theme/common/colorRegistry';
10+
import { ColorIdentifier } from 'vs/platform/theme/common/colorRegistry';
1111
import { attachStyler, IColorMapping } from 'vs/platform/theme/common/styler';
12-
import { SIDE_BAR_DRAG_AND_DROP_BACKGROUND, SIDE_BAR_SECTION_HEADER_FOREGROUND, SIDE_BAR_SECTION_HEADER_BACKGROUND } from 'vs/workbench/common/theme';
12+
import { SIDE_BAR_DRAG_AND_DROP_BACKGROUND, SIDE_BAR_SECTION_HEADER_FOREGROUND, SIDE_BAR_SECTION_HEADER_BACKGROUND, SIDE_BAR_SECTION_HEADER_BORDER } from 'vs/workbench/common/theme';
1313
import { append, $, trackFocus, toggleClass, EventType, isAncestor, Dimension, addDisposableListener } from 'vs/base/browser/dom';
1414
import { IDisposable, combinedDisposable } from 'vs/base/common/lifecycle';
1515
import { firstIndex } from 'vs/base/common/arrays';
@@ -33,7 +33,7 @@ export interface IPanelColors extends IColorMapping {
3333
dropBackground?: ColorIdentifier;
3434
headerForeground?: ColorIdentifier;
3535
headerBackground?: ColorIdentifier;
36-
headerHighContrastBorder?: ColorIdentifier;
36+
headerBorder?: ColorIdentifier;
3737
}
3838

3939
export interface IViewletPanelOptions extends IPanelOptions {
@@ -323,7 +323,7 @@ export class PanelViewlet extends Viewlet {
323323
const panelStyler = attachStyler<IPanelColors>(this.themeService, {
324324
headerForeground: SIDE_BAR_SECTION_HEADER_FOREGROUND,
325325
headerBackground: SIDE_BAR_SECTION_HEADER_BACKGROUND,
326-
headerHighContrastBorder: index === 0 ? null : contrastBorder,
326+
headerBorder: index === 0 ? null : SIDE_BAR_SECTION_HEADER_BORDER,
327327
dropBackground: SIDE_BAR_DRAG_AND_DROP_BACKGROUND
328328
}, panel);
329329
const disposable = combinedDisposable([onDidFocus, onDidChangeTitleArea, panelStyler, onDidChange]);

src/vs/workbench/common/theme.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,11 @@ export const SIDE_BAR_SECTION_HEADER_FOREGROUND = registerColor('sideBarSectionH
360360
hc: SIDE_BAR_FOREGROUND
361361
}, nls.localize('sideBarSectionHeaderForeground', "Side bar section header foreground color. The side bar is the container for views like explorer and search."));
362362

363+
export const SIDE_BAR_SECTION_HEADER_BORDER = registerColor('sideBarSectionHeader.border', {
364+
dark: contrastBorder,
365+
light: contrastBorder,
366+
hc: contrastBorder
367+
}, nls.localize('sideBarSectionHeaderBorder', "Side bar section header border color. The side bar is the container for views like explorer and search."));
363368

364369

365370
// < --- Title Bar --- >

0 commit comments

Comments
 (0)