mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
reorganize resource files
This commit is contained in:
@@ -61,7 +61,15 @@ public class DIYLCStarter {
|
||||
public static void main(String[] args) {
|
||||
// Initialize splash screen
|
||||
final SplashScreen splash = SplashScreen.getSplashScreen();
|
||||
new DIYLCSplash(splash).start();
|
||||
URL splashUrl = Presenter.class.getClassLoader().getResource("org/diylc/splash.png");
|
||||
if (splash != null) {
|
||||
try {
|
||||
splash.setImageURL(splashUrl);
|
||||
new DIYLCSplash(splash).start();
|
||||
} catch (NullPointerException | IllegalStateException | IOException e1) {
|
||||
LOG.error("Could not initialize splash screen", e1);
|
||||
}
|
||||
}
|
||||
|
||||
URL url = DIYLCStarter.class.getResource("log4j.properties");
|
||||
Properties properties = new Properties();
|
||||
@@ -148,7 +156,7 @@ public class DIYLCStarter {
|
||||
properties = new Properties();
|
||||
try {
|
||||
LOG.info("Injecting default properties.");
|
||||
URL resource = Presenter.class.getClassLoader().getResource("config.properties");
|
||||
URL resource = Presenter.class.getResource("config.properties");
|
||||
if (resource != null) {
|
||||
properties.load(resource.openStream());
|
||||
PropertyInjector.injectProperties(properties);
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
# Uncomment lines you want to edit and change the part after the "=" sign.
|
||||
#org.diylc.presenter.InstantiationManager.MAX_RECENT_COMPONENTS=20
|
||||
#org.diylc.swing.plugins.canvas.CanvasPanel.USE_HARDWARE_ACCELLERATION=true
|
||||
#org.diylc.swingframework.ruler.Ruler.USE_HARDWARE_ACCELLERATION=true
|
||||
#org.diylc.swing.gui.editor.PropertyEditorDialog.SHOW_DEFAULT_BOXES=true
|
||||
#org.diylc.swing.plugins.autosave.AutoSavePlugin.MAX_TOTAL_SIZE_MB=64
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@@ -442,7 +442,7 @@ public class MainFrame extends JFrame implements ISwingUI {
|
||||
fileName = "Untitled";
|
||||
}
|
||||
String modified = (Boolean) params[1] ? " (modified)" : "";
|
||||
setTitle(String.format("DIYLC G3 version %s.%s - %s %s", plugInPort.getCurrentVersionNumber().getMinor(),
|
||||
setTitle(String.format("DIYLC G4 version %s.%s - %s %s", plugInPort.getCurrentVersionNumber().getMinor(),
|
||||
plugInPort.getCurrentVersionNumber().getBuild(), fileName, modified));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user