set look and feel only when it is different from the previous

This commit is contained in:
honfika@gmail.com
2015-05-25 14:49:10 +02:00
parent 48b90ec8da
commit 134fd1558a
6 changed files with 229 additions and 195 deletions

View File

@@ -861,10 +861,7 @@ public class Main {
exit();
}
if (Configuration.useRibbonInterface.get()) {
Stopwatch sw = Stopwatch.startNew();
View.setLookAndFeel();
sw.stop();
System.out.println("sw: " + sw.getElapsedMilliseconds());
} else {
try {
UIManager.put(SubstanceLookAndFeel.COLORIZATION_FACTOR, null);