Skip to content

Commit 92ce31e

Browse files
Add disconnect style
1 parent b2d10c5 commit 92ce31e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

kernel/src/components/MinimizedButton.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ export class MinimizedButton {
5252

5353
updateOnConnection(msg: string){
5454
this.statusIndicator.classList.add('connected');
55+
this.statusIndicator.classList.remove('disconnected');
5556
this.deviceLabel.textContent = msg;
5657
this.element.title = `Open RedBoard Device Manager (${msg})`;
5758
}
5859
updateOnDisconnection(msg: string){
5960
this.statusIndicator.classList.add('disconnected');
61+
this.statusIndicator.classList.add('connected');
6062
this.deviceLabel.textContent = msg;
6163
this.element.title = `Open RedBoard Device Manager (${msg})`;
6264
}

kernel/src/styles.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,10 @@ export const minimizedStyles = `
425425
background-color: #2ecc71;
426426
}
427427
428+
.status-indicator.connected {
429+
background-color: #e74c3c;
430+
}
431+
428432
.device-label {
429433
font-size: 11px;
430434
color: #555;

0 commit comments

Comments
 (0)