Skip to content

Commit 0e66061

Browse files
authored
Merge pull request #4385 from Tyriar/patch-1
Avoid white status bar items to ensure contrast
2 parents 5270351 + 11ea57d commit 0e66061

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/observers/OmnisharpStatusBarObserver.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import { EventType } from "../omnisharp/EventType";
1010
export enum StatusBarColors {
1111
Red = 'rgb(218,0,0)',
1212
Green = 'rgb(0,218,0)',
13-
Yellow = 'rgb(218,218,0)',
14-
White = 'rgb(256,256,256)'
13+
Yellow = 'rgb(218,218,0)'
1514
}
1615

1716
export class OmnisharpStatusBarObserver extends BaseStatusBarItemObserver {
@@ -34,7 +33,7 @@ export class OmnisharpStatusBarObserver extends BaseStatusBarItemObserver {
3433
this.ResetAndHideStatusBar();
3534
break;
3635
case EventType.OmnisharpServerOnStart:
37-
this.SetAndShowStatusBar('$(flame)', 'o.showOutput', StatusBarColors.White, 'OmniSharp server is running');
36+
this.SetAndShowStatusBar('$(flame)', 'o.showOutput', undefined, 'OmniSharp server is running');
3837
break;
3938
case EventType.DownloadStart:
4039
this.SetAndShowStatusBar("$(cloud-download) Downloading packages", '', '', `Downloading package '${(<DownloadStart>event).packageDescription}...' `);

test/unitTests/logging/OmnisharpStatusBarObserver.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ suite('OmnisharpStatusBarObserver', () => {
7878
expect(statusBarItem.text).to.be.equal('$(flame)');
7979
expect(statusBarItem.command).to.equal('o.showOutput');
8080
expect(statusBarItem.tooltip).to.be.equal('OmniSharp server is running');
81-
expect(statusBarItem.color).to.be.equal(StatusBarColors.White);
8281
});
8382

8483
test('OnServerStop: Status bar is hidden and the attributes are set to undefined', () => {

0 commit comments

Comments
 (0)