style changes

This commit is contained in:
Downforce Agent 2024-07-01 14:51:36 -05:00
parent 5f0de49399
commit c372ff315e
4 changed files with 75 additions and 4 deletions

BIN
resources/exo2.ttf Normal file

Binary file not shown.

View File

@ -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<Mod> Mods = new ArrayList<Mod>();
// 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()) {

View File

@ -5,7 +5,10 @@
<constraints>
<xy x="20" y="20" width="500" height="400"/>
</constraints>
<properties/>
<properties>
<background color="-1"/>
<foreground color="-592129"/>
</properties>
<border type="none"/>
<children>
<grid id="6cdb1" binding="descriptionContainer" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
@ -17,7 +20,10 @@
<maximum-size width="300" height="-1"/>
</grid>
</constraints>
<properties/>
<properties>
<background color="-526337"/>
<foreground color="-592129"/>
</properties>
<border type="line" title="Description"/>
<children>
<component id="a9cee" class="javax.swing.JTextPane" binding="descriptionField">
@ -38,7 +44,10 @@
<constraints>
<grid row="0" column="1" row-span="2" col-span="1" vsize-policy="7" hsize-policy="7" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
</constraints>
<properties/>
<properties>
<background color="-526337"/>
<foreground color="-526337"/>
</properties>
<border type="line" title="Mods List" title-justification="1" title-position="2">
<font/>
</border>
@ -64,7 +73,10 @@
<maximum-size width="300" height="200"/>
</grid>
</constraints>
<properties/>
<properties>
<background color="-526337"/>
<foreground color="-657921"/>
</properties>
<border type="line" title="Actions"/>
<children>
<component id="3cd60" class="javax.swing.JButton" binding="toggleButton" default-binding="true">
@ -75,6 +87,10 @@
</grid>
</constraints>
<properties>
<background color="-15128227"/>
<borderPainted value="false"/>
<font name="Exo 2" style="1"/>
<foreground color="-657921"/>
<text value="Toggle"/>
</properties>
</component>
@ -86,6 +102,10 @@
</grid>
</constraints>
<properties>
<background color="-15128227"/>
<borderPainted value="false"/>
<font name="Exo 2" style="1"/>
<foreground color="-657921"/>
<text value="Move Up"/>
</properties>
</component>
@ -98,6 +118,11 @@
</grid>
</constraints>
<properties>
<alignmentX value="0.0"/>
<background color="-15128227"/>
<borderPainted value="false"/>
<font name="Exo 2" style="1"/>
<foreground color="-657921"/>
<text value="Delete"/>
</properties>
</component>
@ -110,6 +135,10 @@
</grid>
</constraints>
<properties>
<background color="-15128227"/>
<borderPainted value="false"/>
<font name="Exo 2" style="1"/>
<foreground color="-592129"/>
<text value="Move Down"/>
</properties>
</component>
@ -120,6 +149,10 @@
</grid>
</constraints>
<properties>
<background color="-15128227"/>
<borderPainted value="false"/>
<font name="Exo 2" style="1"/>
<foreground color="-592129"/>
<text value="Options"/>
</properties>
</component>
@ -130,6 +163,10 @@
</grid>
</constraints>
<properties>
<background color="-15128227"/>
<borderPainted value="false"/>
<font name="Exo 2" style="1"/>
<foreground color="-526337"/>
<text value="Import"/>
</properties>
</component>
@ -141,6 +178,10 @@
</grid>
</constraints>
<properties>
<background color="-15128227"/>
<borderPainted value="false"/>
<font name="Exo 2" style="1"/>
<foreground color="-657921"/>
<text value="Deploy"/>
</properties>
</component>

View File

@ -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");