Skip to content

Commit 8012a40

Browse files
authored
Add color item for sidebar title background (microsoft#209528)
fixes microsoft#209164
1 parent c91cf1b commit 8012a40

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

build/lib/stylelint/vscode-known-variables.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@
565565
"--vscode-sideBarSectionHeader-background",
566566
"--vscode-sideBarSectionHeader-border",
567567
"--vscode-sideBarSectionHeader-foreground",
568+
"--vscode-sideBarTitle-background",
568569
"--vscode-sideBarTitle-foreground",
569570
"--vscode-sideBySideEditor-horizontalBorder",
570571
"--vscode-sideBySideEditor-verticalBorder",

src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
margin-right: 4px;
2323
}
2424

25+
.monaco-workbench .part.auxiliarybar > .title {
26+
background-color: var(--vscode-sideBarTitle-background);
27+
}
28+
2529
.monaco-workbench .part.auxiliarybar > .title > .title-label {
2630
flex: 1;
2731
}

src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
margin-right: 4px;
1717
}
1818

19+
.monaco-workbench .part.sidebar > .title {
20+
background-color: var(--vscode-sideBarTitle-background);
21+
}
22+
1923
.monaco-workbench .part.sidebar > .title > .title-label h2 {
2024
text-transform: uppercase;
2125
}

src/vs/workbench/common/theme.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,13 @@ export const SIDE_BAR_BORDER = registerColor('sideBar.border', {
850850
hcLight: contrastBorder
851851
}, localize('sideBarBorder', "Side bar border color on the side separating to the editor. The side bar is the container for views like explorer and search."));
852852

853+
export const SIDE_BAR_TITLE_BACKGROUND = registerColor('sideBarTitle.background', {
854+
dark: SIDE_BAR_BACKGROUND,
855+
light: SIDE_BAR_BACKGROUND,
856+
hcDark: SIDE_BAR_BACKGROUND,
857+
hcLight: SIDE_BAR_BACKGROUND
858+
}, localize('sideBarTitleBackground', "Side bar title background color. The side bar is the container for views like explorer and search."));
859+
853860
export const SIDE_BAR_TITLE_FOREGROUND = registerColor('sideBarTitle.foreground', {
854861
dark: SIDE_BAR_FOREGROUND,
855862
light: SIDE_BAR_FOREGROUND,

0 commit comments

Comments
 (0)