mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Make the watermark editor labels themable (#202228)
This commit is contained in:
parent
e34dc5f8a4
commit
74f8c5cd89
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue