diff --git a/resources/dapr-dark.svg b/resources/dapr-dark.svg new file mode 100644 index 000000000..da10d8ce0 --- /dev/null +++ b/resources/dapr-dark.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + diff --git a/resources/dapr-light.svg b/resources/dapr-light.svg new file mode 100644 index 000000000..99e4d4b2b --- /dev/null +++ b/resources/dapr-light.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + diff --git a/resources/dapr.svg b/resources/dapr.svg deleted file mode 100644 index be569f22e..000000000 --- a/resources/dapr.svg +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - diff --git a/src/tree/configurations/DaprItem.ts b/src/tree/configurations/DaprItem.ts index a01442e67..c7fd2b10b 100644 --- a/src/tree/configurations/DaprItem.ts +++ b/src/tree/configurations/DaprItem.ts @@ -36,7 +36,10 @@ export class DaprEnabledItem implements TreeElementBase { label: localize('dapr', 'Dapr'), contextValue: DaprEnabledItem.contextValue, description: localize('enabled', 'Enabled'), - iconPath: treeUtils.getIconPath('dapr'), + iconPath: { + light: treeUtils.getIconPath('dapr-light'), + dark: treeUtils.getIconPath('dapr-dark'), + }, collapsibleState: TreeItemCollapsibleState.Collapsed, } } diff --git a/src/utils/treeUtils.ts b/src/utils/treeUtils.ts index 382d76654..f39ce823a 100644 --- a/src/utils/treeUtils.ts +++ b/src/utils/treeUtils.ts @@ -3,13 +3,12 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -import { type TreeItemIconPath } from '@microsoft/vscode-azext-utils'; import { Uri } from 'vscode'; import { ext } from '../extensionVariables'; import { type TreeElementBase } from '../tree/ContainerAppsBranchDataProvider'; export namespace treeUtils { - export function getIconPath(iconName: string): TreeItemIconPath { + export function getIconPath(iconName: string): Uri { return Uri.joinPath(getResourcesUri(), `${iconName}.svg`); }