aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/documentwarningwidget.cpp
diff options
context:
space:
mode:
authorHenning Gruendl <henning.gruendl@qt.io>2021-03-02 13:35:07 +0100
committerTim Jenssen <tim.jenssen@qt.io>2021-03-16 09:11:38 +0000
commitdb6ad528bb4a29c5c89e7e1a0d667ba82870cd9b (patch)
tree72ddc3c74ece70adf28428437077e92b71991844 /src/plugins/qmldesigner/documentwarningwidget.cpp
parent05701491a1caefcfcc2a1f00ee7c07b76cff2cd9 (diff)
QmlDesigner: Implement new control design
* Update creator theme files and related enum * Remove unused ActionIndicator functionality * Update all controls (Colors, Positions, Sizes) * Add global hover state and cleanup all other states * Add global hover functionality to ButtonRow * Add missing states * Add new MenuItemWithIcon * Add checkers.png for StateDelegate preview background * Update copyright headers * Replace AnchorButtons spacing * Make ADS title bar buttons and tab bar buttons themeable * Fix replace CSS colors to allow specifing alpha * Fix replace CSS overwritting consecutive variables * Make navigator icons and other elements themeable * Make connection view themeable * Make item library themeable * Fix item library import path * Update all HelperWidgets * Fix GradientDialogPopup Task-number: QDS-3768 Change-Id: I28a5fed178c95d098db052b8c2eabaa083d37b81 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/qmldesigner/documentwarningwidget.cpp')
-rw-r--r--src/plugins/qmldesigner/documentwarningwidget.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/qmldesigner/documentwarningwidget.cpp b/src/plugins/qmldesigner/documentwarningwidget.cpp
index 08a2a129a9..e691912fb9 100644
--- a/src/plugins/qmldesigner/documentwarningwidget.cpp
+++ b/src/plugins/qmldesigner/documentwarningwidget.cpp
@@ -175,12 +175,11 @@ bool DocumentWarningWidget::eventFilter(QObject *object, QEvent *event)
void DocumentWarningWidget::showEvent(QShowEvent *event)
{
- const QColor backgroundColor = Utils::creatorTheme()->color(Utils::Theme::QmlDesigner_BackgroundColor);
+ const QColor backgroundColor = Utils::creatorTheme()->color(Utils::Theme::DScontrolBackground);
+ const QColor outlineColor = Utils::creatorTheme()->color(Utils::Theme::DScontrolOutline);
QPalette pal = palette();
- QColor color = pal.color(QPalette::ToolTipBase);
- const QColor backgroundNoAlpha = Utils::StyleHelper::alphaBlendedColors(color, backgroundColor);
- color.setAlpha(255);
- pal.setColor(QPalette::ToolTipBase, backgroundNoAlpha);
+ pal.setColor(QPalette::ToolTipBase, backgroundColor);
+ pal.setColor(QPalette::ToolTipText, outlineColor);
setPalette(pal);
m_gotoCodeWasClicked = false;
moveToParentCenter();