Skip to content

Commit 92f3630

Browse files
committed
Auto merge of rust-lang#12388 - Veykril:statusitem, r=Veykril
internal: Make use of the statusBarItem colors in VSCode Fixes rust-lang/rust-analyzer#7736
2 parents 5b69a34 + 02c2377 commit 92f3630

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

editors/code/src/ctx.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,19 @@ export class Ctx {
8686
case "warning":
8787
this.statusBar.tooltip += "\nClick to reload.";
8888
this.statusBar.command = "rust-analyzer.reloadWorkspace";
89-
this.statusBar.color = new vscode.ThemeColor("notificationsWarningIcon.foreground");
89+
this.statusBar.color = new vscode.ThemeColor("statusBarItem.warningForeground");
90+
this.statusBar.backgroundColor = new vscode.ThemeColor(
91+
"statusBarItem.warningBackground"
92+
);
9093
icon = "$(warning) ";
9194
break;
9295
case "error":
9396
this.statusBar.tooltip += "\nClick to reload.";
9497
this.statusBar.command = "rust-analyzer.reloadWorkspace";
95-
this.statusBar.color = new vscode.ThemeColor("notificationsErrorIcon.foreground");
98+
this.statusBar.color = new vscode.ThemeColor("statusBarItem.errorForeground");
99+
this.statusBar.backgroundColor = new vscode.ThemeColor(
100+
"statusBarItem.errorBackground"
101+
);
96102
icon = "$(error) ";
97103
break;
98104
}

0 commit comments

Comments
 (0)