提交 615d6408 编写于 作者: M Matt Bierner

Make sure we apply initial style to find widget

Fixes #83176
上级 56cd7916
...@@ -287,6 +287,8 @@ export class ElectronWebviewBasedWebview extends BaseWebview<WebviewTag> impleme ...@@ -287,6 +287,8 @@ export class ElectronWebviewBasedWebview extends BaseWebview<WebviewTag> impleme
this._register(addDisposableListener(this.element!, 'found-in-page', e => { this._register(addDisposableListener(this.element!, 'found-in-page', e => {
this._hasFindResult.fire(e.result.matches > 0); this._hasFindResult.fire(e.result.matches > 0);
})); }));
this.styledFindWidget();
} }
} }
...@@ -341,10 +343,11 @@ export class ElectronWebviewBasedWebview extends BaseWebview<WebviewTag> impleme ...@@ -341,10 +343,11 @@ export class ElectronWebviewBasedWebview extends BaseWebview<WebviewTag> impleme
protected style(): void { protected style(): void {
super.style(); super.style();
this.styledFindWidget();
}
if (this._webviewFindWidget) { private styledFindWidget() {
this._webviewFindWidget.updateTheme(this._webviewThemeDataProvider.getTheme()); this._webviewFindWidget?.updateTheme(this._webviewThemeDataProvider.getTheme());
}
} }
private readonly _hasFindResult = this._register(new Emitter<boolean>()); private readonly _hasFindResult = this._register(new Emitter<boolean>());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册