Skip to content

Commit 6673116

Browse files
author
Akos Kitta
committed
fix: cloud tree icon in the widget
Signed-off-by: Akos Kitta <[email protected]>
1 parent 6e7954d commit 6673116

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@
1515

1616
.p-TabBar-tabIcon.cloud-sketchbook-tree-icon {
1717
background-color: var(--theia-foreground);
18-
-webkit-mask: url(./cloud-sketchbook-tree-icon.svg);
18+
-webkit-mask: url(../icons/cloud.svg);
1919
-webkit-mask-position: center;
2020
-webkit-mask-repeat: no-repeat;
21-
width: var(--theia-icon-size);
21+
width: 19px !important;
2222
height: var(--theia-icon-size);
2323
-webkit-mask-size: 100%;
2424
}
2525

2626
.p-mod-current
2727
.cloud-sketchbook-tree-icon {
2828
background-color: var(--theia-foreground);
29-
-webkit-mask: url(./cloud-sketchbook-tree-icon-filled.svg);
29+
-webkit-mask: url(../icons/cloud-filled.svg);
3030
-webkit-mask-position: center;
3131
-webkit-mask-repeat: no-repeat;
3232
-webkit-mask-size: 100%;

Diff for: arduino-ide-extension/src/browser/theia/core/connection-status-service.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,19 @@ export class FrontendConnectionStatusService extends TheiaFrontendConnectionStat
135135
const connectionStatusStatusBar = 'connection-status';
136136
const theiaOffline = 'theia-mod-offline';
137137

138-
export type OfflineConnectionStatus = 'backend' | 'daemon' | 'internet';
138+
export type OfflineConnectionStatus =
139+
/**
140+
* There is no websocket connection between the frontend and the backend.
141+
*/
142+
| 'backend'
143+
/**
144+
* The CLI daemon port is not available. Could not establish the gRPC connection between the backend and the CLI.
145+
*/
146+
| 'daemon'
147+
/**
148+
* Cloud not connect to the Internet from the browser.
149+
*/
150+
| 'internet';
139151

140152
@injectable()
141153
export class ApplicationConnectionStatusContribution extends TheiaApplicationConnectionStatusContribution {

0 commit comments

Comments
 (0)