From 6db4c7af32d62f925822cd9c31e12b39a03debd3 Mon Sep 17 00:00:00 2001 From: Artem Sokolovskii Date: Thu, 13 Jun 2024 13:12:55 +0200 Subject: [PATCH] AppStatisticMonitor: Change background color to current theming Change-Id: Ib12305cfda1d6ed4404c606314fa73451ed4afe7 Reviewed-by: hjk --- src/plugins/appstatisticsmonitor/chart.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/appstatisticsmonitor/chart.cpp b/src/plugins/appstatisticsmonitor/chart.cpp index 260282b39a4..86e99283fa7 100644 --- a/src/plugins/appstatisticsmonitor/chart.cpp +++ b/src/plugins/appstatisticsmonitor/chart.cpp @@ -38,7 +38,8 @@ AppStatisticsMonitorChart::AppStatisticsMonitorChart( m_chartView->setMinimumHeight(200); m_chartView->setMinimumWidth(400); const QBrush brushTitle(creatorColor(Theme::Token_Text_Muted)); - const QBrush brush(creatorColor(Theme::Token_Background_Default)); + // const QBrush brush(creatorColor(Theme::Token_Background_Default)); left for the future + const QBrush brush(creatorColor(Theme::BackgroundColorNormal)); const QPen penBack(creatorColor(Theme::Token_Text_Muted)); const QPen penAxis(creatorColor(Theme::Token_Text_Muted)); @@ -160,8 +161,8 @@ void Chart::paintEvent(QPaintEvent *event) { Q_UNUSED(event); QPainter painter(this); - - painter.fillRect(rect(), creatorColor(Theme::Token_Background_Default)); + // painter.fillRect(rect(), creatorColor(Theme::Token_Background_Default)); left for the future + painter.fillRect(rect(), creatorColor(Theme::BackgroundColorNormal)); // add the name of the chart in the middle of the widget width and on the top painter.drawText(