Skip to content

Commit 82f4e21

Browse files
use VS Code variables
1 parent 4fee17c commit 82f4e21

File tree

3 files changed

+28
-28
lines changed

3 files changed

+28
-28
lines changed

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

+23-23
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ div.dialogContent.select-board-dialog > div.head .title {
1515
font-weight: 400;
1616
letter-spacing: 0.02em;
1717
font-size: 1.2em;
18-
color: var(--theia-arduino-branding-primary);
18+
color: var(--theia-editorWidget-foreground);
1919
margin-bottom: 10px;
2020
}
2121

@@ -24,7 +24,7 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected {
2424
}
2525

2626
div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
27-
color: var(--theia-arduino-branding-primary);
27+
color: var(--theia-list-activeSelectionIconForeground);
2828
}
2929

3030
#select-board-dialog .selectBoardContainer .search,
@@ -77,7 +77,7 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
7777

7878
#select-board-dialog .selectBoardContainer .body .container .content .loading {
7979
font-size: var(--theia-ui-font-size1);
80-
color: var(--theia-arduino-branding-secondary);
80+
color: var(--theia-editorWidget-foreground);
8181
padding: 10px 5px 10px 10px;
8282
text-transform: uppercase;
8383
/* The max, min-height comes from `.body .list` 200px + 47px top padding - 2 * 10px top padding */
@@ -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-arduino-toolbar-dropdown-background);
148+
background: var(--theia-dropdown-background);
149149
border-radius: 1px;
150-
color: var(--theia-arduino-toolbar-dropdown-label);
150+
color: var(--theia-dropdown-foreground);
151151
border: 1px solid var(--theia-dropdown-border);
152152
display: flex;
153153
gap: 10px;
@@ -165,12 +165,9 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
165165
font-size: 16px;
166166
}
167167

168-
.arduino-boards-toolbar-item--protocol {
169-
color: var(--theia-arduino-toolbar-dropdown-label);
170-
}
171-
168+
.arduino-boards-toolbar-item--protocol ,
172169
.arduino-boards-dropdown-item--protocol {
173-
color: var(--theia-arduino-toolbar-dropdown-label);
170+
color: var(--theia-dropdown-foreground);
174171
}
175172

176173
.arduino-boards-toolbar-item-container
@@ -199,25 +196,28 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
199196
.arduino-boards-dropdown-list {
200197
margin: -1px;
201198
z-index: 1;
202-
border: 1px solid var(--theia-arduino-toolbar-dropdown-border);
199+
border: 1px solid var(--theia-dropdown-border);
203200
}
204201

205202
.arduino-boards-dropdown-list:focus {
206-
border: 1px solid var(--theia-arduino-toolbar-dropdown-borderActive);
203+
border-style: solid;
204+
border-width: 1px;
205+
border-color: var(--theia-focus-border);
207206
}
208207

209208
.arduino-boards-dropdown-list--items-container {
210209
overflow: auto;
211210
max-height: 404px;
211+
background: var(--theia-dropdown-background);
212212
}
213213

214214
.arduino-boards-dropdown-list--items-container::-webkit-scrollbar {
215-
background: var(--theia-arduino-toolbar-dropdown-background);
215+
background: var(--theia-list-activeSelectionBackground);
216216
}
217217

218218
.arduino-boards-dropdown-item {
219-
background: var(--theia-arduino-toolbar-dropdown-background);
220-
color: var(--theia-arduino-toolbar-dropdown-label);
219+
background: var(--theia-dropdown-background);
220+
color: var(--theia-dropdown-foreground);
221221
cursor: default;
222222
display: flex;
223223
font-size: var(--theia-ui-font-size1);
@@ -239,31 +239,31 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
239239
}
240240

241241
.arduino-boards-dropdown-item:hover {
242-
background: var(--theia-arduino-toolbar-dropdown-option-backgroundHover);
242+
background: var(--theia-list-hoverBackground);
243243
}
244244

245245
.arduino-boards-dropdown-item--selected,
246246
.arduino-boards-dropdown-item--selected:hover {
247-
background: var(--theia-arduino-toolbar-dropdown-option-backgroundSelected);
248-
border: 1px solid var(--theia-arduino-toolbar-dropdown-option-backgroundSelected);
247+
background: var(--theia-list-activeSelectionBackground);
248+
border: 1px solid var(--theia-list-activeSelectionBackground);
249249
}
250250

251251
.arduino-boards-dropdown-item--selected
252-
.arduino-boards-dropdown-item--port-label {
253-
color: var(--theia-arduino-toolbar-dropdown-label);
252+
.arduino-boards-dropdown-item--port-label {
253+
color: var(--theia-list-activeSelectionForeground);
254254
}
255255

256256
.arduino-boards-dropdown-item--selected .fa {
257-
color: var(--theia-arduino-toolbar-dropdown-iconSelected);
257+
color: var(--theia-list-activeSelectionIconForeground);
258258
}
259259

260260
.arduino-boards-dropdown-item .fa-check {
261261
align-self: center;
262262
}
263263

264264
.arduino-board-dropdown-footer {
265-
color: var(--theia-arduino-branding-primary);
266-
border-top: 1px solid var(--theia-arduino-toolbar-dropdown-border);
265+
color: var(--theia-textLink-foreground);
266+
border-top: 1px solid var(--theia-dropdown-border);
267267
}
268268

269269
/* High Contrast Theme rules */

arduino-ide-extension/src/browser/style/cloud-sketchbook.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696

9797
.cloud-sketchbook-welcome > .item .link {
9898
cursor: pointer;
99-
color: var(--theia-arduino-branding-primary);
99+
color: var(--theia-textLink-foreground);
100100
}
101101

102102
.pull-sketch-icon {

arduino-ide-extension/src/browser/style/main.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -173,20 +173,20 @@
173173

174174
/* Output */
175175
.theia-output .editor-container {
176-
background-color: var(--theia-arduino-output-background);
176+
background-color: var(--theia-terminal-background);
177177
}
178178

179179
.theia-output .monaco-editor .lines-content.monaco-editor-background {
180-
background-color: var(--theia-arduino-output-background);
180+
background-color: var(--theia-terminal-background);
181181
}
182182

183183
.theia-output .monaco-editor .lines-content.monaco-editor-background .view-lines .view-line .mtk1:not(.theia-output-error):not(.theia-output-warning) {
184-
color: var(--theia-arduino-output-foreground);
184+
color: var(--theia-terminal-foreground);
185185
}
186186

187187
.theia-output .monaco-editor .margin {
188188
border-right: none;
189-
background-color: var(--theia-arduino-output-background);
189+
background-color: var(--theia-terminal-background);
190190
}
191191

192192

0 commit comments

Comments
 (0)