forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/3.3'
Conflicts: src/plugins/debugger/watchhandler.cpp src/plugins/projectexplorer/kitmodel.cpp src/plugins/qbsprojectmanager/qbsprojectmanager.cpp src/shared/qbs Change-Id: I6a68090993a264e93ac7850858cc24ba6bdb5602
This commit is contained in:
@@ -135,12 +135,12 @@ void TargetSelectorDelegate::paint(QPainter *painter,
|
||||
selectionGradient.load(QLatin1String(":/projectexplorer/images/targetpanel_gradient.png"));
|
||||
|
||||
if (option.state & QStyle::State_Selected) {
|
||||
const QColor color = (option.state & QStyle::State_HasFocus) ?
|
||||
option.palette.highlight().color() :
|
||||
option.palette.dark().color();
|
||||
if (creatorTheme()->widgetStyle() == Theme::StyleFlat) {
|
||||
painter->fillRect(option.rect, creatorTheme()->color(Theme::BackgroundColorSelected));
|
||||
painter->fillRect(option.rect, color);
|
||||
} else {
|
||||
QColor color =(option.state & QStyle::State_HasFocus) ?
|
||||
option.palette.highlight().color() :
|
||||
option.palette.dark().color();
|
||||
painter->fillRect(option.rect, color.darker(140));
|
||||
StyleHelper::drawCornerImage(selectionGradient, painter, option.rect.adjusted(0, 0, 0, -1), 5, 5, 5, 5);
|
||||
painter->setPen(QColor(255, 255, 255, 60));
|
||||
|
||||
Reference in New Issue
Block a user