Skip to content

Commit a54ff66

Browse files
committed
new colors for host badge
1 parent 63d257f commit a54ff66

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

src/vs/workbench/common/theme.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,18 @@ export const ACTIVITY_BAR_BADGE_FOREGROUND = registerColor('activityBarBadge.for
366366
hc: Color.white
367367
}, nls.localize('activityBarBadgeForeground', "Activity notification badge foreground color. The activity bar is showing on the far left or right and allows to switch between views of the side bar."));
368368

369+
export const HOST_BADGE_BACKGROUND = registerColor('hostBadge.background', {
370+
dark: ACTIVITY_BAR_BADGE_BACKGROUND,
371+
light: ACTIVITY_BAR_BADGE_BACKGROUND,
372+
hc: ACTIVITY_BAR_BADGE_BACKGROUND
373+
}, nls.localize('hostBadgeBackground', "Background color for the host badge in the extensions view"));
374+
375+
export const HOST_BADGE_FOREGROUND = registerColor('hostBadge.foreground', {
376+
dark: ACTIVITY_BAR_BADGE_FOREGROUND,
377+
light: ACTIVITY_BAR_BADGE_FOREGROUND,
378+
hc: ACTIVITY_BAR_BADGE_FOREGROUND
379+
}, nls.localize('hostBadgeForeground', "Foreground color for the host badge in the extensions view"));
380+
369381

370382
// < --- Side Bar --- >
371383

src/vs/workbench/contrib/extensions/electron-browser/extensionsWidgets.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { IExtensionManagementServerService, IExtensionTipsService } from 'vs/pla
1313
import { ILabelService } from 'vs/platform/label/common/label';
1414
import { extensionButtonProminentBackground, extensionButtonProminentForeground, DisabledLabelAction, ReloadAction } from 'vs/workbench/contrib/extensions/electron-browser/extensionsActions';
1515
import { IThemeService, ITheme } from 'vs/platform/theme/common/themeService';
16-
import { STATUS_BAR_HOST_NAME_BACKGROUND, STATUS_BAR_HOST_NAME_FOREGROUND } from 'vs/workbench/common/theme';
16+
import { HOST_BADGE_BACKGROUND, HOST_BADGE_FOREGROUND } from 'vs/workbench/common/theme';
1717
import { REMOTE_HOST_SCHEME } from 'vs/platform/remote/common/remoteHosts';
1818
import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService';
1919
import { Emitter, Event } from 'vs/base/common/event';
@@ -323,8 +323,8 @@ class RemoteBadge extends Disposable {
323323
if (!this.element) {
324324
return;
325325
}
326-
const bgColor = this.themeService.getTheme().getColor(STATUS_BAR_HOST_NAME_BACKGROUND);
327-
const fgColor = this.themeService.getTheme().getColor(STATUS_BAR_HOST_NAME_FOREGROUND);
326+
const bgColor = this.themeService.getTheme().getColor(HOST_BADGE_BACKGROUND);
327+
const fgColor = this.themeService.getTheme().getColor(HOST_BADGE_FOREGROUND);
328328
this.element.style.backgroundColor = bgColor ? bgColor.toString() : '';
329329
this.element.style.color = fgColor ? fgColor.toString() : '';
330330
};

0 commit comments

Comments
 (0)