Skip to content

Commit

Permalink
Update some fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
fireduck64 committed Jul 12, 2019
1 parent 280b84c commit 277fff3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
4 changes: 4 additions & 0 deletions iceleaf/src/BasePanel.java
Expand Up @@ -42,6 +42,7 @@
import snowblossom.proto.BalanceInfo;
import javax.swing.JScrollPane;
import javax.swing.JComponent;
import java.awt.Font;

public abstract class BasePanel
{
Expand All @@ -66,6 +67,9 @@ public BasePanel(IceLeaf ice_leaf)
status_box = new JTextArea();
message_box = new JTextArea();

status_box.setFont(new Font("Hack", 0, 12));
message_box.setFont(new Font("Hack", 0, 12));

}

public abstract void setupPanel();
Expand Down
18 changes: 3 additions & 15 deletions iceleaf/src/WalletPanel.java
Expand Up @@ -30,7 +30,6 @@

public class WalletPanel extends BasePanel
{
protected JTextArea wallet_box;
protected WalletUpdateThread update_thread;

protected TreeMap<String, SnowBlossomClient> client_map = new TreeMap<>();
Expand All @@ -53,12 +52,6 @@ public void setupPanel()
c.anchor = GridBagConstraints.NORTHWEST;

c.gridwidth = GridBagConstraints.REMAINDER;
c.weightx=0.0;
c.weighty=0.0;

wallet_box = new JTextArea();
wallet_box.setEditable(false);
panel.add(wallet_box,c);

update_thread = new WalletUpdateThread();
update_thread.start();
Expand Down Expand Up @@ -117,7 +110,7 @@ public void runPass() throws Exception
if (db_dir.isDirectory())
if (db_dir.list().length > 0)
{
sb.append("Wallet: " + getWalletSummary(name, db_dir, config_file) +"\n");
sb.append("Wallet: " + getWalletSummary(name, db_dir, config_file) +"\n\n");
}
}

Expand Down Expand Up @@ -159,7 +152,7 @@ private String getWalletSummary(String name, File db_dir, File config_file)
AddressSpecHash hash = client.getPurse().getUnusedAddress(false, false);
String addr = AddressUtil.getAddressString(client.getParams().getAddressPrefix(), hash);

return String.format("%s - %s - %s",
return String.format("%s - %s\n %s",
name,
SnowBlossomClient.getBalanceInfoPrint(client.getBalance()),
addr
Expand Down Expand Up @@ -208,12 +201,7 @@ private SnowBlossomClient loadWallet(String name, File db_dir, File config_file)

public void setWalletBox(String text)
{
SwingUtilities.invokeLater(new Runnable() {
public void run()
{
wallet_box.setText(text);
}
});
setStatusBox(text);
}


Expand Down

0 comments on commit 277fff3

Please sign in to comment.