mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
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:
BIN
build/lib/dist/skinlf.jar
vendored
BIN
build/lib/dist/skinlf.jar
vendored
Binary file not shown.
@ -8,7 +8,7 @@
|
|||||||
<sourceFolder url="file://$MODULE_DIR$/../../src/java" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/../../src/java" isTestSource="false" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/../../target" />
|
<excludeFolder url="file://$MODULE_DIR$/../../target" />
|
||||||
</content>
|
</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="sourceFolder" forTests="false" />
|
||||||
<orderEntry type="module-library" exported="">
|
<orderEntry type="module-library" exported="">
|
||||||
<library>
|
<library>
|
||||||
|
|||||||
@ -405,7 +405,7 @@
|
|||||||
<module fileurl="file://$PROJECT_DIR$/Spark.iml" filepath="$PROJECT_DIR$/Spark.iml" />
|
<module fileurl="file://$PROJECT_DIR$/Spark.iml" filepath="$PROJECT_DIR$/Spark.iml" />
|
||||||
</modules>
|
</modules>
|
||||||
</component>
|
</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="ProjectRunConfigurationManager" />
|
||||||
<component name="RmicSettings">
|
<component name="RmicSettings">
|
||||||
<option name="IS_EANABLED" value="false" />
|
<option name="IS_EANABLED" value="false" />
|
||||||
|
|||||||
@ -119,14 +119,14 @@ public final class Spark {
|
|||||||
|
|
||||||
JFrame.setDefaultLookAndFeelDecorated(true);
|
JFrame.setDefaultLookAndFeelDecorated(true);
|
||||||
File skinDir = new File(Spark.getBinDirectory().getParent(), "xtra/skins").getAbsoluteFile();
|
File skinDir = new File(Spark.getBinDirectory().getParent(), "xtra/skins").getAbsoluteFile();
|
||||||
File defaultSkin = new File(skinDir, "crystal2themepack.zip");
|
File defaultSkin = new File(skinDir, "crystal.zip");
|
||||||
//Skin theSkinToUse = SkinLookAndFeel.loadThemePack(defaultSkin.toURL());
|
Skin theSkinToUse = SkinLookAndFeel.loadThemePack(defaultSkin.toURL());
|
||||||
Skin theSkinToUse = SkinLookAndFeel.loadThemePackDefinition(new File("c:\\crapola\\crystal\\skinlf-themepack.xml").toURL());
|
|
||||||
SkinLookAndFeel.setSkin(theSkinToUse);
|
SkinLookAndFeel.setSkin(theSkinToUse);
|
||||||
|
|
||||||
// finally set the Skin Look And Feel
|
// finally set the Skin Look And Feel
|
||||||
|
UIManager.setLookAndFeel(new com.jgoodies.looks.windows.WindowsLookAndFeel());
|
||||||
|
|
||||||
UIManager.setLookAndFeel(new SkinLookAndFeel());
|
UIManager.setLookAndFeel(new SkinLookAndFeel());
|
||||||
//UIManager.setLookAndFeel(new com.jgoodies.looks.windows.WindowsLookAndFeel());
|
|
||||||
}
|
}
|
||||||
else if (classname.indexOf("mac") != -1 || classname.indexOf("apple") != -1) {
|
else if (classname.indexOf("mac") != -1 || classname.indexOf("apple") != -1) {
|
||||||
UIManager.setLookAndFeel(classname);
|
UIManager.setLookAndFeel(classname);
|
||||||
|
|||||||
@ -17,6 +17,7 @@ import org.jivesoftware.Spark;
|
|||||||
import org.jivesoftware.spark.SparkManager;
|
import org.jivesoftware.spark.SparkManager;
|
||||||
import org.jivesoftware.spark.util.StringUtils;
|
import org.jivesoftware.spark.util.StringUtils;
|
||||||
import org.jivesoftware.spark.util.URLFileSystem;
|
import org.jivesoftware.spark.util.URLFileSystem;
|
||||||
|
import org.jivesoftware.spark.util.SwingWorker;
|
||||||
import org.jivesoftware.spark.util.log.Log;
|
import org.jivesoftware.spark.util.log.Log;
|
||||||
import org.jivesoftware.sparkimpl.plugin.emoticons.EmoticonManager;
|
import org.jivesoftware.sparkimpl.plugin.emoticons.EmoticonManager;
|
||||||
import org.jivesoftware.sparkimpl.settings.local.LocalPreferences;
|
import org.jivesoftware.sparkimpl.settings.local.LocalPreferences;
|
||||||
@ -149,6 +150,15 @@ public class ThemeManager {
|
|||||||
|
|
||||||
// Add Preference
|
// Add Preference
|
||||||
SparkManager.getPreferenceManager().addPreference(new ThemePreference());
|
SparkManager.getPreferenceManager().addPreference(new ThemePreference());
|
||||||
|
|
||||||
|
|
||||||
|
SwingWorker worker = new SwingWorker(){
|
||||||
|
public Object construct(){
|
||||||
|
return BrowserFactory.spawnMozilla();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
worker.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void expandNewThemes() {
|
private void expandNewThemes() {
|
||||||
|
|||||||
Reference in New Issue
Block a user