Application Icons: Update Linux icons

Fixes: QTCREATORBUG-32616
Change-Id: I88234853eff996efb6b7ba081195dc908f4e9859
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Alessandro Portale
2025-04-09 15:06:09 +02:00
parent e062cba0d0
commit 54f8ff701c
9 changed files with 8 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 414 B

After

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 547 B

After

Width:  |  Height:  |  Size: 485 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@@ -66,9 +66,14 @@ public:
auto ideIconLabel = new QLabel; auto ideIconLabel = new QLabel;
{ {
const QPixmap logo = Core::Icons::QTCREATORLOGO_BIG.pixmap(); const QPixmap logo = Core::Icons::QTCREATORLOGO_BIG.pixmap();
const int iconSize = 40 * logo.devicePixelRatio(); const int logoSize = logo.width();
const QPixmap scaledLogo = logo.scaledToHeight(iconSize, Qt::SmoothTransformation); const int margin = logoSize * 3.0 / 32.0;
ideIconLabel->setPixmap(scaledLogo); const QRect cropR(margin, margin, logoSize - 2 * margin, logoSize - 2 * margin);
const QPixmap croppedLogo = logo.copy(cropR);
const QPixmap scaledCroppedLogo =
croppedLogo.scaledToHeight(40 * logo.devicePixelRatio(),
Qt::SmoothTransformation);
ideIconLabel->setPixmap(scaledCroppedLogo);
ideIconLabel->setFixedHeight(welcomeTF.lineHeight()); ideIconLabel->setFixedHeight(welcomeTF.lineHeight());
} }