Commit 2e81a39b authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Thomas Hartmann
Browse files

QmlDesigner: Remove transparency from DocumentWarningWidget

The ToolTipBase has alpha in some themes (e.g. Flat Dark).
If the background of the DocumentWarningWidget is transparent,
this looks buggy. We remove the transparency by blending
the color against the background color.

Change-Id: I4a25a30700b3ee1e9e8d23d0b0bad09f297f0605
Reviewed-by: Tim Jenssen's avatarTim Jenssen <>
parent 572b5447
......@@ -27,6 +27,10 @@
#include <qmldesignerplugin.h>
#include <utils/theme/theme.h>
#include <utils/stylehelper.h>
#include <QLabel>
#include <QPushButton>
#include <QCheckBox>
......@@ -170,6 +174,13 @@ bool DocumentWarningWidget::eventFilter(QObject *object, QEvent *event)
void DocumentWarningWidget::showEvent(QShowEvent *event)
const QColor backgroundColor = Utils::creatorTheme()->color(Utils::Theme::QmlDesigner_BackgroundColor);
QPalette pal = palette();
QColor color = pal.color(QPalette::ToolTipBase);
const QColor backgroundNoAlpha = Utils::StyleHelper::alphaBlendedColors(color, backgroundColor);
pal.setColor(QPalette::ToolTipBase, backgroundNoAlpha);
m_gotoCodeWasClicked = false;
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