forked from qt-creator/qt-creator
Core: Unify the close icons
Use the same image file and recolor it as needed, Change-Id: I914819a53ca05d83ca5b88adf44706b460b48ac0 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
@@ -88,8 +88,8 @@ void OpenDocumentsDelegate::paint(QPainter *painter, const QStyleOptionViewItem
|
||||
|
||||
if (closeButtonVisible && index.column() == 1 && option.state & QStyle::State_MouseOver) {
|
||||
const QIcon icon = (option.state & QStyle::State_Selected) ?
|
||||
Icons::CLOSE_BUTTON.icon()
|
||||
: Icons::DARK_CLOSE_BUTTON.icon();
|
||||
Icons::CLOSE_BACKGROUND.icon()
|
||||
: Icons::CLOSE_FOREGROUND.icon();
|
||||
|
||||
QRect iconRect(option.rect.right() - option.rect.height(),
|
||||
option.rect.top(),
|
||||
|
||||
Reference in New Issue
Block a user