Skip to content

Commit 509ba75

Browse files
author
Alberto Iannaccone
committed
use new color variables
1 parent d44c4b5 commit 509ba75

File tree

2 files changed

+86
-15
lines changed

2 files changed

+86
-15
lines changed

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

+68
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,74 @@ export class ArduinoFrontendContribution
644644
hc: 'editor.background',
645645
},
646646
description: 'Background color of the Output view.',
647+
},
648+
{
649+
id: 'arduino.toolbar.dropdown.border',
650+
defaults: {
651+
dark: 'dropdown.border',
652+
light: 'dropdown.border',
653+
hc: 'dropdown.border',
654+
},
655+
description: 'Border color of the Board Selector.',
656+
},
657+
658+
{
659+
id: 'arduino.toolbar.dropdown.borderActive',
660+
defaults: {
661+
dark: 'focusBorder',
662+
light: 'focusBorder',
663+
hc: 'focusBorder',
664+
},
665+
description: "Border color of the Board Selector when it's active",
666+
},
667+
668+
{
669+
id: 'arduino.toolbar.dropdown.background',
670+
defaults: {
671+
dark: 'tab.unfocusedActiveBackground',
672+
light: 'tab.unfocusedActiveBackground',
673+
hc: 'tab.unfocusedActiveBackground',
674+
},
675+
description: 'Background color of the Board Selector.',
676+
},
677+
678+
{
679+
id: 'arduino.toolbar.dropdown.label',
680+
defaults: {
681+
dark: 'foreground',
682+
light: 'foreground',
683+
hc: 'foreground',
684+
},
685+
description: 'Font color of the Board Selector.',
686+
},
687+
{
688+
id: 'arduino.toolbar.dropdown.iconSelected',
689+
defaults: {
690+
dark: 'statusBar.background',
691+
light: 'statusBar.background',
692+
hc: 'statusBar.background',
693+
},
694+
description:
695+
'Color of the selected protocol icon in the Board Selector.',
696+
},
697+
{
698+
id: 'arduino.toolbar.dropdown.option.backgroundHover',
699+
defaults: {
700+
dark: 'editor.background',
701+
light: 'editor.background',
702+
hc: 'editor.background',
703+
},
704+
description: 'Background color on hover of the Board Selector options.',
705+
},
706+
{
707+
id: 'arduino.toolbar.dropdown.option.backgroundSelected',
708+
defaults: {
709+
dark: 'editor.background',
710+
light: 'editor.background',
711+
hc: 'editor.background',
712+
},
713+
description:
714+
'Background color of the selected board in the Board Selector.',
647715
}
648716
);
649717
}

Diff for: arduino-ide-extension/src/browser/style/boards-config-dialog.css

+18-15
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
145145

146146
.arduino-boards-toolbar-item-container {
147147
align-items: center;
148-
background: var(--theia-tab-unfocusedActiveBackground);
148+
background: var(--theia-arduino-toolbar-dropdown-background);
149149
border-radius: 1px;
150-
color: var(--theia-foreground);
150+
color: var(--theia-arduino-toolbar-dropdown-label);
151151
display: flex;
152152
gap: 10px;
153153
height: 24px;
@@ -165,11 +165,11 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
165165
}
166166

167167
.arduino-boards-toolbar-item--protocol {
168-
color: var(--theia-foreground);
168+
color: var(--theia-arduino-toolbar-dropdown-label);
169169
}
170170

171171
.arduino-boards-dropdown-item--protocol {
172-
color: var(--theia-activityBar-inactiveForeground);
172+
color: var(--theia-arduino-toolbar-dropdown-label);
173173
}
174174

175175
.arduino-boards-toolbar-item-container
@@ -198,7 +198,11 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
198198
.arduino-boards-dropdown-list {
199199
margin: -1px;
200200
z-index: 1;
201-
border: 1px solid var(--theia-menu-selectionBackground);
201+
border: 1px solid var(--theia-arduino-toolbar-dropdown-border);
202+
}
203+
204+
.arduino-boards-dropdown-list:focus {
205+
border: 1px solid var(--theia-arduino-toolbar-dropdown-borderActive);
202206
}
203207

204208
.arduino-boards-dropdown-list--items-container {
@@ -207,12 +211,12 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
207211
}
208212

209213
.arduino-boards-dropdown-list--items-container::-webkit-scrollbar {
210-
background: var(--theia-tab-unfocusedActiveBackground);
214+
background: var(--theia-arduino-toolbar-dropdown-background);
211215
}
212216

213217
.arduino-boards-dropdown-item {
214-
background: var(--theia-tab-unfocusedActiveBackground);
215-
color: var(--theia-foreground);
218+
background: var(--theia-arduino-toolbar-dropdown-background);
219+
color: var(--theia-arduino-toolbar-dropdown-label);
216220
cursor: default;
217221
display: flex;
218222
font-size: var(--theia-ui-font-size1);
@@ -230,27 +234,26 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
230234
}
231235

232236
.arduino-boards-dropdown-item--port-label {
233-
color: #95A5A6;
234237
font-size: 12px;
235238
}
236239

237240
.arduino-boards-dropdown-item:hover {
238-
background: var(--theia-list-hoverBackground);
241+
background: var(--theia-arduino-toolbar-dropdown-option-backgroundHover);
239242
}
240243

241244
.arduino-boards-dropdown-item--selected,
242245
.arduino-boards-dropdown-item--selected:hover {
243-
background: var(--theia-menu-selectionBackground);
244-
border: 1px solid var(--theia-menu-selectionBackground);
246+
background: var(--theia-arduino-toolbar-dropdown-option-backgroundSelected);
247+
border: 1px solid var(--theia-arduino-toolbar-dropdown-option-backgroundSelected);
245248
}
246249

247250
.arduino-boards-dropdown-item--selected
248251
.arduino-boards-dropdown-item--port-label {
249-
color: var(--theia-foreground);
252+
color: var(--theia-arduino-toolbar-dropdown-label);
250253
}
251254

252255
.arduino-boards-dropdown-item--selected .fa {
253-
color: #1DA086;
256+
color: var(--theia-arduino-toolbar-dropdown-iconSelected);
254257
}
255258

256259
.arduino-boards-dropdown-item .fa-check {
@@ -259,5 +262,5 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
259262

260263
.arduino-board-dropdown-footer {
261264
color: var(--theia-arduino-branding-primary);
262-
border-top: 1px solid var(--theia-menu-selectionBackground);
265+
border-top: 1px solid var(--theia-arduino-toolbar-dropdown-border);
263266
}

0 commit comments

Comments
 (0)