From e5e8b5ffb1eee1342c00cdf65867b5fd4b693f99 Mon Sep 17 00:00:00 2001 From: Collin Kidder Date: Tue, 26 Feb 2019 20:45:54 -0500 Subject: [PATCH] Make the CAN databits grid respect the system coloring scheme better --- candatagrid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/candatagrid.cpp b/candatagrid.cpp index adbbd08..8327608 100644 --- a/candatagrid.cpp +++ b/candatagrid.cpp @@ -73,7 +73,7 @@ void CANDataGrid::paintEvent(QPaintEvent *event) //The left most column has "BYTES" written vertically down it //the next left most column has "0 1 2 3 4 5 6 7" written down along the grid - painter.setPen(QPen(Qt::black)); + painter.setPen(QPen(QApplication::palette().color(QPalette::Text))); QFont mainFont; mainFont.setPixelSize(qMin(xSector, ySector) - 10); painter.setFont(mainFont);