GUI: improved gui scale support (part of #969, #6887):

- added GUI scale support for dialog titles;
- added GUI scale support for hints tool;
- fixed broken font in chat and game logs on settings change;
- fixed wrong size of pick choice dialog in some use cases;
This commit is contained in:
Oleg Agafonov 2024-07-28 11:47:12 +04:00
parent 1578ab7946
commit 8186b35dfb
9 changed files with 56 additions and 26 deletions

View file

@ -92,9 +92,6 @@ public class ChatPanelBasic extends javax.swing.JPanel {
protected boolean startMessageDone = false;
/**
* Creates new form ChatPanel
*/
public ChatPanelBasic() {
initComponents();
txtConversation.enableHyperlinksAndCardPopups();
@ -117,7 +114,7 @@ public class ChatPanelBasic extends javax.swing.JPanel {
}
public void changeGUISize(Font font) {
txtConversation.setFont(font);
txtConversation.changeGUISize(font);
txtMessage.setFont(font);
if (jScrollPaneTxt != null) {
jScrollPaneTxt.setFont(font);