ernie tweaks

This commit is contained in:
Downforce Agent 2024-07-12 13:16:27 -05:00
parent bfcb21769e
commit 656dbd0975
3 changed files with 35 additions and 6 deletions

View File

@ -1,11 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="Ernie">
<grid id="27dc6" layout-manager="GridLayoutManager" row-count="3" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1" binding="frameContainer">
<grid id="27dc6" binding="frameContainer" layout-manager="GridLayoutManager" row-count="3" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="10" left="5" bottom="5" right="5"/>
<constraints>
<xy x="20" y="20" width="500" height="400"/>
</constraints>
<properties/>
<properties>
<background color="-15128227"/>
<foreground color="-592129"/>
</properties>
<border type="none"/>
<children>
<component id="b5829" class="javax.swing.JLabel">
@ -13,6 +16,8 @@
<grid row="0" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Exo 2"/>
<foreground color="-592129"/>
<text value="A new update for Firestar is available!"/>
</properties>
</component>
@ -21,7 +26,9 @@
<constraints>
<grid row="2" column="0" row-span="1" col-span="2" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
</constraints>
<properties/>
<properties>
<background color="-15128227"/>
</properties>
<border type="none"/>
<children>
<grid id="61273" layout-manager="GridLayoutManager" row-count="1" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
@ -29,7 +36,9 @@
<constraints>
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
</constraints>
<properties/>
<properties>
<background color="-15128227"/>
</properties>
<border type="none"/>
<children>
<component id="56086" class="javax.swing.JButton" binding="notnowbtn">
@ -41,6 +50,11 @@
</grid>
</constraints>
<properties>
<background color="-2271221"/>
<borderPainted value="false"/>
<focusPainted value="false"/>
<font name="Exo 2"/>
<foreground color="-657921"/>
<text value="No Thanks"/>
</properties>
</component>
@ -53,6 +67,11 @@
</grid>
</constraints>
<properties>
<background color="-2271221"/>
<borderPainted value="false"/>
<focusPainted value="false"/>
<font name="Exo 2"/>
<foreground color="-592129"/>
<text value="Open in Browser"/>
</properties>
</component>
@ -68,6 +87,8 @@
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Exo 2"/>
<foreground color="-657921"/>
<text value="If you want to stay on this version,"/>
</properties>
</component>
@ -76,6 +97,8 @@
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Exo 2"/>
<foreground color="-592129"/>
<text value="you can disable this notification in the Options."/>
</properties>
</component>
@ -90,7 +113,11 @@
<children>
<component id="1efd0" class="javax.swing.JEditorPane" binding="changelogDisplay">
<constraints/>
<properties/>
<properties>
<background color="-15128227"/>
<font name="Exo 2"/>
<foreground color="-592129"/>
</properties>
</component>
</children>
</scrollpane>

View File

@ -71,6 +71,7 @@ public class Ernie implements ActionListener, Runnable {
surebtn.addActionListener(this);
changelogDisplay.setEditable(false);
changelogDisplay.setPage(changelog);
changelogDisplay.putClientProperty(JEditorPane.HONOR_DISPLAY_PROPERTIES, Boolean.TRUE); // makes text smaller than joe biden's windmill if font set manually. wtf??
frame.setTitle("An update is available!");
frame.setSize(450, 400);
@ -95,6 +96,7 @@ public class Ernie implements ActionListener, Runnable {
String releasepage = "https://git.worlio.com/bonkmaykr/firestar/releases";
try {
Desktop.getDesktop().browse(new URI(releasepage));
frame.dispose();
} catch (Exception ex) {
JOptionPane.showMessageDialog(frame, "Couldn't open your web browser!\nYou can check out the latest release at the URL below:\n"+releasepage, "Error", JOptionPane.ERROR_MESSAGE);
}

View File

@ -31,7 +31,7 @@ public class Main {
// Build Information
public static final String vstr = "Release 1.3";
public static final String vcode = "Tetsuo";
public static final String vtag = "tetsuo-1.3";
public static final String vtag = "dekka-1.1"; //tetsuo-1.3
public static final int vint = 1;
// User Settings