public class LAFUtils extends Object
T-Plan Robot Enterprise, (C) 2009-2022 T-Plan Limited. All rights reserved.
Modifier and Type | Field and Description |
---|---|
static String |
CFG_LAST_LAF |
static String |
CFG_LAST_LAF_LEGACY |
static String |
CFG_RECENT_LAFS |
Constructor and Description |
---|
LAFUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
getAvailableLAFs(List<String> names,
List<String> classes) |
static Color |
getDefaultBackground(Object o)
Get default background color for a component.
|
static void |
getJTattooDarkLAFs(List<String> names,
List<String> classes) |
static void |
getJTattooLAFs(List<String> names,
List<String> classes) |
static void |
getJTattooStandardLAFs(List<String> names,
List<String> classes) |
static void |
getNativeLAFs(List<String> names,
List<String> classes) |
static boolean |
isDarkMode()
Indicate whether the UI is currently using a dark Look And Feel.
|
static boolean |
isDarkMode(String laf)
Indicate whether argument LAF class is dark one.
|
static boolean |
isJTattoo(String laf)
Test out if a LAF class is a JTattoo one.
|
static boolean |
isRestartNeeded(String currentLaf,
String newLaf) |
public static final String CFG_LAST_LAF
public static final String CFG_LAST_LAF_LEGACY
public static final String CFG_RECENT_LAFS
public static boolean isDarkMode()
public static boolean isDarkMode(String laf)
laf
- the fully qualified LAF class name.public static Color getDefaultBackground(Object o)
o
- either a Swing component (JPanel, JButton, ...) or the component
class (JPanel.class, ...).public static boolean isJTattoo(String laf)
laf
- LAF class name.public static void getJTattooStandardLAFs(List<String> names, List<String> classes)