com.actelion.research.gui.LookAndFeelHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openchemlib Show documentation
Show all versions of openchemlib Show documentation
Open Source Chemistry Library
package com.actelion.research.gui;
import javax.swing.*;
public class LookAndFeelHelper {
public static boolean isQuaQua() {
return UIManager.getLookAndFeel().getName().contains("Quaqua");
}
public static boolean isAqua() {
return UIManager.getLookAndFeel().getName().equals("Mac OS X");
}
/**
* This is Substance version 3 or 4
* @return
*/
public static boolean isOldSubstance() {
return UIManager.getLookAndFeel().getName().equals("Substance");
}
/**
* This is Substance from version 5
* @return
*/
public static boolean isNewSubstance() {
return UIManager.getLookAndFeel().getName().startsWith("Substance ");
}
public static boolean isSubstance() {
return UIManager.getLookAndFeel().getName().startsWith("Substance");
}
public static boolean isDarkLookAndFeel() {
return UIManager.getLookAndFeel().getName().startsWith("Substance Graphite");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy