From 611518a0ff65fd05e517d44adbcec639570b86eb Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Thu, 21 Feb 2019 23:44:07 -0500
Subject: [PATCH] Yellow theme.

---
 GrafreeD.java |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/GrafreeD.java b/GrafreeD.java
index bc4d7f1..ada5f76 100644
--- a/GrafreeD.java
+++ b/GrafreeD.java
@@ -50,7 +50,7 @@
         universe.material = new cMaterial();
         //god.addChild(universe);
         universe.name = "Applet";
-        theApplet3D = this;
+        grafreeD = this;
     }
 
     /**/
@@ -595,7 +595,7 @@
     
     public static void main(String argv[])
     {
-        if (argv.length == 0)
+        if (false) // argv.length == 0)
         {
             String javaPath = System.getProperty("java.home") + "/bin/java";
             java.net.URL u = new GrafreeD().getClass().getResource("default.png");
@@ -742,24 +742,28 @@
         try
         {
             MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
-            //MetalLookAndFeel.setCurrentTheme(new Theme(Constants.beigeTheme));
+            MetalLookAndFeel.setCurrentTheme(new Theme(Constants.yellowTheme));
             UIManager.setLookAndFeel(new MetalLookAndFeel());
+            //UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
+            //UIManager.setLookAndFeel("com.apple.laf.AquaLookAndFeel");
+            //UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
         } catch (Exception e)
         {
         }
 
         //Monitor mon=MonitorFactory.start("myFirstMonitor");
         standAlone = true;
-        theApplet3D = new GrafreeD();
-        theApplet3D.universe = new Composite();
-        theApplet3D.universe.name = "Scene";
-        theApplet3D.universe.material = new cMaterial();
+        grafreeD = new GrafreeD();
+        grafreeD.universe = new Composite();
+        grafreeD.universe.name = "Scene";
+        grafreeD.universe.material = new cMaterial();
         //   theApplet3D.universe.textures = CameraPane.DEFAULT_TEXTURE;
 
-        theApplet3D.universe.root = true;
-        theApplet3D.universe.openEditWindow(null, true); //, true);
+        grafreeD.universe.root = true;
+        grafreeD.universe.openEditWindow(null, true); //, true);
         //mon.stop();
         //System.out.println(mon);
+        //timeflow.app.TimeflowAppLauncher.GetTimeFlow();
     }
 
     // Timer callback
@@ -984,7 +988,7 @@
         } while (avail > 0 && numRead >= 0);
         return new String(data, 0, pos, "US-ASCII");
     }
-    public static GrafreeD theApplet3D;
+    public static GrafreeD grafreeD;
     public static boolean standAlone = true;
     public Composite universe;
     public static Object3D clipboard = new Object3D();

--
Gitblit v1.6.2