UI: fixed font size in what's new button

This commit is contained in:
Oleg Agafonov 2020-04-16 11:10:50 +04:00
parent ba46233dd1
commit 80b7f8493b
2 changed files with 3 additions and 3 deletions

View file

@ -96,11 +96,10 @@ public class ConnectDialog extends MageDialog {
private void setServerSettings(String address, String port, boolean needRegistration) { private void setServerSettings(String address, String port, boolean needRegistration) {
this.txtServer.setText(address); this.txtServer.setText(address);
this.txtPort.setText(port); this.txtPort.setText(port);
this.txtUserName.setText(MagePreferences.getUserName(address));
if (needRegistration) { if (needRegistration) {
this.txtUserName.setText(MagePreferences.getUserName(address));
this.txtPassword.setText(MagePreferences.getPassword(address)); this.txtPassword.setText(MagePreferences.getPassword(address));
} else { } else {
this.txtUserName.setText("");
this.txtPassword.setText(""); this.txtPassword.setText("");
} }
} }

View file

@ -582,6 +582,7 @@ public class TablesPanel extends javax.swing.JPanel {
Dimension newDimension = new Dimension((int) jPanelBottom.getPreferredSize().getWidth(), GUISizeHelper.menuFont.getSize() + 28); Dimension newDimension = new Dimension((int) jPanelBottom.getPreferredSize().getWidth(), GUISizeHelper.menuFont.getSize() + 28);
jPanelBottom.setMinimumSize(newDimension); jPanelBottom.setMinimumSize(newDimension);
jPanelBottom.setPreferredSize(newDimension); jPanelBottom.setPreferredSize(newDimension);
buttonWhatsNew.setFont(GUISizeHelper.menuFont);
buttonNextMessage.setFont(GUISizeHelper.menuFont); buttonNextMessage.setFont(GUISizeHelper.menuFont);
labelMessageHeader.setFont(new Font(GUISizeHelper.menuFont.getName(), Font.BOLD, GUISizeHelper.menuFont.getSize())); labelMessageHeader.setFont(new Font(GUISizeHelper.menuFont.getName(), Font.BOLD, GUISizeHelper.menuFont.getSize()));
labelMessageText.setFont(GUISizeHelper.menuFont); labelMessageText.setFont(GUISizeHelper.menuFont);
@ -1569,7 +1570,7 @@ public class TablesPanel extends javax.swing.JPanel {
jPanelBottom.setPreferredSize(new java.awt.Dimension(516, 37)); jPanelBottom.setPreferredSize(new java.awt.Dimension(516, 37));
jPanelBottom.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT)); jPanelBottom.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));
buttonWhatsNew.setText("Show that's new"); buttonWhatsNew.setText("Show what's new");
buttonWhatsNew.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); buttonWhatsNew.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
buttonWhatsNew.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); buttonWhatsNew.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
buttonWhatsNew.setOpaque(false); buttonWhatsNew.setOpaque(false);