Application Icons: Update Linux icons
Fixes: QTCREATORBUG-32616 Change-Id: I88234853eff996efb6b7ba081195dc908f4e9859 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 414 B After Width: | Height: | Size: 381 B |
Before Width: | Height: | Size: 547 B After Width: | Height: | Size: 485 B |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.1 KiB |
@@ -66,9 +66,14 @@ public:
|
||||
auto ideIconLabel = new QLabel;
|
||||
{
|
||||
const QPixmap logo = Core::Icons::QTCREATORLOGO_BIG.pixmap();
|
||||
const int iconSize = 40 * logo.devicePixelRatio();
|
||||
const QPixmap scaledLogo = logo.scaledToHeight(iconSize, Qt::SmoothTransformation);
|
||||
ideIconLabel->setPixmap(scaledLogo);
|
||||
const int logoSize = logo.width();
|
||||
const int margin = logoSize * 3.0 / 32.0;
|
||||
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());
|
||||
}
|
||||
|
||||
|