Skip to content

Commit 2a745e6

Browse files
authored
update icon for settings profiles (microsoft#154712)
1 parent 068fd7f commit 2a745e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { ContextKeyExpr, IContextKey, IContextKeyService, RawContextKey } from '
1515
import { IProductService } from 'vs/platform/product/common/productService';
1616
import { Registry } from 'vs/platform/registry/common/platform';
1717
import { registerColor } from 'vs/platform/theme/common/colorRegistry';
18+
import { registerIcon } from 'vs/platform/theme/common/iconRegistry';
1819
import { themeColorFromId } from 'vs/platform/theme/common/themeService';
1920
import { IUserDataProfile, IUserDataProfilesService, PROFILES_ENABLEMENT_CONFIG } from 'vs/platform/userDataProfile/common/userDataProfile';
2021
import { IWorkspaceContextService } from 'vs/platform/workspace/common/workspace';
@@ -25,6 +26,8 @@ import { IUserDataProfileManagementService, IUserDataProfileService, ManageProfi
2526

2627
const CONTEXT_CURRENT_PROFILE = new RawContextKey<string>('currentUserDataProfile', '');
2728

29+
export const userDataProfilesIcon = registerIcon('settingsProfiles-icon', Codicon.settings, localize('settingsProfilesIcon', 'Icon for Settings Profiles.'));
30+
2831
export class UserDataProfilesWorkbenchContribution extends Disposable implements IWorkbenchContribution {
2932

3033
private readonly currentProfileContext: IContextKey<string>;
@@ -138,7 +141,7 @@ export class UserDataProfilesWorkbenchContribution extends Disposable implements
138141
name: PROFILES_CATEGORY,
139142
command: 'workbench.profiles.actions.switchProfile',
140143
ariaLabel: localize('currentProfile', "Current Settings Profile is {0}", this.userDataProfileService.currentProfile.name),
141-
text: `$(${Codicon.multipleWindows.id}) ${this.userDataProfileService.currentProfile.name!}`,
144+
text: `$(${userDataProfilesIcon.id}) ${this.userDataProfileService.currentProfile.name!}`,
142145
tooltip: localize('profileTooltip', "{0}: {1}", PROFILES_CATEGORY, this.userDataProfileService.currentProfile.name),
143146
color: themeColorFromId(STATUS_BAR_SETTINGS_PROFILE_FOREGROUND),
144147
backgroundColor: themeColorFromId(STATUS_BAR_SETTINGS_PROFILE_BACKGROUND)

0 commit comments

Comments
 (0)