Skip to content

Commit 4580ba5

Browse files
mtbaqeraeschli
andauthored
make collapsedText theme-able (microsoft#173203)
Co-authored-by: Martin Aeschlimann <[email protected]>
1 parent a28cbc2 commit 4580ba5

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
"--vscode-dropdown-foreground",
129129
"--vscode-dropdown-listBackground",
130130
"--vscode-editor-background",
131+
"--vscode-editor-collapsedText",
131132
"--vscode-editor-findMatchBackground",
132133
"--vscode-editor-findMatchBorder",
133134
"--vscode-editor-findMatchForeground",

src/vs/editor/contrib/folding/browser/folding.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
}
3232

3333
.monaco-editor .inline-folded:after {
34-
color: grey;
34+
color: var(--vscode-editor-collapsedText);
3535
margin: 0.1em 0.2em 0 0.2em;
3636
content: "\22EF"; /* ellipses unicode character */
3737
display: inline;
@@ -49,4 +49,3 @@
4949
.monaco-editor .cldr.codicon.codicon-folding-manual-collapsed {
5050
color: var(--vscode-editorGutter-foldingControlForeground) !important;
5151
}
52-

src/vs/editor/contrib/folding/browser/foldingDecorations.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { themeColorFromId } from 'vs/platform/theme/common/themeService';
1515
import { ThemeIcon } from 'vs/base/common/themables';
1616

1717
const foldBackground = registerColor('editor.foldBackground', { light: transparent(editorSelectionBackground, 0.3), dark: transparent(editorSelectionBackground, 0.3), hcDark: null, hcLight: null }, localize('foldBackgroundBackground', "Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."), true);
18+
registerColor('editor.collapsedText', { light: '#808080', dark: '#808080', hcDark: null, hcLight: null }, localize('collapsedTextColor', "Color of the collapsed text after the first line of a folded range."));
1819
registerColor('editorGutter.foldingControlForeground', iconForeground, localize('editorGutter.foldingControlForeground', 'Color of the folding control in the editor gutter.'));
1920

2021
export const foldingExpandedIcon = registerIcon('folding-expanded', Codicon.chevronDown, localize('foldingExpandedIcon', 'Icon for expanded ranges in the editor glyph margin.'));

0 commit comments

Comments
 (0)