* Some fixes to font size change of chat panels.

This commit is contained in:
LevelX2 2016-02-08 16:16:19 +01:00
parent 6b20f7733a
commit 77a8e3e7a9
5 changed files with 35 additions and 20 deletions

View file

@ -27,8 +27,10 @@
*/
package mage.client.chat;
import java.awt.Font;
import static mage.client.chat.ChatPanelBasic.TIMESTAMP_COLOR;
import mage.client.components.ColorPane;
import mage.client.util.FontSizeHelper;
import mage.view.ChatMessage;
import org.mage.card.arcane.ManaSymbols;
@ -103,6 +105,15 @@ public class ChatPanelSeparated extends ChatPanelBasic {
public void setSystemMessagesPane(ColorPane systemMessagesPane) {
this.systemMessagesPane = systemMessagesPane;
changeGUISize(FontSizeHelper.getChatFont());
}
@Override
public void changeGUISize(Font font) {
if (systemMessagesPane != null) {
systemMessagesPane.setFont(font);
}
super.changeGUISize(font);
}
}