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