Make the watermark editor labels themable (#202228)

This commit is contained in:
Martin Aeschlimann 2024-01-11 10:16:00 +01:00 committed by GitHub
parent e34dc5f8a4
commit 74f8c5cd89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 21 deletions

View file

@ -296,6 +296,7 @@
"--vscode-editorWarning-background",
"--vscode-editorWarning-border",
"--vscode-editorWarning-foreground",
"--vscode-editorWatermark-foreground",
"--vscode-editorWhitespace-foreground",
"--vscode-editorWidget-background",
"--vscode-editorWidget-border",

View file

@ -14,6 +14,9 @@ import { KeybindingLabel } from 'vs/base/browser/ui/keybindingLabel/keybindingLa
import { CommandsRegistry } from 'vs/platform/commands/common/commands';
import { ContextKeyExpr, ContextKeyExpression, IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
import { defaultKeybindingLabelStyles } from 'vs/platform/theme/browser/defaultStyles';
import { editorForeground, registerColor, transparent } from 'vs/platform/theme/common/colorRegistry';
registerColor('editorWatermark.foreground', { dark: transparent(editorForeground, 0.6), light: transparent(editorForeground, 0.68), hcDark: editorForeground, hcLight: editorForeground }, localize('editorLineHighlight', 'Foreground color for the labels in the editor watermark.'));
interface WatermarkEntry {
readonly text: string;

View file

@ -87,6 +87,7 @@
display: table-row;
opacity: .8;
cursor: default;
color: var(--vscode-editorWatermark-foreground);
}
.monaco-workbench .part.editor > .content .editor-group-container > .editor-group-watermark > .shortcuts dt {
@ -104,27 +105,6 @@
vertical-align: middle;
}
.monaco-workbench .part.editor > .content .editor-group-container > .editor-group-watermark > .shortcuts dt,
.monaco-workbench .part.editor > .content .editor-group-container > .editor-group-watermark > .shortcuts dl {
color: rgba(0,0,0,.68);
}
.monaco-workbench.vs-dark .part.editor > .content .editor-group-container .editor-group-watermark > .shortcuts dt,
.monaco-workbench.vs-dark .part.editor > .content .editor-group-container .editor-group-watermark > .shortcuts dl {
color: rgba(255,255,255,.6);
}
.monaco-workbench.hc-black .part.editor > .content .editor-group-container .editor-group-watermark > .shortcuts dt,
.monaco-workbench.hc-light .part.editor > .content .editor-group-container .editor-group-watermark > .shortcuts dt {
color: var(--vscode-editor-foreground);
}
.monaco-workbench.hc-black .part.editor > .content .editor-group-container .editor-group-watermark > .shortcuts dl,
.monaco-workbench.hc-light .part.editor > .content .editor-group-container .editor-group-watermark > .shortcuts dl {
color: var(--vscode-editor-foreground);
opacity: 1;
}
/* Title */
.monaco-workbench .part.editor > .content .editor-group-container > .title {