Skip to content

Commit

Permalink
Merge pull request #10 from EstatoDeviato/master
Browse files Browse the repository at this point in the history
Add Hub status and hub brush
  • Loading branch information
Crystalwarrior authored May 9, 2024
2 parents 7e12aba + 3328040 commit 13d8767
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions include/courtroom.h
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,7 @@ class Courtroom : public QMainWindow {
QBrush rp_brush;
QBrush gaming_brush;
QBrush locked_brush;
QBrush hub_brush;

QSystemTrayIcon* callwords_notification;
QStringList callwords_history;
Expand Down
12 changes: 10 additions & 2 deletions src/courtroom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1464,6 +1464,8 @@ void Courtroom::set_widgets()
QBrush(ao_app->get_color("area_gaming_color", "courtroom_design.ini"));
locked_brush =
QBrush(ao_app->get_color("area_locked_color", "courtroom_design.ini"));
hub_brush =
QBrush(ao_app->get_color("area_hub_color", "courtroom_design.ini"));

refresh_evidence();
}
Expand Down Expand Up @@ -2013,10 +2015,14 @@ void Courtroom::list_areas()
if (ao_app->arup_supported) {
i_area.append("\n ");

i_area.append(arup_statuses.at(n_area));
if (arup_statuses.at(n_area) != "HUB") {
i_area.append(arup_statuses.at(n_area));
}

if (arup_cms.at(n_area) != "FREE") {
i_area.append(" | CM: ");
if (arup_statuses.at(n_area) != "HUB") {
i_area.append(" | CM: ");
}
i_area.append(arup_cms.at(n_area));
}

Expand Down Expand Up @@ -2055,6 +2061,8 @@ void Courtroom::list_areas()
treeItem->setBackground(1, rp_brush);
else if (arup_statuses.at(n_area) == "GAMING")
treeItem->setBackground(1, gaming_brush);
else if (arup_statuses.at(n_area) == "HUB")
treeItem->setBackground(1, hub_brush);
}
}
else {
Expand Down

0 comments on commit 13d8767

Please sign in to comment.