提交 ea541de9 编写于 作者: M Matt Bierner

Remove old css vars from webviews

These were undocumented and we now had offical css vars that extensions should use instead
上级 c79a8bf7
......@@ -475,16 +475,6 @@ export class WebviewElement extends Disposable {
const styles = {
// Old vars
'font-family': fontFamily,
'font-weight': fontWeight,
'font-size': fontSize,
'background-color': theme.getColor(colorRegistry.editorBackground).toString(),
'color': theme.getColor(colorRegistry.editorForeground).toString(),
'link-color': theme.getColor(colorRegistry.textLinkForeground).toString(),
'link-active-color': theme.getColor(colorRegistry.textLinkActiveForeground).toString(),
// Offical API
'vscode-editor-font-family': fontFamily,
'vscode-editor-font-weight': fontWeight,
'vscode-editor-font-size': fontSize,
......@@ -495,6 +485,7 @@ export class WebviewElement extends Disposable {
this._send('styles', styles, activeTheme);
this._webviewFindWidget.updateTheme(theme);
}
public layout(): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册