diff --git a/CHANGELOG.md b/CHANGELOG.md index 209a0df3..2f61fbe5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ The **"Breaking Changes"** listed below are changes that have been made in the d - Hovering on border metatiles with the mouse will now display their information in the bottom bar. - The last-used directory is now preserved in import/export file dialogs. - Encounter editing has been slightly modified in favor of a more performant ui. +- Pokémon icons in the encounter editor have their transparency set. ### Fixed - Fix the Region Map Editor being opened by the Shortcuts Editor. diff --git a/src/ui/encountertabledelegates.cpp b/src/ui/encountertabledelegates.cpp index f47cc6cd..c381fcae 100644 --- a/src/ui/encountertabledelegates.cpp +++ b/src/ui/encountertabledelegates.cpp @@ -16,7 +16,9 @@ void SpeciesComboDelegate::paint(QPainter *painter, const QStyleOptionViewItem & QPixmap pm; if (!QPixmapCache::find(species, &pm)) { - pm.load(this->project->speciesToIconPath.value(species)); + QImage img(this->project->speciesToIconPath.value(species)); + img.setColor(0, qRgba(0, 0, 0, 0)); + pm = QPixmap::fromImage(img); QPixmapCache::insert(species, pm); } QPixmap monIcon = pm.copy(0, 0, 32, 32);