mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
minor change
This commit is contained in:
@@ -308,11 +308,11 @@ public abstract class AbstractLeadedComponent<T> extends AbstractTransparentComp
|
|||||||
g2d.setColor(finalLabelColor);
|
g2d.setColor(finalLabelColor);
|
||||||
FontMetrics fontMetrics = g2d.getFontMetrics();
|
FontMetrics fontMetrics = g2d.getFontMetrics();
|
||||||
String label = "";
|
String label = "";
|
||||||
label = display == Display.NAME ? getName() : (getValue() == null ? "" : getValue().toString());
|
label = getDisplay() == Display.NAME ? getName() : (getValue() == null ? "" : getValue().toString());
|
||||||
if (display == Display.NONE) {
|
if (getDisplay() == Display.NONE) {
|
||||||
label = "";
|
label = "";
|
||||||
}
|
}
|
||||||
if (display == Display.BOTH) {
|
if (getDisplay() == Display.BOTH) {
|
||||||
label = getName() + " " + (getValue() == null ? "" : getValue().toString());
|
label = getName() + " " + (getValue() == null ? "" : getValue().toString());
|
||||||
}
|
}
|
||||||
Rectangle2D textRect = fontMetrics.getStringBounds(label, g2d);
|
Rectangle2D textRect = fontMetrics.getStringBounds(label, g2d);
|
||||||
|
|||||||
@@ -103,7 +103,7 @@
|
|||||||
jvmrequired="1.8"
|
jvmrequired="1.8"
|
||||||
copyright="Branislav Stojkovic, a.k.a. bancika"
|
copyright="Branislav Stojkovic, a.k.a. bancika"
|
||||||
displayname="DIY Layout Creator"
|
displayname="DIY Layout Creator"
|
||||||
identifier="org.diylc.App"
|
identifier="org.diylc.Desktop"
|
||||||
shortversion="${diylc.version}"
|
shortversion="${diylc.version}"
|
||||||
applicationCategory="public.app-category.graphics-design"
|
applicationCategory="public.app-category.graphics-design"
|
||||||
icon="diylc.icns"
|
icon="diylc.icns"
|
||||||
@@ -112,7 +112,6 @@
|
|||||||
<classpath file="${jar.dir}\diylc.jar" />
|
<classpath file="${jar.dir}\diylc.jar" />
|
||||||
<classpath file="${jar.dir}\lib\*.jar" />
|
<classpath file="${jar.dir}\lib\*.jar" />
|
||||||
<classpath file="${jar.dir}\library\*.jar" />
|
<classpath file="${jar.dir}\library\*.jar" />
|
||||||
<option value="-splash:splash.png" />
|
|
||||||
<option value="-Xms512m" />
|
<option value="-Xms512m" />
|
||||||
<option value="-Xmx2048m" />
|
<option value="-Xmx2048m" />
|
||||||
<option value="-Dorg.diylc.scriptRun=true" />
|
<option value="-Dorg.diylc.scriptRun=true" />
|
||||||
|
|||||||
@@ -129,13 +129,14 @@ public class DIYLCStarter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MainFrame mainFrame = new MainFrame();
|
MainFrame mainFrame = new MainFrame();
|
||||||
mainFrame.setLocationRelativeTo(null);
|
mainFrame.setLocationRelativeTo(null);
|
||||||
mainFrame.setExtendedState(mainFrame.getExtendedState() | JFrame.MAXIMIZED_BOTH);
|
mainFrame.setExtendedState(mainFrame.getExtendedState() | JFrame.MAXIMIZED_BOTH);
|
||||||
|
|
||||||
splash.setVisible(false);
|
splash.setVisible(false);
|
||||||
splash.dispose();
|
splash.dispose();
|
||||||
|
|
||||||
mainFrame.setVisible(true);
|
mainFrame.setVisible(true);
|
||||||
|
|
||||||
if (args.length > 0) {
|
if (args.length > 0) {
|
||||||
mainFrame.getPresenter().loadProjectFromFile(args[0]);
|
mainFrame.getPresenter().loadProjectFromFile(args[0]);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user