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:
Alessandro Portale
2024-07-03 13:31:52 +02:00
parent 560d63bb37
commit a1f1451ed1
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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;