Qt: Use Qt::SmoothTransformation for Background Image

This commit is contained in:
Xphalnos 2025-02-15 11:48:47 +01:00
parent 290e127a4f
commit 47aea76da6
2 changed files with 4 additions and 2 deletions

View File

@ -197,7 +197,8 @@ void GameGridFrame::RefreshGridBackgroundImage() {
QPalette palette;
if (!backgroundImage.isNull() && Config::getShowBackgroundImage()) {
palette.setBrush(QPalette::Base,
QBrush(backgroundImage.scaled(size(), Qt::IgnoreAspectRatio)));
QBrush(backgroundImage.scaled(size(), Qt::IgnoreAspectRatio,
Qt::SmoothTransformation)));
}
QColor transparentColor = QColor(135, 206, 235, 40);
palette.setColor(QPalette::Highlight, transparentColor);

View File

@ -201,7 +201,8 @@ void GameListFrame::RefreshListBackgroundImage() {
QPalette palette;
if (!backgroundImage.isNull() && Config::getShowBackgroundImage()) {
palette.setBrush(QPalette::Base,
QBrush(backgroundImage.scaled(size(), Qt::IgnoreAspectRatio)));
QBrush(backgroundImage.scaled(size(), Qt::IgnoreAspectRatio,
Qt::SmoothTransformation)));
}
QColor transparentColor = QColor(135, 206, 235, 40);
palette.setColor(QPalette::Highlight, transparentColor);