forked from qt-creator/qt-creator
QmlDesigner: Modify the background color for the ComboBoxes on ToolBar
Task-number: QDS-10706 Change-Id: Id67479d771ee0f8ac6b6116703ad2821517374cd Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -728,8 +728,17 @@ void ManhattanStyle::drawPrimitiveForPanelWidget(PrimitiveElement element,
|
||||
painter->drawLine(borderRect.topRight(), borderRect.bottomRight());
|
||||
}
|
||||
} else if (option->state & State_Enabled && option->state & State_MouseOver) {
|
||||
StyleHelper::drawPanelBgRect(
|
||||
painter, rect, creatorTheme()->color(Theme::FancyToolButtonHoverColor));
|
||||
if (widget->property(StyleHelper::C_TOOLBAR_ACTIONWIDGET).toBool()) {
|
||||
painter->save();
|
||||
painter->setBrush(creatorTheme()->color(Theme::FancyToolButtonHoverColor));
|
||||
painter->drawRoundedRect(rect, 5, 5);
|
||||
painter->restore();
|
||||
} else {
|
||||
StyleHelper::drawPanelBgRect(painter,
|
||||
rect,
|
||||
creatorTheme()->color(
|
||||
Theme::FancyToolButtonHoverColor));
|
||||
}
|
||||
}
|
||||
if (option->state & State_HasFocus && (option->state & State_KeyboardFocusChange)) {
|
||||
QColor highlight = option->palette.highlight().color();
|
||||
|
||||
Reference in New Issue
Block a user