You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2017/11/21 12:32:33 UTC

svn commit: r1815915 - /jmeter/trunk/src/core/org/apache/jmeter/gui/action/LookAndFeelCommand.java

Author: pmouawad
Date: Tue Nov 21 12:32:33 2017
New Revision: 1815915

URL: http://svn.apache.org/viewvc?rev=1815915&view=rev
Log:
Bug 61697 - Introduce Darcula Look And Feel to make JMeter UI more attractive
Bugzilla Id: 61697

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/LookAndFeelCommand.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/action/LookAndFeelCommand.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/action/LookAndFeelCommand.java?rev=1815915&r1=1815914&r2=1815915&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/action/LookAndFeelCommand.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/action/LookAndFeelCommand.java Tue Nov 21 12:32:33 2017
@@ -53,7 +53,7 @@ public class LookAndFeelCommand extends
 
     static {
         log.info("Installing Darcula LAF");
-        UIManager.installLookAndFeel(new UIManager.LookAndFeelInfo(JMeterMenuBar.DARCULA_LAF, JMeterMenuBar.DARCULA_LAF_CLASS));
+        UIManager.installLookAndFeel(JMeterMenuBar.DARCULA_LAF, JMeterMenuBar.DARCULA_LAF_CLASS);
         UIManager.LookAndFeelInfo[] allLAFs = JMeterMenuBar.getAllLAFs();
         commands = Arrays.stream(allLAFs)
                 .map(lf -> ActionNames.LAF_PREFIX + lf.getClassName())
@@ -61,7 +61,7 @@ public class LookAndFeelCommand extends
         if (log.isInfoEnabled()) {
             final String jMeterLaf = getJMeterLaf();
             List<String> names = Arrays.stream(allLAFs)
-                    .filter(laf -> laf.getClassName().equals(jMeterLaf))
+                    .filter(laf -> laf.getClassName().equals(JMeterMenuBar.DARCULA_LAF_CLASS))
                     .map(UIManager.LookAndFeelInfo::getName)
                     .collect(Collectors.toList());
             log.info("Using look and feel: {} {}", jMeterLaf, names);
@@ -97,7 +97,7 @@ public class LookAndFeelCommand extends
         if (laf != null) {
             return checkLafName(laf);
         }
-        laf = JMeterUtils.getPropDefault(JMETER_LAF, JMeterMenuBar.DARCULA_LAF);
+        laf = JMeterUtils.getPropDefault(JMETER_LAF, JMeterMenuBar.DARCULA_LAF_CLASS);
         if (laf != null) {
             return checkLafName(laf);
         }