File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
arduino-ide-extension/src/browser Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
1010 Command ,
1111 CommandRegistry ,
1212 SketchContribution ,
13+ TabBarToolbarRegistry ,
1314} from './contribution' ;
1415import { MaybePromise , MenuModelRegistry , nls } from '@theia/core/lib/common' ;
1516import { CurrentSketch } from '../../common/protocol/sketches-service-client-impl' ;
@@ -113,6 +114,10 @@ export class Debug extends SketchContribution {
113114 } ) ;
114115 }
115116
117+ override registerToolbarItems ( registry : TabBarToolbarRegistry ) : void {
118+ registry . registerItem ( this . debugToolbarItem ) ;
119+ }
120+
116121 override registerMenus ( registry : MenuModelRegistry ) : void {
117122 registry . registerMenuAction ( ArduinoMenus . SKETCH__MAIN_GROUP , {
118123 commandId : Debug . Commands . TOGGLE_OPTIMIZE_FOR_DEBUG . id ,
Original file line number Diff line number Diff line change 2323}
2424
2525.p-TabBar-toolbar .item .arduino-tool-item .arduino-upload-sketch--toolbar ,
26- .p-TabBar-toolbar .item .arduino-tool-item .arduino-verify-sketch--toolbar {
26+ .p-TabBar-toolbar .item .arduino-tool-item .arduino-verify-sketch--toolbar ,
27+ .p-TabBar-toolbar .item .arduino-tool-item .arduino-start-debug {
2728 background : var (--theia-arduino-toolbar-button-background );
2829}
2930
3839}
3940
4041.arduino-verify-sketch--toolbar ,
41- .arduino-upload-sketch--toolbar {
42+ .arduino-upload-sketch--toolbar ,
43+ .arduino-start-debug {
4244 border-radius : 14px ;
4345}
4446
7981}
8082
8183.arduino-start-debug-icon {
82- -webkit-mask : url ('../icons/debug-dark.svg' ) 50% ;
83- mask : url ('../icons/debug-dark.svg' ) 50% ;
84+ -webkit-mask : url ('../icons/debug-dark.svg' ) 50% 60% ;
8485 -webkit-mask-size : 70% ;
85- mask-size : 70% ;
8686 -webkit-mask-repeat : no-repeat;
87- mask-repeat : no-repeat;
8887 display : flex;
8988 justify-content : center;
9089 align-items : center;
91- color : var (--theia-ui-button-font-color );
92- }
90+ background-color : var (--theia-titleBar-activeBackground );
9391
94- .arduino-start-debug {
95- border-radius : 12px ;
9692}
9793
9894# arduino-toolbar-container {
You can’t perform that action at this time.
0 commit comments