cabana: extend color palette, make chart colors match signal view (#27258)

* cabana: extend color palette, make chart colors match signal view

* vary saturation too

* cleanup
old-commit-hash: fcaa6fb06fd68a71b129487d80ee00918695fc5b
This commit is contained in:
Willem Melching
2023-02-08 22:03:23 +01:00
committed by GitHub
parent 438a2b8aec
commit b94e06a6be
6 changed files with 22 additions and 10 deletions
+1 -3
View File
@@ -173,7 +173,6 @@ void BinaryViewModel::refresh() {
if ((dbc_msg = dbc()->msg(msg_id))) {
row_count = dbc_msg->size;
items.resize(row_count * column_count);
int i = 0;
for (auto sig : dbc_msg->getSignals()) {
auto [start, end] = getSignalRange(sig);
for (int j = start; j <= end; ++j) {
@@ -185,10 +184,9 @@ void BinaryViewModel::refresh() {
}
if (j == start) sig->is_little_endian ? items[idx].is_lsb = true : items[idx].is_msb = true;
if (j == end) sig->is_little_endian ? items[idx].is_msb = true : items[idx].is_lsb = true;
items[idx].bg_color = getColor(i);
items[idx].bg_color = getColor(sig);
items[idx].sigs.push_back(sig);
}
++i;
}
} else {
row_count = can->lastMessage(msg_id).dat.size();