diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts index fb2268f89f..b03424dbb3 100644 --- a/editors/code/src/ctx.ts +++ b/editors/code/src/ctx.ts @@ -86,13 +86,19 @@ export class Ctx { case "warning": this.statusBar.tooltip += "\nClick to reload."; this.statusBar.command = "rust-analyzer.reloadWorkspace"; - this.statusBar.color = new vscode.ThemeColor("notificationsWarningIcon.foreground"); + this.statusBar.color = new vscode.ThemeColor("statusBarItem.warningForeground"); + this.statusBar.backgroundColor = new vscode.ThemeColor( + "statusBarItem.warningBackground" + ); icon = "$(warning) "; break; case "error": this.statusBar.tooltip += "\nClick to reload."; this.statusBar.command = "rust-analyzer.reloadWorkspace"; - this.statusBar.color = new vscode.ThemeColor("notificationsErrorIcon.foreground"); + this.statusBar.color = new vscode.ThemeColor("statusBarItem.errorForeground"); + this.statusBar.backgroundColor = new vscode.ThemeColor( + "statusBarItem.errorBackground" + ); icon = "$(error) "; break; }