diff --git a/resources/exo2.ttf b/resources/exo2.ttf new file mode 100644 index 0000000..b97509d Binary files /dev/null and b/resources/exo2.ttf differ diff --git a/src/Main.java b/src/Main.java index f75b595..dace9ba 100644 --- a/src/Main.java +++ b/src/Main.java @@ -18,9 +18,11 @@ import org.json.*; +import java.awt.*; import java.io.*; import java.nio.file.*; import java.util.*; +import java.util.List; import javax.swing.JOptionPane; public class Main { @@ -54,6 +56,9 @@ public class Main { // Mods public static List Mods = new ArrayList(); + // UI Global Assets + public static Font fExo2; + public static void main(String[] args) { // license string System.out.printf("FIRESTAR MOD MANAGER for WipEout 2048\nversion " + vstr + " (codename " + vcode + ") major " + vint + "\n" + @@ -73,6 +78,14 @@ public class Main { "along with this program. If not, see https://www.gnu.org/licenses/.\n\n\n\n"); //begin + // load global assets + try { + fExo2 = Font.createFont(Font.TRUETYPE_FONT, new File(System.getProperty("user.dir") + "/resources/exo2.ttf")); + } catch (Exception e) { + System.out.println("Font \"Exo 2\" is missing!"); + fExo2 = new Font("Arial", Font.PLAIN, 12); + } + // check and load configs File fConf = new File(System.getProperty("user.home") + "/.firestar/firestar.conf"); if (!fConf.isFile()) { diff --git a/src/MasterWindowLayout.form b/src/MasterWindowLayout.form index 35191b2..119185d 100644 --- a/src/MasterWindowLayout.form +++ b/src/MasterWindowLayout.form @@ -5,7 +5,10 @@ - + + + + @@ -17,7 +20,10 @@ - + + + + @@ -38,7 +44,10 @@ - + + + + @@ -64,7 +73,10 @@ - + + + + @@ -75,6 +87,10 @@ + + + + @@ -86,6 +102,10 @@ + + + + @@ -98,6 +118,11 @@ + + + + + @@ -110,6 +135,10 @@ + + + + @@ -120,6 +149,10 @@ + + + + @@ -130,6 +163,10 @@ + + + + @@ -141,6 +178,10 @@ + + + + diff --git a/src/MissPiggy.java b/src/MissPiggy.java index ac82a88..4f81151 100644 --- a/src/MissPiggy.java +++ b/src/MissPiggy.java @@ -152,6 +152,23 @@ public class MissPiggy implements ActionListener { } catch (IOException e) { System.out.println("ERROR: Failed to find /resources/titleIcon.png. Window will not have an icon."); } + + menuBar.setBackground(new Color(25, 41, 93)); + fileMenu.setForeground(new Color(255, 255, 255)); + fileMenu.setFont(Main.fExo2.deriveFont(Font.BOLD).deriveFont(12f)); + toolsMenu.setForeground(new Color(255, 255, 255)); + toolsMenu.setFont(Main.fExo2.deriveFont(Font.BOLD).deriveFont(12f)); + helpMenu.setForeground(new Color(255, 255, 255)); + helpMenu.setFont(Main.fExo2.deriveFont(Font.BOLD).deriveFont(12f)); + + toggleButton.setFont(Main.fExo2.deriveFont(Font.BOLD).deriveFont(12f)); + deleteButton1.setFont(Main.fExo2.deriveFont(Font.BOLD).deriveFont(12f)); + moveDownButton.setFont(Main.fExo2.deriveFont(Font.BOLD).deriveFont(12f)); + moveUpButton.setFont(Main.fExo2.deriveFont(Font.BOLD).deriveFont(12f)); + optionsButton.setFont(Main.fExo2.deriveFont(Font.BOLD).deriveFont(12f)); + importButton.setFont(Main.fExo2.deriveFont(Font.BOLD).deriveFont(12f)); + deployButton.setFont(Main.fExo2.deriveFont(Font.BOLD).deriveFont(12f)); + frame.setSize(800, 600); // 1280 800 frame.setMinimumSize(new Dimension(640,480)); frame.setTitle("Firestar Mod Manager");