Skip to content

Commit cbcf647

Browse files
add variables for toolbar secondary icons
1 parent e1cc911 commit cbcf647

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

arduino-ide-extension/src/browser/arduino-frontend-contribution.tsx

+20
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,26 @@ export class ArduinoFrontendContribution
623623
description:
624624
'Background color of the toolbar items when hovering over them. Such as Upload, Verify, etc.',
625625
},
626+
{
627+
id: 'arduino.toolbar.button.secondary.label',
628+
defaults: {
629+
dark: 'secondaryButton.foreground',
630+
light: 'button.foreground',
631+
hc: 'activityBar.inactiveForeground',
632+
},
633+
description:
634+
'Foreground color of the toolbar items. Such as Serial Monitor and Serial Plotter',
635+
},
636+
{
637+
id: 'arduino.toolbar.button.secondary.hoverBackground',
638+
defaults: {
639+
dark: 'secondaryButton.hoverBackground',
640+
light: 'button.hoverBackground',
641+
hc: 'textLink.foreground',
642+
},
643+
description:
644+
'Background color of the toolbar items when hovering over them. Such as Serial Monitor and Serial Plotter',
645+
},
626646
{
627647
id: 'arduino.toolbar.toggleBackground',
628648
defaults: {

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)