Better support for dark theme
This commit is contained in:
@@ -85,8 +85,8 @@ void PhaseDependency::mDraw(QPoint& end,
|
||||
QPolygonF arrowHead;
|
||||
arrowHead << line.p2() << arrowP1 << arrowP2;
|
||||
|
||||
QColor color = mDependency->getColor(drawingProperties);
|
||||
painter->setBrush(QBrush(color, mDependency->getBrushStyle()));
|
||||
painter->setBrush(QPalette().base());
|
||||
painter->setPen(QPalette().text().color());
|
||||
|
||||
painter->drawLine(line);
|
||||
painter->drawPolygon(arrowHead);
|
||||
@@ -109,7 +109,7 @@ void PhaseDependency::mDraw(QPoint& end,
|
||||
}
|
||||
}
|
||||
|
||||
drawText(painter, mTimeDependency, textPosition, alignment);
|
||||
drawText(painter, mTimeDependency, textPosition, alignment, QPalette().text().color());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -63,6 +63,7 @@ public:
|
||||
clkPeriod(clkPeriod),
|
||||
timeDifferenceSpan(timeDifferenceSpan)
|
||||
{
|
||||
setTrackerPen(traceplot->palette().text().color());
|
||||
}
|
||||
|
||||
void setMode(MouseLabelMode mode);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user