Add "S" watermark to main screen to liven it up
This commit is contained in:
parent
03fe94e0ba
commit
3219d526ed
@ -170,6 +170,9 @@
|
||||
<Color blue="ff" green="ff" red="ff" type="rgb"/>
|
||||
</Property>
|
||||
<Property name="horizontalAlignment" type="int" value="0"/>
|
||||
<Property name="toolTipText" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||
<Connection code="""" type="code"/>
|
||||
</Property>
|
||||
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||
<Dimension value="[300, 300]"/>
|
||||
</Property>
|
||||
|
@ -160,6 +160,7 @@ public class Graph extends javax.swing.JInternalFrame {
|
||||
|
||||
gLbl.setBackground(new java.awt.Color(255, 255, 255));
|
||||
gLbl.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
||||
gLbl.setToolTipText("");
|
||||
gLbl.setMaximumSize(new java.awt.Dimension(300, 300));
|
||||
gLbl.setMinimumSize(new java.awt.Dimension(300, 300));
|
||||
gLbl.setOpaque(true);
|
||||
|
@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<Form version="1.5" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
|
||||
<Form version="1.9" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
|
||||
<Properties>
|
||||
<Property name="defaultCloseOperation" type="int" value="3"/>
|
||||
<Property name="title" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||
<Connection code="APP_NAME" type="code"/>
|
||||
</Property>
|
||||
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||
<Dimension value="[300, 400]"/>
|
||||
<Dimension value="[640, 540]"/>
|
||||
</Property>
|
||||
</Properties>
|
||||
<SyntheticProperties>
|
||||
@ -330,15 +330,32 @@
|
||||
<Layout>
|
||||
<DimensionLayout dim="0">
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
||||
<Group type="102" alignment="1" attributes="0">
|
||||
<EmptySpace max="32767" attributes="0"/>
|
||||
<Component id="jLabel2" min="-2" pref="125" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
</Group>
|
||||
</Group>
|
||||
</DimensionLayout>
|
||||
<DimensionLayout dim="1">
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<EmptySpace min="0" pref="481" max="32767" attributes="0"/>
|
||||
<Group type="102" alignment="1" attributes="0">
|
||||
<EmptySpace pref="295" max="32767" attributes="0"/>
|
||||
<Component id="jLabel2" min="-2" pref="175" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
</Group>
|
||||
</Group>
|
||||
</DimensionLayout>
|
||||
</Layout>
|
||||
<SubComponents>
|
||||
<Component class="javax.swing.JLabel" name="jLabel2">
|
||||
<Properties>
|
||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
||||
<Image iconType="3" name="/net/apocalypselabs/symat/images/watermark.png"/>
|
||||
</Property>
|
||||
</Properties>
|
||||
</Component>
|
||||
</SubComponents>
|
||||
</Container>
|
||||
</SubComponents>
|
||||
</Form>
|
||||
|
@ -42,14 +42,16 @@ import javax.swing.ImageIcon;
|
||||
import javax.swing.JInternalFrame;
|
||||
|
||||
/**
|
||||
* This class is like the Force: A light theme, a dark theme, and it binds the
|
||||
* app together. Also like duct tape, but that's not as cool.
|
||||
*
|
||||
* @author Skylar
|
||||
*/
|
||||
public class MainGUI extends javax.swing.JFrame {
|
||||
|
||||
public static final String APP_NAME = "SyMAT 0.9";
|
||||
public static final double APP_CODE = 10;
|
||||
public static final String VERSION_NAME = "0.9";
|
||||
// TODO: Add more code comments and stuff in case anybody else reads this
|
||||
public static final String APP_NAME = "SyMAT 0.9.1";
|
||||
public static final double APP_CODE = 11;
|
||||
public static final String VERSION_NAME = "0.9.1";
|
||||
public static final String API_URL = "https://apis.symatapp.com/";
|
||||
public static String argfile = "";
|
||||
public static boolean skipPython = false; // Skip python init on start?
|
||||
@ -217,10 +219,11 @@ public class MainGUI extends javax.swing.JFrame {
|
||||
}
|
||||
}
|
||||
;
|
||||
jLabel2 = new javax.swing.JLabel();
|
||||
|
||||
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
|
||||
setTitle(APP_NAME);
|
||||
setMinimumSize(new java.awt.Dimension(300, 400));
|
||||
setMinimumSize(new java.awt.Dimension(640, 540));
|
||||
addComponentListener(new java.awt.event.ComponentAdapter() {
|
||||
public void componentShown(java.awt.event.ComponentEvent evt) {
|
||||
formComponentShown(evt);
|
||||
@ -397,16 +400,25 @@ public class MainGUI extends javax.swing.JFrame {
|
||||
mainPane.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
|
||||
mainPane.setOpaque(false);
|
||||
|
||||
jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/net/apocalypselabs/symat/images/watermark.png"))); // NOI18N
|
||||
|
||||
javax.swing.GroupLayout mainPaneLayout = new javax.swing.GroupLayout(mainPane);
|
||||
mainPane.setLayout(mainPaneLayout);
|
||||
mainPaneLayout.setHorizontalGroup(
|
||||
mainPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addGap(0, 0, Short.MAX_VALUE)
|
||||
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPaneLayout.createSequentialGroup()
|
||||
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addContainerGap())
|
||||
);
|
||||
mainPaneLayout.setVerticalGroup(
|
||||
mainPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addGap(0, 481, Short.MAX_VALUE)
|
||||
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPaneLayout.createSequentialGroup()
|
||||
.addContainerGap(295, Short.MAX_VALUE)
|
||||
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addContainerGap())
|
||||
);
|
||||
mainPane.setLayer(jLabel2, javax.swing.JLayeredPane.DEFAULT_LAYER);
|
||||
|
||||
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
|
||||
getContentPane().setLayout(layout);
|
||||
@ -600,6 +612,7 @@ public class MainGUI extends javax.swing.JFrame {
|
||||
public static javax.swing.JButton graphBtn;
|
||||
public static javax.swing.JButton helpBtn;
|
||||
public static javax.swing.JLabel jLabel1;
|
||||
public static javax.swing.JLabel jLabel2;
|
||||
public static javax.swing.JLabel jLabel3;
|
||||
public static javax.swing.JPanel jPanel2;
|
||||
public static javax.swing.JPanel jPanel4;
|
||||
|
BIN
src/net/apocalypselabs/symat/images/watermark.png
Normal file
BIN
src/net/apocalypselabs/symat/images/watermark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
Loading…
x
Reference in New Issue
Block a user