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:
parent
e40be295ab
commit
457d32ae82
BIN
src/plugins/TabManager/data/closetab.png
Normal file
BIN
src/plugins/TabManager/data/closetab.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 696 B |
|
@ -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();
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user