mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-06 20:43:46 +08:00
cabana: brighten quiet signals in dark mode (#38969)
This commit is contained in:
@@ -541,7 +541,7 @@ void BinaryView::drawSignalCell(ImDrawList *painter, const ImRect &rect, const B
|
||||
|
||||
auto item = &cellAt(index);
|
||||
CabanaColor color = sig->color;
|
||||
color.a = item->bg_color.alpha();
|
||||
color.a = std::max(item->bg_color.alpha(), palette().text.x > 0.5f ? 96 : 25);
|
||||
const ImU32 edge = toImU32(signalOutline(sig->color));
|
||||
|
||||
for (const ImRect &clip : region) {
|
||||
|
||||
Reference in New Issue
Block a user