Skip to content

Commit c7bdf0a

Browse files
authored
do not use registerThemingParticipant (microsoft#167262)
1 parent 86ff830 commit c7bdf0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { ColorPickerModel } from 'vs/editor/contrib/colorPicker/browser/colorPic
1515
import { IEditorHoverColorPickerWidget } from 'vs/editor/contrib/hover/browser/hoverTypes';
1616
import { localize } from 'vs/nls';
1717
import { editorHoverBackground } from 'vs/platform/theme/common/colorRegistry';
18-
import { IThemeService, registerThemingParticipant } from 'vs/platform/theme/common/themeService';
18+
import { IThemeService } from 'vs/platform/theme/common/themeService';
1919

2020
const $ = dom.$;
2121

@@ -40,7 +40,7 @@ export class ColorPickerHeader extends Disposable {
4040
colorBox.style.backgroundColor = Color.Format.CSS.format(this.model.originalColor) || '';
4141

4242
this.backgroundColor = themeService.getColorTheme().getColor(editorHoverBackground) || Color.white;
43-
this._register(registerThemingParticipant((theme, collector) => {
43+
this._register(themeService.onDidColorThemeChange(theme => {
4444
this.backgroundColor = theme.getColor(editorHoverBackground) || Color.white;
4545
}));
4646

0 commit comments

Comments
 (0)