Commit 1701d61d authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas
Browse files

use dtkThemes in dtkWidgetsHUDInfo

parent be2e0479
Pipeline #144180 passed with stage
in 0 seconds
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include "dtkWidgetsHUDInfo.h" #include "dtkWidgetsHUDInfo.h"
#include <dtkThemes/dtkThemesEngine>
#include <QtGui> #include <QtGui>
// /////////////////////////////////////////////////////////////////// // ///////////////////////////////////////////////////////////////////
...@@ -52,10 +53,13 @@ void dtkWidgetsHUDInfo::paintEvent(QPaintEvent *event) ...@@ -52,10 +53,13 @@ void dtkWidgetsHUDInfo::paintEvent(QPaintEvent *event)
QPainter painter(this); QPainter painter(this);
painter.setRenderHint(QPainter::Antialiasing); painter.setRenderHint(QPainter::Antialiasing);
painter.setPen(QColor("#cc2d2e2e")); QColor fg = dtkThemesEngine::instance()->color("@fgalt");
painter.setBrush(QColor("#cc2d2e2e")); QColor bg = dtkThemesEngine::instance()->color("@bgalt");
painter.setPen(bg);
painter.setBrush(bg);
painter.drawRoundedRect(event->rect(), 25 + 2, 25 + 2); painter.drawRoundedRect(event->rect(), 25 + 2, 25 + 2);
painter.setPen(QColor("#bebfbf")); painter.setPen(fg);
painter.drawText(event->rect(), d->text, QTextOption(Qt::AlignCenter)); painter.drawText(event->rect(), d->text, QTextOption(Qt::AlignCenter));
QFrame::paintEvent(event); QFrame::paintEvent(event);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment