Support toggled state in arduino toolbar items

fix hover state on toolbar items

Improved statemanagement for ToolbarItem and Menus

Disable Upload buttons while a sketch upload is already in progress

toggled state to have override disabled button opacity

doublecheck internal status before verify/upload a sketch

fixes after code review
This commit is contained in:
Francesco Stasi
2021-03-09 14:47:41 +01:00
committed by Francesco Stasi
parent 6dadd1775a
commit 1e0f52bbdd
5 changed files with 85 additions and 11 deletions

View File

@@ -15,8 +15,8 @@
background: var(--theia-arduino-toolbar-background);
}
.p-TabBar-toolbar .item.arduino-tool-item > div:hover {
background: (--theia-arduino-toolbar-hoverBackground);
.p-TabBar-toolbar .item.arduino-tool-item.enabled:hover > div {
background: var(--theia-arduino-toolbar-hoverBackground);
}
.arduino-verify-sketch--toolbar,
@@ -24,6 +24,16 @@
border-radius: 12px;
}
.item.arduino-tool-item.toggled {
background-color: unset;
opacity: 1;
border: none;
}
.item.arduino-tool-item.toggled .arduino-verify-sketch--toolbar {
background-color: var(--theia-arduino-toolbar-toggleBackground) !important;
}
.arduino-tool-icon {
height: 24px;
width: 24px;