Skip to content

Commit 621524a

Browse files
DenisaCGhbcarlos
andauthored
adding 'run' icon for the button
Co-authored-by: Carlos Herrero <carlosherrerocontact@gmail.com>
1 parent 475f3ef commit 621524a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/widget.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ export class BlocklyEditor extends DocumentWidget<BlocklyPanel, DocumentModel> {
2525
(this.content.layout as BlocklyLayout).run();
2626
};
2727
const button = new ToolbarButton({
28-
className: 'run-output-button',
2928
label: 'Run Code',
29+
icon: runIcon,
30+
className: 'jp-blockly-button',
3031
onClick: runCode,
31-
tooltip: 'Run Code',
32+
tooltip: 'Run Code'
3233
});
33-
button.node.style.backgroundColor = 'var(--md-green-500)';
34+
button.addClass('jp-blockly-runButton');
3435
this.toolbar.addItem('run', button);
3536
}
3637

0 commit comments

Comments
 (0)