Update application icons
Fixes: QTCREATORBUG-32142 Change-Id: Ic841b4066d6f66fd975d649c86dfed15d32ab2e4 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Kai Köhne <kai.koehne@qt.io>
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 515 B After Width: | Height: | Size: 414 B |
Before Width: | Height: | Size: 557 B After Width: | Height: | Size: 547 B |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 790 B After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 126 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 511 B After Width: | Height: | Size: 538 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1007 B |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1007 B |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 93 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 515 B After Width: | Height: | Size: 381 B |
Before Width: | Height: | Size: 790 B After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 790 B After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 53 KiB |
@@ -14,6 +14,7 @@
|
|||||||
#include <utils/layoutbuilder.h>
|
#include <utils/layoutbuilder.h>
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
#include <utils/stringutils.h>
|
#include <utils/stringutils.h>
|
||||||
|
#include <utils/stylehelper.h>
|
||||||
#include <utils/utilsicons.h>
|
#include <utils/utilsicons.h>
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
@@ -46,6 +47,8 @@ VersionDialog::VersionDialog()
|
|||||||
|
|
||||||
auto logoLabel = new QLabel;
|
auto logoLabel = new QLabel;
|
||||||
logoLabel->setPixmap(Icons::QTCREATORLOGO_BIG.pixmap());
|
logoLabel->setPixmap(Icons::QTCREATORLOGO_BIG.pixmap());
|
||||||
|
const int margin = Utils::StyleHelper::SpacingTokens::ExPaddingGapL;
|
||||||
|
logoLabel->setContentsMargins({margin, margin, margin, margin});
|
||||||
|
|
||||||
auto copyRightLabel = new QLabel(ICore::aboutInformationHtml());
|
auto copyRightLabel = new QLabel(ICore::aboutInformationHtml());
|
||||||
copyRightLabel->setWordWrap(true);
|
copyRightLabel->setWordWrap(true);
|
||||||
|
@@ -65,15 +65,10 @@ 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 size = logo.width();
|
const int iconSize = 40 * logo.devicePixelRatio();
|
||||||
const QRect cropR = size == 128 ? QRect(9, 22, 110, 84) : QRect(17, 45, 222, 166);
|
const QPixmap scaledLogo = logo.scaledToHeight(iconSize, Qt::SmoothTransformation);
|
||||||
const QPixmap croppedLogo = logo.copy(cropR);
|
ideIconLabel->setPixmap(scaledLogo);
|
||||||
const int lineHeight = welcomeTF.lineHeight();
|
ideIconLabel->setFixedHeight(welcomeTF.lineHeight());
|
||||||
const QPixmap scaledCroppedLogo =
|
|
||||||
croppedLogo.scaledToHeight((lineHeight - 12) * croppedLogo.devicePixelRatioF(),
|
|
||||||
Qt::SmoothTransformation);
|
|
||||||
ideIconLabel->setPixmap(scaledCroppedLogo);
|
|
||||||
ideIconLabel->setFixedHeight(lineHeight);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto welcomeLabel = new ElidingLabel(Tr::tr("Welcome to %1")
|
auto welcomeLabel = new ElidingLabel(Tr::tr("Welcome to %1")
|
||||||
@@ -88,7 +83,7 @@ public:
|
|||||||
ideIconLabel,
|
ideIconLabel,
|
||||||
welcomeLabel,
|
welcomeLabel,
|
||||||
st,
|
st,
|
||||||
spacing(ExVPaddingGapXl),
|
spacing(HGapM),
|
||||||
customMargins(HPaddingM, VPaddingM, HPaddingM, VPaddingM),
|
customMargins(HPaddingM, VPaddingM, HPaddingM, VPaddingM),
|
||||||
},
|
},
|
||||||
createRule(Qt::Horizontal),
|
createRule(Qt::Horizontal),
|
||||||
|
Before Width: | Height: | Size: 126 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |