forked from qt-creator/qt-creator
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>
This commit is contained in:
committed by
Tim Jenssen
parent
05701491a1
commit
db6ad528bb
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user