mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
use themed icon (#194050)
This commit is contained in:
committed by
GitHub
parent
c39a4b8db3
commit
bfe28249a5
@@ -44,6 +44,7 @@ import { HoverPosition } from 'vs/base/browser/ui/hover/hoverWidget';
|
|||||||
import { GestureEvent } from 'vs/base/browser/touch';
|
import { GestureEvent } from 'vs/base/browser/touch';
|
||||||
import { IPaneCompositePart, IPaneCompositeSelectorPart } from 'vs/workbench/browser/parts/paneCompositePart';
|
import { IPaneCompositePart, IPaneCompositeSelectorPart } from 'vs/workbench/browser/parts/paneCompositePart';
|
||||||
import { IUserDataProfileService } from 'vs/workbench/services/userDataProfile/common/userDataProfile';
|
import { IUserDataProfileService } from 'vs/workbench/services/userDataProfile/common/userDataProfile';
|
||||||
|
import { DEFAULT_ICON } from 'vs/workbench/services/userDataProfile/common/userDataProfileIcons';
|
||||||
|
|
||||||
interface IPlaceholderViewContainer {
|
interface IPlaceholderViewContainer {
|
||||||
readonly id: string;
|
readonly id: string;
|
||||||
@@ -81,7 +82,6 @@ export class ActivitybarPart extends Part implements IPaneCompositeSelectorPart
|
|||||||
private static readonly ACTION_HEIGHT = 48;
|
private static readonly ACTION_HEIGHT = 48;
|
||||||
private static readonly ACCOUNTS_ACTION_INDEX = 0;
|
private static readonly ACCOUNTS_ACTION_INDEX = 0;
|
||||||
|
|
||||||
private static readonly GEAR_ICON = registerIcon('settings-view-bar-icon', Codicon.settingsGear, localize('settingsViewBarIcon', "Settings icon in the view bar."));
|
|
||||||
private static readonly ACCOUNTS_ICON = registerIcon('accounts-view-bar-icon', Codicon.account, localize('accountsViewBarIcon', "Accounts icon in the view bar."));
|
private static readonly ACCOUNTS_ICON = registerIcon('accounts-view-bar-icon', Codicon.account, localize('accountsViewBarIcon', "Accounts icon in the view bar."));
|
||||||
|
|
||||||
//#region IView
|
//#region IView
|
||||||
@@ -549,7 +549,7 @@ export class ActivitybarPart extends Part implements IPaneCompositeSelectorPart
|
|||||||
return {
|
return {
|
||||||
id: 'workbench.actions.manage',
|
id: 'workbench.actions.manage',
|
||||||
name: localize('manage', "Manage"),
|
name: localize('manage', "Manage"),
|
||||||
classNames: ThemeIcon.asClassNameArray(this.userDataProfileService.currentProfile.icon ? ThemeIcon.fromId(this.userDataProfileService.currentProfile.icon) : ActivitybarPart.GEAR_ICON),
|
classNames: ThemeIcon.asClassNameArray(this.userDataProfileService.currentProfile.icon ? ThemeIcon.fromId(this.userDataProfileService.currentProfile.icon) : DEFAULT_ICON),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,10 @@
|
|||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import { Codicon } from 'vs/base/common/codicons';
|
import { Codicon } from 'vs/base/common/codicons';
|
||||||
|
import { localize } from 'vs/nls';
|
||||||
|
import { registerIcon } from 'vs/platform/theme/common/iconRegistry';
|
||||||
|
|
||||||
export const DEFAULT_ICON = Codicon.settingsGear;
|
export const DEFAULT_ICON = registerIcon('settings-view-bar-icon', Codicon.settingsGear, localize('settingsViewBarIcon', "Settings icon in the view bar."));
|
||||||
|
|
||||||
export const ICONS = [
|
export const ICONS = [
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user