Lazy load renderer.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@6342 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2006-12-08 18:27:56 +00:00
committed by derek
parent fe17ff2b79
commit 7f124d1347
5 changed files with 16 additions and 6 deletions

Binary file not shown.

View File

@ -8,7 +8,7 @@
<sourceFolder url="file://$MODULE_DIR$/../../src/java" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/../../target" />
</content>
<orderEntry type="jdk" jdkName="1.6" jdkType="JavaSDK" />
<orderEntry type="jdk" jdkName="1.6 (1)" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library" exported="">
<library>

View File

@ -405,7 +405,7 @@
<module fileurl="file://$PROJECT_DIR$/Spark.iml" filepath="$PROJECT_DIR$/Spark.iml" />
</modules>
</component>
<component name="ProjectRootManager" version="2" assert-keyword="true" jdk-15="true" project-jdk-name="1.6" project-jdk-type="JavaSDK" />
<component name="ProjectRootManager" version="2" assert-keyword="true" jdk-15="true" project-jdk-name="1.6 (1)" project-jdk-type="JavaSDK" />
<component name="ProjectRunConfigurationManager" />
<component name="RmicSettings">
<option name="IS_EANABLED" value="false" />

View File

@ -119,14 +119,14 @@ public final class Spark {
JFrame.setDefaultLookAndFeelDecorated(true);
File skinDir = new File(Spark.getBinDirectory().getParent(), "xtra/skins").getAbsoluteFile();
File defaultSkin = new File(skinDir, "crystal2themepack.zip");
//Skin theSkinToUse = SkinLookAndFeel.loadThemePack(defaultSkin.toURL());
Skin theSkinToUse = SkinLookAndFeel.loadThemePackDefinition(new File("c:\\crapola\\crystal\\skinlf-themepack.xml").toURL());
File defaultSkin = new File(skinDir, "crystal.zip");
Skin theSkinToUse = SkinLookAndFeel.loadThemePack(defaultSkin.toURL());
SkinLookAndFeel.setSkin(theSkinToUse);
// finally set the Skin Look And Feel
UIManager.setLookAndFeel(new com.jgoodies.looks.windows.WindowsLookAndFeel());
UIManager.setLookAndFeel(new SkinLookAndFeel());
//UIManager.setLookAndFeel(new com.jgoodies.looks.windows.WindowsLookAndFeel());
}
else if (classname.indexOf("mac") != -1 || classname.indexOf("apple") != -1) {
UIManager.setLookAndFeel(classname);

View File

@ -17,6 +17,7 @@ import org.jivesoftware.Spark;
import org.jivesoftware.spark.SparkManager;
import org.jivesoftware.spark.util.StringUtils;
import org.jivesoftware.spark.util.URLFileSystem;
import org.jivesoftware.spark.util.SwingWorker;
import org.jivesoftware.spark.util.log.Log;
import org.jivesoftware.sparkimpl.plugin.emoticons.EmoticonManager;
import org.jivesoftware.sparkimpl.settings.local.LocalPreferences;
@ -149,6 +150,15 @@ public class ThemeManager {
// Add Preference
SparkManager.getPreferenceManager().addPreference(new ThemePreference());
SwingWorker worker = new SwingWorker(){
public Object construct(){
return BrowserFactory.spawnMozilla();
}
};
worker.start();
}
private void expandNewThemes() {