Skip to content

Commit 1028ee6

Browse files
committed
add: orchestrator unsecure indicator
1 parent 9c486f8 commit 1028ee6

2 files changed

Lines changed: 19 additions & 7 deletions

File tree

modules/01-operating-room/src/Orchestrator.cxx

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -359,16 +359,22 @@ class OrchestratorApp {
359359
hdr->reorder_child(*logo, 0);
360360
} catch (...) {}
361361

362-
if (SecureLogUtils::is_secure(participant)) {
363-
security_indicator = Gtk::manage(new Gtk::Label("SECURITY: OK"));
362+
security_indicator = Gtk::manage(new Gtk::Label(""));
363+
{
364364
auto ctx = security_indicator->get_style_context();
365365
ctx->add_class("security-indicator");
366-
ctx->add_class("security-ok");
367-
security_indicator->set_margin_start(10);
368-
security_indicator->set_margin_end(4);
369-
security_indicator->set_visible(true);
370-
hdr->pack_end(*security_indicator, false, false, 0);
366+
if (SecureLogUtils::is_secure(participant)) {
367+
ctx->add_class("security-ok");
368+
security_indicator->set_text("SECURITY: OK");
369+
} else {
370+
ctx->add_class("security-unsecure");
371+
security_indicator->set_text("UNSECURE MODE");
372+
}
371373
}
374+
security_indicator->set_margin_start(10);
375+
security_indicator->set_margin_end(4);
376+
security_indicator->set_visible(true);
377+
hdr->pack_end(*security_indicator, false, false, 0);
372378
}
373379
}
374380

modules/01-operating-room/ui/orchestrator.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@
6161
border: 1px solid #7A1F1F;
6262
}
6363

64+
.security-unsecure {
65+
color: #1A1200;
66+
background-color: #F9A825;
67+
border: 1px solid #C17900;
68+
}
69+
6470
/* ── Device cards ────────────────────────────────────────────────────── */
6571
button.device-card,
6672
.device-card {

0 commit comments

Comments
 (0)