Better support for dark theme

This commit is contained in:
2025-10-10 14:13:47 +02:00
parent 34cfc911ae
commit ee2a9c19f5
3 changed files with 6 additions and 3 deletions

View File

@@ -63,6 +63,7 @@ public:
clkPeriod(clkPeriod),
timeDifferenceSpan(timeDifferenceSpan)
{
setTrackerPen(traceplot->palette().text().color());
}
void setMode(MouseLabelMode mode);

View File

@@ -382,6 +382,8 @@ void TracePlot::setUpGrid()
{
unsigned int clk = navigator->GeneralTraceInfo().clkPeriod;
QwtPlotGrid* grid = new ClkGrid(clk, GridVisiblityClks * clk);
grid->setMajorPen(palette().text().color(), 1.0);
grid->setMinorPen(palette().text().color(), 1.0);
grid->setZ(0);
grid->attach(this);
}