Skip to content

Commit

Permalink
Main screen tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mikera committed Dec 4, 2024
1 parent 3228f0f commit 900547c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions convex-gui/src/main/java/convex/gui/MainGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public MainGUI() {
JComponent discord=createLaunchButton("Discord",Toolkit.ECOSYSTEM_ICON,this::launchDiscord,"Go to the Convex community Discord (opens web browser).");
actionPanel.add(discord);

JComponent www=createLaunchButton("convex.world",Toolkit.WWW_ICON,this::launchWebsite,"Go to the Convex main website (opens web browser).");
JComponent www=createLaunchButton("Documentation",Toolkit.WWW_ICON,this::launchWebsite,"Go to the Convex docs website (opens web browser).");
actionPanel.add(www);

add(actionPanel);
Expand Down Expand Up @@ -93,7 +93,7 @@ public HackerTools launchTools() {
}

public void launchWebsite() {
Toolkit.launchBrowser("https://convex.world");
Toolkit.launchBrowser("https://docs.convex.world");
}

public JPanel createLaunchButton(String label, ImageIcon icon, Runnable cmd, String tooltip) {
Expand All @@ -104,6 +104,7 @@ public JPanel createLaunchButton(String label, ImageIcon icon, Runnable cmd, Str
butt.setToolTipText(tooltip);

JLabel lab = new JLabel(label);
lab.setFont(Toolkit.BUTTON_FONT);
lab.setHorizontalAlignment(SwingConstants.CENTER);

JPanel panel=new JPanel();
Expand Down

0 comments on commit 900547c

Please sign in to comment.