Skip to content

Commit 655a89f

Browse files
use VS Code variables
1 parent 0c93bcb commit 655a89f

File tree

3 files changed

+29
-28
lines changed

3 files changed

+29
-28
lines changed

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

Lines changed: 24 additions & 23 deletions
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,10 @@ 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);
151+
border: 1px solid var(--theia-dropdown-border);
151152
display: flex;
152153
gap: 10px;
153154
height: 28px;
@@ -164,12 +165,9 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
164165
font-size: 16px;
165166
}
166167

167-
.arduino-boards-toolbar-item--protocol {
168-
color: var(--theia-arduino-toolbar-dropdown-label);
169-
}
170-
168+
.arduino-boards-toolbar-item--protocol ,
171169
.arduino-boards-dropdown-item--protocol {
172-
color: var(--theia-arduino-toolbar-dropdown-label);
170+
color: var(--theia-dropdown-foreground);
173171
}
174172

175173
.arduino-boards-toolbar-item-container
@@ -198,25 +196,28 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
198196
.arduino-boards-dropdown-list {
199197
margin: -1px;
200198
z-index: 1;
201-
border: 1px solid var(--theia-arduino-toolbar-dropdown-border);
199+
border: 1px solid var(--theia-dropdown-border);
202200
}
203201

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

208208
.arduino-boards-dropdown-list--items-container {
209209
overflow: auto;
210210
max-height: 404px;
211+
background: var(--theia-dropdown-background);
211212
}
212213

213214
.arduino-boards-dropdown-list--items-container::-webkit-scrollbar {
214-
background: var(--theia-arduino-toolbar-dropdown-background);
215+
background: var(--theia-list-activeSelectionBackground);
215216
}
216217

217218
.arduino-boards-dropdown-item {
218-
background: var(--theia-arduino-toolbar-dropdown-background);
219-
color: var(--theia-arduino-toolbar-dropdown-label);
219+
background: var(--theia-dropdown-background);
220+
color: var(--theia-dropdown-foreground);
220221
cursor: default;
221222
display: flex;
222223
font-size: var(--theia-ui-font-size1);
@@ -238,29 +239,29 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
238239
}
239240

240241
.arduino-boards-dropdown-item:hover {
241-
background: var(--theia-arduino-toolbar-dropdown-option-backgroundHover);
242+
background: var(--theia-list-hoverBackground);
242243
}
243244

244245
.arduino-boards-dropdown-item--selected,
245246
.arduino-boards-dropdown-item--selected:hover {
246-
background: var(--theia-arduino-toolbar-dropdown-option-backgroundSelected);
247-
border: 1px solid var(--theia-arduino-toolbar-dropdown-option-backgroundSelected);
247+
background: var(--theia-list-activeSelectionBackground);
248+
border: 1px solid var(--theia-list-activeSelectionBackground);
248249
}
249250

250251
.arduino-boards-dropdown-item--selected
251-
.arduino-boards-dropdown-item--port-label {
252-
color: var(--theia-arduino-toolbar-dropdown-label);
252+
.arduino-boards-dropdown-item--port-label {
253+
color: var(--theia-list-activeSelectionForeground);
253254
}
254255

255256
.arduino-boards-dropdown-item--selected .fa {
256-
color: var(--theia-arduino-toolbar-dropdown-iconSelected);
257+
color: var(--theia-list-activeSelectionIconForeground);
257258
}
258259

259260
.arduino-boards-dropdown-item .fa-check {
260261
align-self: center;
261262
}
262263

263264
.arduino-board-dropdown-footer {
264-
color: var(--theia-arduino-branding-primary);
265-
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);
266267
}

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,18 +173,18 @@
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
}

0 commit comments

Comments
 (0)