forked from External/mage
GUI: improved GUI scale support (fixed font sizes in card icons popup, ability picker dialog, part of #969)
This commit is contained in:
parent
393dbc4047
commit
ba929d5692
6 changed files with 19 additions and 14 deletions
|
|
@ -327,8 +327,10 @@ public class CardIconsPanel extends JPanel {
|
|||
BufferedImage iconImageWithText = ImageManagerImpl.deepCopy(iconImageCached); // must copy cached value before modify
|
||||
|
||||
// text
|
||||
String hint = ManaSymbols.replaceSymbolsWithHTML(icon.getHint(), ManaSymbols.Type.CARD_ICON_HINT);
|
||||
hint = GUISizeHelper.textToHtmlWithSize(hint, GUISizeHelper.cardTooltipFontSize);
|
||||
JLabel label = new JLabel();
|
||||
label.setToolTipText("<html>" + ManaSymbols.replaceSymbolsWithHTML(icon.getHint(), ManaSymbols.Type.CARD_ICON_HINT));
|
||||
label.setToolTipText("<html>" + hint);
|
||||
if (!icon.getText().isEmpty()) {
|
||||
Graphics2D g2 = iconImageWithText.createGraphics();
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue