mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
UI: fixed font size in what's new button
This commit is contained in:
parent
ba46233dd1
commit
80b7f8493b
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
if (needRegistration) {
|
|
||||||
this.txtUserName.setText(MagePreferences.getUserName(address));
|
this.txtUserName.setText(MagePreferences.getUserName(address));
|
||||||
|
if (needRegistration) {
|
||||||
this.txtPassword.setText(MagePreferences.getPassword(address));
|
this.txtPassword.setText(MagePreferences.getPassword(address));
|
||||||
} else {
|
} else {
|
||||||
this.txtUserName.setText("");
|
|
||||||
this.txtPassword.setText("");
|
this.txtPassword.setText("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue