forked from qt-creator/qt-creator
Welcome[PageHelpers]: Properly load multi-density images
Some icons were pixelated under HighDPI, because missing file extensions silently broke the multi-resolution loading of icons. This adds the missing ".png" extensions. Change-Id: I0cd8883e0ffa1e37a66d25c829ca343160cf3961 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -298,7 +298,7 @@ constexpr TextFormat searchBoxPlaceholderTF
|
||||
|
||||
static const QPixmap &searchBoxIcon()
|
||||
{
|
||||
static const QPixmap icon = Icon({{FilePath::fromString(":/core/images/search"),
|
||||
static const QPixmap icon = Icon({{FilePath::fromString(":/core/images/search.png"),
|
||||
Theme::Token_Text_Muted}}, Icon::Tint).pixmap();
|
||||
return icon;
|
||||
}
|
||||
@@ -383,7 +383,7 @@ constexpr TextFormat ComboBoxTf
|
||||
|
||||
static const QPixmap &comboBoxIcon()
|
||||
{
|
||||
static const QPixmap icon = Icon({{FilePath::fromString(":/core/images/expandarrow"),
|
||||
static const QPixmap icon = Icon({{FilePath::fromString(":/core/images/expandarrow.png"),
|
||||
ComboBoxTf.themeColor}}, Icon::Tint).pixmap();
|
||||
return icon;
|
||||
}
|
||||
|
@@ -364,7 +364,7 @@ public:
|
||||
: bgR.height()));
|
||||
|
||||
const QSize iconS = icon().deviceIndependentSize().toSize();
|
||||
static const QPixmap arrow = Icon({{FilePath::fromString(":/core/images/expandarrow"),
|
||||
static const QPixmap arrow = Icon({{FilePath::fromString(":/core/images/expandarrow.png"),
|
||||
Theme::Token_Text_Muted}}, Icon::Tint).pixmap();
|
||||
const QSize arrowS = arrow.deviceIndependentSize().toSize();
|
||||
const bool arrowVisible = hovered || expanded;
|
||||
|
Reference in New Issue
Block a user