@@ -46,6 +46,7 @@ import { ArduinoMenus } from './menu/arduino-menus';
46
46
import { MonitorViewContribution } from './serial/monitor/monitor-view-contribution' ;
47
47
import { ArduinoToolbar } from './toolbar/arduino-toolbar' ;
48
48
import { FrontendApplicationStateService } from '@theia/core/lib/browser/frontend-application-state' ;
49
+ import { SerialPlotterContribution } from './serial/plotter/plotter-frontend-contribution' ;
49
50
50
51
@injectable ( )
51
52
export class ArduinoFrontendContribution
@@ -130,6 +131,14 @@ export class ArduinoFrontendContribution
130
131
ArduinoToolbar . is ( widget ) && widget . side === 'left' ,
131
132
priority : 7 ,
132
133
} ) ;
134
+ registry . registerItem ( {
135
+ id : 'toggle-serial-plotter' ,
136
+ command : SerialPlotterContribution . Commands . OPEN_TOOLBAR . id ,
137
+ tooltip : nls . localize (
138
+ 'arduino/serial/openSerialPlotter' ,
139
+ 'Serial Plotter'
140
+ ) ,
141
+ } ) ;
133
142
registry . registerItem ( {
134
143
id : 'toggle-serial-monitor' ,
135
144
command : MonitorViewContribution . TOGGLE_SERIAL_MONITOR_TOOLBAR ,
@@ -222,6 +231,26 @@ export class ArduinoFrontendContribution
222
231
description :
223
232
'Background color of the toolbar items when hovering over them. Such as Upload, Verify, etc.' ,
224
233
} ,
234
+ {
235
+ id : 'arduino.toolbar.button.secondary.label' ,
236
+ defaults : {
237
+ dark : 'secondaryButton.foreground' ,
238
+ light : 'button.foreground' ,
239
+ hc : 'activityBar.inactiveForeground' ,
240
+ } ,
241
+ description :
242
+ 'Foreground color of the toolbar items. Such as Serial Monitor and Serial Plotter' ,
243
+ } ,
244
+ {
245
+ id : 'arduino.toolbar.button.secondary.hoverBackground' ,
246
+ defaults : {
247
+ dark : 'secondaryButton.hoverBackground' ,
248
+ light : 'button.hoverBackground' ,
249
+ hc : 'textLink.foreground' ,
250
+ } ,
251
+ description :
252
+ 'Background color of the toolbar items when hovering over them, such as "Serial Monitor" and "Serial Plotter"' ,
253
+ } ,
225
254
{
226
255
id : 'arduino.toolbar.toggleBackground' ,
227
256
defaults : {
0 commit comments