forked from qt-creator/qt-creator
ManhattanStyle: Themable arrows
This change makes arrows in e.g. ComboBoxes themable. This also improves the clear distinction between enabled and disabled state. Change-Id: If40dcd3e162ad71d1bc6507c047203aa60e09ee6 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
@@ -736,7 +736,7 @@ void ManhattanStyle::drawControl(ControlElement element, const QStyleOption *opt
|
||||
if (creatorTheme()->flag(Theme::ComboBoxDrawTextShadow)
|
||||
&& (option->state & State_Enabled))
|
||||
{
|
||||
painter->setPen(QColor(0, 0, 0, 70));
|
||||
painter->setPen(StyleHelper::toolBarDropShadowColor());
|
||||
painter->drawText(editRect.adjusted(1, 0, -1, 0), Qt::AlignLeft | Qt::AlignVCenter, text);
|
||||
}
|
||||
if (!(option->state & State_Enabled))
|
||||
|
||||
Reference in New Issue
Block a user