Merge pull request #818 from flowln/tiny_mod_icons
Always scale mod icons to the right size
This commit is contained in:
commit
7aba7b6064
2 changed files with 6 additions and 1 deletions
|
@ -87,6 +87,7 @@ auto ModpackListModel::data(const QModelIndex& index, int role) const -> QVarian
|
|||
} else if (role == Qt::DecorationRole) {
|
||||
if (m_logoMap.contains(pack.iconName)) {
|
||||
auto icon = m_logoMap.value(pack.iconName);
|
||||
// FIXME: This doesn't really belong here, but Qt doesn't offer a good way right now ;(
|
||||
auto icon_scaled = QIcon(icon.pixmap(48, 48).scaledToWidth(48));
|
||||
|
||||
return icon_scaled;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue