mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
GUI: fixed wrong card icon rendering after theme change
This commit is contained in:
parent
743143acde
commit
d67376641a
1 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,7 @@ package mage.client.themes;
|
|||
import mage.abilities.hint.HintUtils;
|
||||
import mage.abilities.icon.CardIconColor;
|
||||
import org.mage.card.arcane.SvgUtils;
|
||||
import org.mage.plugins.card.images.ImageCache;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
|
@ -347,5 +348,8 @@ public enum ThemeType {
|
|||
for (CardIconColor cardIconColor : CardIconColor.values()) {
|
||||
SvgUtils.prepareCss(this.getCardIconsCssFile(cardIconColor), this.getCardIconsCssSettings(cardIconColor), true);
|
||||
}
|
||||
|
||||
// reload card icons and other rendering things from cache - it can depend on current theme
|
||||
ImageCache.clearCache();
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue