diff --git a/testclient/widgets/plotwidget.cpp b/testclient/widgets/plotwidget.cpp --- a/testclient/widgets/plotwidget.cpp +++ b/testclient/widgets/plotwidget.cpp @@ -27,6 +27,9 @@ QWidget(parent) { _chart = new QChartView; + if (palette().text().color().value() >= QColor(Qt::lightGray).value()) { + _chart->chart()->setTheme(QChart::ChartThemeDark); + } QHBoxLayout *mainLayout = new QHBoxLayout; mainLayout->addWidget(_chart); this->setLayout(mainLayout);