Skip to content

Commit 05fd8ad

Browse files
committed
Add and consume new profile badge colors
1 parent 96fcd76 commit 05fd8ad

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

src/vs/workbench/browser/parts/activitybar/media/activityaction.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@
181181
right: 6px;
182182
padding: 2px 3px;
183183
border-radius: 7px;
184-
background-color: var(--vscode-badge-background);
185-
color: var(--vscode-badge-foreground);
184+
background-color: var(--vscode-profileBadge-background);
185+
color: var(--vscode-profileBadge-foreground);
186186
border: 2px solid var(--vscode-activityBar-background);
187187
}
188188

src/vs/workbench/common/theme.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import { localize } from 'vs/nls';
7-
import { registerColor, editorBackground, contrastBorder, transparent, editorWidgetBackground, textLinkForeground, lighten, darken, focusBorder, activeContrastBorder, editorWidgetForeground, editorErrorForeground, editorWarningForeground, editorInfoForeground, treeIndentGuidesStroke, errorForeground, listActiveSelectionBackground, listActiveSelectionForeground, editorForeground, toolbarHoverBackground, inputBorder, widgetBorder } from 'vs/platform/theme/common/colorRegistry';
7+
import { registerColor, editorBackground, contrastBorder, transparent, editorWidgetBackground, textLinkForeground, lighten, darken, focusBorder, activeContrastBorder, editorWidgetForeground, editorErrorForeground, editorWarningForeground, editorInfoForeground, treeIndentGuidesStroke, errorForeground, listActiveSelectionBackground, listActiveSelectionForeground, editorForeground, toolbarHoverBackground, inputBorder, widgetBorder, foreground } from 'vs/platform/theme/common/colorRegistry';
88
import { IColorTheme } from 'vs/platform/theme/common/themeService';
99
import { Color } from 'vs/base/common/color';
1010
import { ColorScheme } from 'vs/platform/theme/common/theme';
@@ -625,6 +625,22 @@ export const ACTIVITY_BAR_BADGE_FOREGROUND = registerColor('activityBarBadge.for
625625
hcLight: Color.white
626626
}, 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."));
627627

628+
// < --- Profiles --- >
629+
630+
export const PROFILE_BADGE_BACKGROUND = registerColor('profileBadge.background', {
631+
dark: '#4D4D4D',
632+
light: '#C4C4C4',
633+
hcDark: Color.white,
634+
hcLight: Color.black
635+
}, localize('profileBadgeBackground', "Profile badge background color. The profile badge shows on top of the settings gear icon in the activity bar."));
636+
637+
export const PROFILE_BADGE_FOREGROUND = registerColor('profileBadge.foreground', {
638+
dark: Color.white,
639+
light: '#333333',
640+
hcDark: Color.black,
641+
hcLight: Color.white
642+
}, localize('profileBadgeForeground', "Profile badge foreground color. The profile badge shows on top of the settings gear icon in the activity bar."));
643+
628644
// < --- Remote --- >
629645

630646
export const STATUS_BAR_HOST_NAME_BACKGROUND = registerColor('statusBarItem.remoteBackground', {

0 commit comments

Comments
 (0)