Skip to content

Commit 749d4ff

Browse files
CSS rules for HC theme
1 parent 27a2a6c commit 749d4ff

File tree

5 files changed

+106
-0
lines changed

5 files changed

+106
-0
lines changed

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

+11
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,14 @@
4949
padding-top: 0 !important;
5050
padding-bottom: 0 !important;
5151
}
52+
53+
54+
/* High Contrast Theme rules */
55+
/* TODO: Remove it when the Theia version is upgraded to 1.27.0 and use Theia APIs to implement it*/
56+
.hc-black.hc-theia.theia-hc .arduino-select__option--is-selected {
57+
outline: 1px solid var(--theia-focusBorder);
58+
}
59+
60+
.hc-black.hc-theia.theia-hc .arduino-select__option--is-focused {
61+
outline: 1px dashed var(--theia-focusBorder);
62+
}

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

+11
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
148148
background: var(--theia-arduino-toolbar-dropdown-background);
149149
border-radius: 1px;
150150
color: var(--theia-arduino-toolbar-dropdown-label);
151+
border: 1px solid var(--theia-dropdown-border);
151152
display: flex;
152153
gap: 10px;
153154
height: 28px;
@@ -264,3 +265,13 @@ div#select-board-dialog .selectBoardContainer .body .list .item.selected i {
264265
color: var(--theia-arduino-branding-primary);
265266
border-top: 1px solid var(--theia-arduino-toolbar-dropdown-border);
266267
}
268+
269+
/* High Contrast Theme rules */
270+
/* TODO: Remove it when the Theia version is upgraded to 1.27.0 and use Theia APIs to implement it*/
271+
.hc-black.hc-theia.theia-hc #select-board-dialog .selectBoardContainer .body .list .item:hover {
272+
outline: 1px dashed var(--theia-focusBorder);
273+
}
274+
275+
div#select-board-dialog .selectBoardContainer .body .list .item.selected {
276+
outline: 1px solid var(--theia-focusBorder);
277+
}

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

+12
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,15 @@ button.secondary[disabled], .theia-button.secondary[disabled] {
135135
.fa-reload {
136136
font-size: 14px;
137137
}
138+
139+
140+
/* High Contrast Theme rules */
141+
/* TODO: Remove it when the Theia version is upgraded to 1.27.0 and use Theia APIs to implement it*/
142+
.hc-black.hc-theia.theia-hc button.theia-button:hover,
143+
.hc-black.hc-theia.theia-hc .theia-button:hover {
144+
outline: 1px dashed var(--theia-focusBorder);
145+
}
146+
147+
.hc-black.hc-theia.theia-hc .theia-button:focus {
148+
outline: 1px solid var(--theia-focusBorder);
149+
}

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

+56
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,59 @@
188188
border-right: none;
189189
background-color: var(--theia-arduino-output-background);
190190
}
191+
192+
193+
/* High Contrast Theme rules */
194+
/* TODO: Remove it when the Theia version is upgraded to 1.27.0 and use Theia APIs to implement it*/
195+
.hc-black.hc-theia.theia-hc .p-TabBar-toolbar .item.arduino-tool-item .arduino-upload-sketch--toolbar,
196+
.hc-black.hc-theia.theia-hc .p-TabBar-toolbar .item.arduino-tool-item .arduino-verify-sketch--toolbar,
197+
.hc-black.hc-theia.theia-hc .p-TabBar-toolbar .item.arduino-tool-item .arduino-start-debug {
198+
background: transparent;
199+
}
200+
201+
.hc-black.hc-theia.theia-hc .arduino-verify-sketch--toolbar-icon,
202+
.hc-black.hc-theia.theia-hc .arduino-upload-sketch--toolbar-icon,
203+
.hc-black.hc-theia.theia-hc .arduino-start-debug-icon {
204+
background-color: var(--theia-arduino-toolbar-button-secondary-label);
205+
}
206+
207+
.hc-black.hc-theia.theia-hc .p-TabBar-toolbar .item.arduino-tool-item.enabled:hover > div {
208+
background: transparent;
209+
outline: 1px dashed var(--theia-focusBorder);
210+
}
211+
212+
.hc-black.hc-theia.theia-hc .item.arduino-tool-item.toggled .arduino-verify-sketch--toolbar,
213+
.hc-black.hc-theia.theia-hc .item.arduino-tool-item.toggled .arduino-upload-sketch--toolbar {
214+
background-color: transparent !important;
215+
outline: 1px solid var(--theia-focusBorder);
216+
}
217+
218+
.hc-black.hc-theia.theia-hc .arduino-boards-dropdown-item:hover {
219+
background: var(--theia-dropdown-background);
220+
}
221+
222+
.hc-black.hc-theia.theia-hc .arduino-boards-dropdown-item:hover > div {
223+
outline: 1px dashed var(--theia-focusBorder);
224+
}
225+
226+
.hc-black.hc-theia.theia-hc #theia-main-content-panel .p-TabBar .p-TabBar-tab.p-mod-current {
227+
outline: 1px solid var(--theia-focusBorder);
228+
outline-offset: -4px;
229+
}
230+
231+
.hc-black.hc-theia.theia-hc #theia-main-content-panel .p-TabBar .p-TabBar-tab:hover {
232+
outline: 1px dashed var(--theia-focusBorder);
233+
outline-offset: -4px;
234+
}
235+
236+
.hc-black.hc-theia.theia-hc .p-TabBar.theia-app-centers .p-TabBar-tab.p-mod-closable > .p-TabBar-tabCloseIcon:hover {
237+
outline: 1px dashed var(--theia-focusBorder);
238+
}
239+
240+
.hc-black.hc-theia.theia-hc .quick-input-list .monaco-list-row.focused {
241+
outline: 1px dotted var(--theia-focusBorder);
242+
}
243+
244+
.hc-black.hc-theia.theia-hc .quick-input-list .monaco-list-row:hover {
245+
outline: 1px dashed var(--theia-focusBorder);
246+
}

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

+16
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,19 @@
7070
.theia-Tree .ReactVirtualized__List:focus .theia-TreeNode.theia-mod-selected {
7171
background: var(--theia-list-inactiveSelectionBackground);
7272
}
73+
74+
75+
/* High Contrast Theme rules */
76+
/* TODO: Remove it when the Theia version is upgraded to 1.27.0 and use Theia APIs to implement it*/
77+
.hc-black.hc-theia.theia-hc .theia-TreeNode:hover {
78+
outline: 1px dashed var(--theia-focusBorder);
79+
}
80+
81+
.hc-black.hc-theia.theia-hc .theia-Tree .theia-TreeNode.theia-mod-selected {
82+
outline: 1px dotted var(--theia-focusBorder);
83+
}
84+
85+
.hc-black.hc-theia.theia-hc .theia-Tree:focus .theia-TreeNode.theia-mod-selected,
86+
.hc-black.hc-theia.theia-hc .theia-Tree .ReactVirtualized__List:focus .theia-TreeNode.theia-mod-selected {
87+
outline: 1px solid var(--theia-focusBorder);
88+
}

0 commit comments

Comments
 (0)