Skip to content

Commit 80d7038

Browse files
add variables for toolbar secondary icons
1 parent 305f090 commit 80d7038

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

Diff for: arduino-ide-extension/src/browser/arduino-frontend-contribution.tsx

+20
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,26 @@ export class ArduinoFrontendContribution
231231
description:
232232
'Background color of the toolbar items when hovering over them. Such as Upload, Verify, etc.',
233233
},
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+
},
234254
{
235255
id: 'arduino.toolbar.toggleBackground',
236256
defaults: {

Diff for: arduino-ide-extension/src/browser/style/main.css

+10-3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@
3232
background: var(--theia-arduino-toolbar-button-hoverBackground);
3333
}
3434

35+
.p-TabBar-toolbar .item.arduino-tool-item.enabled:hover > div.toggle-serial-monitor,
36+
.p-TabBar-toolbar .item.arduino-tool-item.enabled:hover > div.toggle-serial-plotter {
37+
background-color: var(--theia-arduino-toolbar-button-secondary-hoverBackground);
38+
border-radius: 14px;
39+
}
40+
3541
.arduino-verify-sketch--toolbar,
3642
.arduino-upload-sketch--toolbar {
3743
border-radius: 14px;
@@ -64,12 +70,12 @@
6470

6571
.toggle-serial-monitor-icon {
6672
-webkit-mask: url(../icons/monitor.svg) center no-repeat;
67-
background-color: var(--theia-menu-selectionBackground);
73+
background-color: var(--theia-arduino-toolbar-button-secondary-label);
6874
}
6975

7076
.toggle-serial-plotter-icon {
7177
-webkit-mask: url(../icons/plotter.svg) center no-repeat;
72-
background-color: var(--theia-menu-selectionBackground);
78+
background-color: var(--theia-arduino-toolbar-button-secondary-label);
7379
}
7480

7581
.arduino-start-debug-icon {
@@ -128,7 +134,8 @@
128134
}
129135

130136
.arduino-toolbar-tooltip {
131-
margin-left: 10px;
137+
margin-left: 10px;
138+
margin-right: 4px;
132139
display: flex;
133140
align-items: center;
134141
color: var(--theia-titleBar-activeForeground);

0 commit comments

Comments
 (0)