Skip to content

Commit

Permalink
Update Toolchain and Compiler icon
Browse files Browse the repository at this point in the history
ONE-vscode-DCO-1.0-Signed-off-by: Jiyoung Yun <[email protected]>
  • Loading branch information
jyoungyun committed Sep 18, 2023
1 parent c983393 commit e1751a7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@
"command": "one.explorer.runCfg",
"title": "Run with the compiler (Ctrl+F7)",
"category": "ONE",
"icon": "$(play)"
"icon": "$(debug-coverage)"
},
{
"command": "one.explorer.inferModel",
"title": "Infer model with the executor",
"category": "ONE",
"icon": "$(play)"
"icon": "$(debug-start)"
},
{
"command": "one.explorer.profileModel",
Expand Down
7 changes: 5 additions & 2 deletions src/Compiler/CompilerNodeBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ class CompilerNode extends vscode.TreeItem {
super(label, collapsibleState);
this.deviceName = dname;
this.contextValue = "compiler";
this.iconPath = new vscode.ThemeIcon("debug-start");
this.iconPath = new vscode.ThemeIcon(
"tools",
new vscode.ThemeColor("debugIcon.stopForeground")
);
if (defaultCompiler.isEqual(this)) {
this.iconPath = new vscode.ThemeIcon(
"debug-continue",
"tools",
new vscode.ThemeColor("debugIcon.startForeground")
);
this.contextValue += ".default";
Expand Down
5 changes: 4 additions & 1 deletion src/Executor/ExecutorNodeBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ class ExecutorNode extends vscode.TreeItem {
super(label, collapsibleState);
this.deviceName = dname;
this.contextValue = "executor";
this.iconPath = new vscode.ThemeIcon("debug-start");
this.iconPath = new vscode.ThemeIcon(
"server-environment",
new vscode.ThemeColor("debugIcon.stopForeground")
);
}

public infer(
Expand Down
2 changes: 1 addition & 1 deletion src/Executor/ToolchainExecutorNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ToolchainSimulatorNode extends SimulatorNode {
this.toolchainEnv = tEnv;
if (defaultExecutor.isEqual(this)) {
this.iconPath = new vscode.ThemeIcon(
"debug-continue",
"server-environment",
new vscode.ThemeColor("debugIcon.startForeground")
);
this.contextValue += ".default";
Expand Down

0 comments on commit e1751a7

Please sign in to comment.