mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
Qt: Use Qt::SmoothTransformation for Background Image
This commit is contained in:
parent
290e127a4f
commit
47aea76da6
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user