From 6a19b0efe605dd65cfc5ca8cdcee1ea3898da52c Mon Sep 17 00:00:00 2001 From: skylarmt Date: Fri, 20 Feb 2015 11:00:50 -0700 Subject: [PATCH] Pad theme now set all the time. --- src/net/apocalypselabs/symat/Pads.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/net/apocalypselabs/symat/Pads.java b/src/net/apocalypselabs/symat/Pads.java index 9c88fca..7a6fd29 100644 --- a/src/net/apocalypselabs/symat/Pads.java +++ b/src/net/apocalypselabs/symat/Pads.java @@ -170,8 +170,8 @@ public class Pads extends javax.swing.JInternalFrame { /** * Generate a random pad ID with length 15. - *
There are about 7.6 x 10^26 possibilities (768 septillion). - *
If this starts giving used IDs, I'll be too rich to care. + *
There are about 1.217 x 10^26 possibilities (121 septillion). + *
If this starts giving out used IDs, I'll be too rich to care. * * @return the ID. */ @@ -267,9 +267,11 @@ public class Pads extends javax.swing.JInternalFrame { * @param pad the pad ID */ public static void loadPad(String pad) { - String theme = ""; + String theme = "?theme="; if (Theme.currentTheme == Theme.THEME_DARK) { - theme = "?theme=terminal"; + theme += "terminal"; + } else { + theme += "default"; } MainGUI.loadFrame(new WebBrowser("Pad " + pad, PADS_URL + "/p/" + pad + theme,