Skip to content

Commit a225e60

Browse files
add new icons
1 parent 425273b commit a225e60

File tree

3 files changed

+31
-43
lines changed

3 files changed

+31
-43
lines changed

arduino-ide-extension/src/browser/boards/boards-list-widget.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
1+
import {
2+
inject,
3+
injectable,
4+
postConstruct,
5+
} from '@theia/core/shared/inversify';
26
import {
37
BoardsPackage,
48
BoardsService,
@@ -20,7 +24,7 @@ export class BoardsListWidget extends ListWidget<BoardsPackage> {
2024
super({
2125
id: BoardsListWidget.WIDGET_ID,
2226
label: BoardsListWidget.WIDGET_LABEL,
23-
iconClass: 'fa fa-arduino-boards',
27+
iconClass: 'arduino-boards-manager',
2428
searchable: service,
2529
installable: service,
2630
itemLabel: (item: BoardsPackage) => item.name,

arduino-ide-extension/src/browser/contributions/sketch-control.ts

-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ export namespace SketchControl {
276276
export namespace Commands {
277277
export const OPEN_SKETCH_CONTROL__TOOLBAR: Command = {
278278
id: 'arduino-open-sketch-control--toolbar',
279-
iconClass: 'fa fa-caret-down',
280279
};
281280
}
282281
}

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

+25-40
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@
1818
display: flex;
1919
justify-content: center;
2020
align-items: center;
21-
height: 24px;
22-
width: 24px;
21+
height: 28px;
22+
width: 28px;
23+
}
24+
25+
.p-TabBar-toolbar .item.arduino-tool-item .arduino-upload-sketch--toolbar,
26+
.p-TabBar-toolbar .item.arduino-tool-item .arduino-verify-sketch--toolbar {
2327
background: var(--theia-arduino-toolbar-button-background);
2428
}
2529

@@ -29,7 +33,7 @@
2933

3034
.arduino-verify-sketch--toolbar,
3135
.arduino-upload-sketch--toolbar {
32-
border-radius: 12px;
36+
border-radius: 14px;
3337
}
3438

3539
.item.arduino-tool-item.toggled {
@@ -43,43 +47,28 @@
4347
}
4448

4549
.arduino-tool-icon {
46-
height: 24px;
47-
width: 24px;
48-
background-color: var(--theia-titleBar-activeBackground);
49-
-webkit-mask: url(../icons/mask-buttons.svg);
50-
mask: url(../icons/mask-buttons.svg);
51-
-webkit-mask-size: 800%;
52-
mask-size: 800%;
53-
}
54-
55-
.arduino-save-sketch--toolbar-icon {
56-
-webkit-mask-position: 59px -4px;
57-
mask-position: 59px -4px;
50+
height: 28px;
51+
width: 28px;
5852
}
5953

6054
.arduino-verify-sketch--toolbar-icon {
61-
-webkit-mask-position: 188px -4px;
62-
mask-position: 188px -4px;
55+
-webkit-mask: url(../icons/verify.svg) center no-repeat;
56+
background-color: var(--theia-titleBar-activeBackground);
6357
}
6458

6559
.arduino-upload-sketch--toolbar-icon {
66-
-webkit-mask-position: 156px -4px;
67-
mask-position: 156px -4px;
68-
}
69-
70-
.arduino-new-sketch--toolbar-icon {
71-
-webkit-mask-position: 124px -4px;
72-
mask-position: 124px -4px;
60+
-webkit-mask: url(../icons/upload.svg) center no-repeat;
61+
background-color: var(--theia-titleBar-activeBackground);
7362
}
7463

75-
.arduino-open-sketch--toolbar-icon {
76-
-webkit-mask-position: 92px -4px;
77-
mask-position: 92px -4px;
64+
.toggle-serial-monitor-icon {
65+
-webkit-mask: url(../icons/monitor.svg) center no-repeat;
66+
background-color: var(--theia-menu-selectionBackground);
7867
}
7968

80-
.toggle-serial-monitor-icon {
81-
-webkit-mask-position: 28px -4px;
82-
mask-position: 28px -4px;
69+
.toggle-serial-plotter-icon {
70+
-webkit-mask: url(../icons/plotter.svg) center no-repeat;
71+
background-color: var(--theia-menu-selectionBackground);
8372
}
8473

8574
.arduino-start-debug-icon {
@@ -114,7 +103,7 @@
114103
}
115104

116105
#theia-top-panel .p-TabBar-toolbar {
117-
padding-left: 4px !important; /* moves the `verify`, upload and other toolbar items to the left */
106+
padding-left: 12px !important; /* moves the `verify`, upload and other toolbar items to the left */
118107
}
119108

120109
.p-Widget .p-MenuBar {
@@ -181,17 +170,13 @@
181170
margin-left: 10px;
182171
}
183172

184-
#arduino-open-sketch-control--toolbar--container {
185-
background-color: var(--theia-arduino-toolbar-button-background);
186-
border-radius: 1px;
173+
#arduino-open-sketch-control--toolbar {
174+
-webkit-mask: url(../icons/sketch-tabs-menu.svg) center no-repeat;
175+
background-color: var(--theia-dropdown-foreground);
187176
}
188177

189-
#arduino-open-sketch-control--toolbar {
190-
height: unset;
191-
width: unset;
192-
line-height: unset;
193-
color: var(--theia-titleBar-activeBackground);
194-
padding: 5px 8px; /* based on pure heuristics */
178+
.p-TabBar.theia-app-sides .p-TabBar-tabIcon.arduino-boards-manager {
179+
-webkit-mask: url(../icons/boards-manager.svg) center no-repeat;
195180
}
196181

197182
/* Output */

0 commit comments

Comments
 (0)