1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

TabManager: Update close button icon

This commit is contained in:
srazi 2017-04-07 01:06:22 +04:30
parent e40be295ab
commit 457d32ae82
3 changed files with 3 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

View File

@ -66,11 +66,10 @@ void TabManagerDelegate::paint(QPainter* painter, const QStyleOptionViewItem &op
if (index.column() == 1) {
if (index.parent().isValid() && opt.state & QStyle::State_MouseOver) {
static const int buttonSize = 16;
static const QPixmap closeButton = style->standardIcon(QStyle::SP_TitleBarCloseButton)
.pixmap(buttonSize, buttonSize).scaled(buttonSize, buttonSize, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
static const QPixmap closeTabButton(":tabmanager/data/closetab.png");
const QRect rect(opt.rect.right() - buttonSize, (opt.rect.height() - buttonSize) / 2 + opt.rect.y(), buttonSize, buttonSize);
painter->drawPixmap(style->visualRect(direction, opt.rect, rect), closeButton);
painter->drawPixmap(style->visualRect(direction, opt.rect, rect), closeTabButton);
}
painter->restore();

View File

@ -7,6 +7,7 @@
<file>data/tab-loading.png</file>
<file>data/tab-pinned.png</file>
<file>data/side-by-side.png</file>
<file>data/closetab.png</file>
<file>locale/ar_SA.qm</file>
<file>locale/bg_BG.qm</file>
<file>locale/ca_ES.qm</file>