Skip to content

Commit

Permalink
Unthemable product icons #2 (microsoft#212574)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed May 13, 2024
1 parent 2ba77da commit 1a45291
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/vs/workbench/browser/media/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,15 @@ body.web {
}

.monaco-workbench .predefined-file-icon[class*='codicon-']::before {
font-family: 'codicon';
width: 16px;
padding-left: 3px; /* width (16px) - font-size (13px) = padding-left (3px) */
padding-right: 3px;
}

.predefined-file-icon::before { /* do add additional specificity to this selector, so it can be overridden by product themes */
font-family: 'codicon';
}

.monaco-workbench:not(.file-icons-enabled) .predefined-file-icon[class*='codicon-']::before {
content: unset !important;
}
Expand All @@ -198,7 +201,6 @@ body.web {
.monaco-workbench .select-container:after {
content: var(--vscode-icon-chevron-down-content);
font-family: var(--vscode-icon-chevron-down-font-family);
font-family: codicon;
font-size: 16px;
width: 16px;
height: 16px;
Expand Down

0 comments on commit 1a45291

Please sign in to comment.