From a1f1451ed140bf1e9934056c5fb3942514a7916b Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Wed, 3 Jul 2024 13:31:52 +0200 Subject: [PATCH] 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 --- src/plugins/coreplugin/welcomepagehelper.cpp | 4 ++-- src/plugins/projectexplorer/projectwelcomepage.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/coreplugin/welcomepagehelper.cpp b/src/plugins/coreplugin/welcomepagehelper.cpp index 1486ba95ea1..b8ab8c8e3bd 100644 --- a/src/plugins/coreplugin/welcomepagehelper.cpp +++ b/src/plugins/coreplugin/welcomepagehelper.cpp @@ -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; } diff --git a/src/plugins/projectexplorer/projectwelcomepage.cpp b/src/plugins/projectexplorer/projectwelcomepage.cpp index 34ffab0b18a..a0eca157995 100644 --- a/src/plugins/projectexplorer/projectwelcomepage.cpp +++ b/src/plugins/projectexplorer/projectwelcomepage.cpp @@ -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;