Skip to content

Commit

Permalink
Add color item for sidebar title background (#209528)
Browse files Browse the repository at this point in the history
fixes #209164
  • Loading branch information
benibenj authored Apr 4, 2024
1 parent c91cf1b commit 8012a40
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/lib/stylelint/vscode-known-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@
"--vscode-sideBarSectionHeader-background",
"--vscode-sideBarSectionHeader-border",
"--vscode-sideBarSectionHeader-foreground",
"--vscode-sideBarTitle-background",
"--vscode-sideBarTitle-foreground",
"--vscode-sideBySideEditor-horizontalBorder",
"--vscode-sideBySideEditor-verticalBorder",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
margin-right: 4px;
}

.monaco-workbench .part.auxiliarybar > .title {
background-color: var(--vscode-sideBarTitle-background);
}

.monaco-workbench .part.auxiliarybar > .title > .title-label {
flex: 1;
}
Expand Down
4 changes: 4 additions & 0 deletions src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
margin-right: 4px;
}

.monaco-workbench .part.sidebar > .title {
background-color: var(--vscode-sideBarTitle-background);
}

.monaco-workbench .part.sidebar > .title > .title-label h2 {
text-transform: uppercase;
}
Expand Down
7 changes: 7 additions & 0 deletions src/vs/workbench/common/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,13 @@ export const SIDE_BAR_BORDER = registerColor('sideBar.border', {
hcLight: contrastBorder
}, 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."));

export const SIDE_BAR_TITLE_BACKGROUND = registerColor('sideBarTitle.background', {
dark: SIDE_BAR_BACKGROUND,
light: SIDE_BAR_BACKGROUND,
hcDark: SIDE_BAR_BACKGROUND,
hcLight: SIDE_BAR_BACKGROUND
}, localize('sideBarTitleBackground', "Side bar title background color. The side bar is the container for views like explorer and search."));

export const SIDE_BAR_TITLE_FOREGROUND = registerColor('sideBarTitle.foreground', {
dark: SIDE_BAR_FOREGROUND,
light: SIDE_BAR_FOREGROUND,
Expand Down

0 comments on commit 8012a40

Please sign in to comment.