mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-10 22:17:13 -06:00
renamed Flat*Laf.install() methods to Flat*Laf.setup() to avoid confusion with UIManager.installLookAndFeel(LookAndFeelInfo info); the old Flat*Laf.install() methods are still there, but marked as deprecated
This commit is contained in:
@@ -23,6 +23,10 @@ FlatLaf Change Log
|
||||
- Use mapper function in color filter to dynamically map colors. (PR #303)
|
||||
- Color filter supports light and dark themes.
|
||||
- Getters for icon name, classloader, etc.
|
||||
- Renamed `Flat*Laf.install()` methods to `Flat*Laf.setup()` to avoid confusion
|
||||
with `UIManager.installLookAndFeel(LookAndFeelInfo info)`. The old
|
||||
`Flat*Laf.install()` methods are still there, but marked as deprecated. They
|
||||
will be removed in a future version.
|
||||
|
||||
#### Fixed bugs
|
||||
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
package com.formdev.flatlaf;
|
||||
|
||||
import javax.swing.UIManager;
|
||||
|
||||
/**
|
||||
* A Flat LaF that has a dark color scheme and looks like Darcula LaF.
|
||||
* <p>
|
||||
@@ -29,10 +31,28 @@ public class FlatDarculaLaf
|
||||
{
|
||||
public static final String NAME = "FlatLaf Darcula";
|
||||
|
||||
public static boolean install() {
|
||||
return install( new FlatDarculaLaf() );
|
||||
/**
|
||||
* Sets the application look and feel to this LaF
|
||||
* using {@link UIManager#setLookAndFeel(javax.swing.LookAndFeel)}.
|
||||
*/
|
||||
public static boolean setup() {
|
||||
return setup( new FlatDarculaLaf() );
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds this look and feel to the set of available look and feels.
|
||||
* <p>
|
||||
* Useful if your application uses {@link UIManager#getInstalledLookAndFeels()}
|
||||
* to query available LaFs and display them to the user in a combobox.
|
||||
*/
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatDarculaLaf.class );
|
||||
}
|
||||
|
||||
@@ -34,8 +34,16 @@ public class FlatDarkLaf
|
||||
* Sets the application look and feel to this LaF
|
||||
* using {@link UIManager#setLookAndFeel(javax.swing.LookAndFeel)}.
|
||||
*/
|
||||
public static boolean setup() {
|
||||
return setup( new FlatDarkLaf() );
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return install( new FlatDarkLaf() );
|
||||
return setup();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
package com.formdev.flatlaf;
|
||||
|
||||
import javax.swing.UIManager;
|
||||
|
||||
/**
|
||||
* A Flat LaF that has a light color scheme and looks like IntelliJ LaF.
|
||||
* <p>
|
||||
@@ -29,10 +31,28 @@ public class FlatIntelliJLaf
|
||||
{
|
||||
public static final String NAME = "FlatLaf IntelliJ";
|
||||
|
||||
public static boolean install() {
|
||||
return install( new FlatIntelliJLaf() );
|
||||
/**
|
||||
* Sets the application look and feel to this LaF
|
||||
* using {@link UIManager#setLookAndFeel(javax.swing.LookAndFeel)}.
|
||||
*/
|
||||
public static boolean setup() {
|
||||
return setup( new FlatIntelliJLaf() );
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds this look and feel to the set of available look and feels.
|
||||
* <p>
|
||||
* Useful if your application uses {@link UIManager#getInstalledLookAndFeels()}
|
||||
* to query available LaFs and display them to the user in a combobox.
|
||||
*/
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatIntelliJLaf.class );
|
||||
}
|
||||
|
||||
@@ -95,16 +95,24 @@ public abstract class FlatLaf
|
||||
* Sets the application look and feel to the given LaF
|
||||
* using {@link UIManager#setLookAndFeel(javax.swing.LookAndFeel)}.
|
||||
*/
|
||||
public static boolean install( LookAndFeel newLookAndFeel ) {
|
||||
public static boolean setup( LookAndFeel newLookAndFeel ) {
|
||||
try {
|
||||
UIManager.setLookAndFeel( newLookAndFeel );
|
||||
return true;
|
||||
} catch( Exception ex ) {
|
||||
LoggingFacade.INSTANCE.logSevere( "FlatLaf: Failed to initialize look and feel '" + newLookAndFeel.getClass().getName() + "'.", ex );
|
||||
LoggingFacade.INSTANCE.logSevere( "FlatLaf: Failed to setup look and feel '" + newLookAndFeel.getClass().getName() + "'.", ex );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup(LookAndFeel)} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install( LookAndFeel newLookAndFeel ) {
|
||||
return setup( newLookAndFeel );
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the given look and feel to the set of available look and feels.
|
||||
* <p>
|
||||
|
||||
@@ -34,8 +34,16 @@ public class FlatLightLaf
|
||||
* Sets the application look and feel to this LaF
|
||||
* using {@link UIManager#setLookAndFeel(javax.swing.LookAndFeel)}.
|
||||
*/
|
||||
public static boolean setup() {
|
||||
return setup( new FlatLightLaf() );
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return install( new FlatLightLaf() );
|
||||
return setup();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -68,20 +68,28 @@ public class IntelliJTheme
|
||||
|
||||
/**
|
||||
* Loads a IntelliJ .theme.json file from the given input stream,
|
||||
* creates a Laf instance for it and installs it.
|
||||
* creates a Laf instance for it and sets it up.
|
||||
*
|
||||
* The input stream is automatically closed.
|
||||
* Using a buffered input stream is not necessary.
|
||||
*/
|
||||
public static boolean install( InputStream in ) {
|
||||
public static boolean setup( InputStream in ) {
|
||||
try {
|
||||
return FlatLaf.install( createLaf( in ) );
|
||||
return FlatLaf.setup( createLaf( in ) );
|
||||
} catch( Exception ex ) {
|
||||
LoggingFacade.INSTANCE.logSevere( "FlatLaf: Failed to load IntelliJ theme", ex );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup(InputStream)} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install( InputStream in ) {
|
||||
return setup( in );
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads a IntelliJ .theme.json file from the given input stream and
|
||||
* creates a Laf instance for it.
|
||||
|
||||
@@ -50,7 +50,7 @@ public class DemoPrefs
|
||||
state = Preferences.userRoot().node( rootPath );
|
||||
}
|
||||
|
||||
public static void initLaf( String[] args ) {
|
||||
public static void setupLaf( String[] args ) {
|
||||
// set look and feel
|
||||
try {
|
||||
if( args.length > 0 )
|
||||
@@ -60,11 +60,11 @@ public class DemoPrefs
|
||||
if( IntelliJTheme.ThemeLaf.class.getName().equals( lafClassName ) ) {
|
||||
String theme = state.get( KEY_LAF_THEME, "" );
|
||||
if( theme.startsWith( RESOURCE_PREFIX ) )
|
||||
IntelliJTheme.install( IJThemesPanel.class.getResourceAsStream( IJThemesPanel.THEMES_PACKAGE + theme.substring( RESOURCE_PREFIX.length() ) ) );
|
||||
IntelliJTheme.setup( IJThemesPanel.class.getResourceAsStream( IJThemesPanel.THEMES_PACKAGE + theme.substring( RESOURCE_PREFIX.length() ) ) );
|
||||
else if( theme.startsWith( FILE_PREFIX ) )
|
||||
FlatLaf.install( IntelliJTheme.createLaf( new FileInputStream( theme.substring( FILE_PREFIX.length() ) ) ) );
|
||||
FlatLaf.setup( IntelliJTheme.createLaf( new FileInputStream( theme.substring( FILE_PREFIX.length() ) ) ) );
|
||||
else
|
||||
FlatLightLaf.install();
|
||||
FlatLightLaf.setup();
|
||||
|
||||
if( !theme.isEmpty() )
|
||||
UIManager.getLookAndFeelDefaults().put( THEME_UI_KEY, theme );
|
||||
@@ -73,9 +73,9 @@ public class DemoPrefs
|
||||
if( theme.startsWith( FILE_PREFIX ) ) {
|
||||
File themeFile = new File( theme.substring( FILE_PREFIX.length() ) );
|
||||
String themeName = StringUtils.removeTrailing( themeFile.getName(), ".properties" );
|
||||
FlatLaf.install( new FlatPropertiesLaf( themeName, themeFile ) );
|
||||
FlatLaf.setup( new FlatPropertiesLaf( themeName, themeFile ) );
|
||||
} else
|
||||
FlatLightLaf.install();
|
||||
FlatLightLaf.setup();
|
||||
|
||||
if( !theme.isEmpty() )
|
||||
UIManager.getLookAndFeelDefaults().put( THEME_UI_KEY, theme );
|
||||
@@ -86,7 +86,7 @@ public class DemoPrefs
|
||||
ex.printStackTrace();
|
||||
|
||||
// fallback
|
||||
FlatLightLaf.install();
|
||||
FlatLightLaf.setup();
|
||||
}
|
||||
|
||||
// remember active look and feel
|
||||
|
||||
@@ -48,7 +48,7 @@ public class FlatLafDemo
|
||||
FlatLaf.registerCustomDefaultsSource( "com.formdev.flatlaf.demo" );
|
||||
|
||||
// set look and feel
|
||||
DemoPrefs.initLaf( args );
|
||||
DemoPrefs.setupLaf( args );
|
||||
|
||||
// install inspectors
|
||||
FlatInspector.install( "ctrl shift alt X" );
|
||||
|
||||
@@ -160,14 +160,22 @@ public class IJThemesClassGenerator
|
||||
"{\n" +
|
||||
" public static final String NAME = \"${themeName}\";\n" +
|
||||
"\n" +
|
||||
" public static boolean install() {\n" +
|
||||
" public static boolean setup() {\n" +
|
||||
" try {\n" +
|
||||
" return install( new ${themeClass}() );\n" +
|
||||
" return setup( new ${themeClass}() );\n" +
|
||||
" } catch( RuntimeException ex ) {\n" +
|
||||
" return false;\n" +
|
||||
" }\n" +
|
||||
" }\n" +
|
||||
"\n" +
|
||||
" /**\n" +
|
||||
" * @deprecated use {@link #setup()} instead; this method will be removed in a future version\n" +
|
||||
" */\n" +
|
||||
" @Deprecated\n" +
|
||||
" public static boolean install() {\n" +
|
||||
" return setup();\n" +
|
||||
" }\n" +
|
||||
"\n" +
|
||||
" public static void installLafInfo() {\n" +
|
||||
" installLafInfo( NAME, ${themeClass}.class );\n" +
|
||||
" }\n" +
|
||||
|
||||
@@ -267,9 +267,9 @@ public class IJThemesPanel
|
||||
|
||||
try {
|
||||
if( themeInfo.themeFile.getName().endsWith( ".properties" ) ) {
|
||||
FlatLaf.install( new FlatPropertiesLaf( themeInfo.name, themeInfo.themeFile ) );
|
||||
FlatLaf.setup( new FlatPropertiesLaf( themeInfo.name, themeInfo.themeFile ) );
|
||||
} else
|
||||
FlatLaf.install( IntelliJTheme.createLaf( new FileInputStream( themeInfo.themeFile ) ) );
|
||||
FlatLaf.setup( IntelliJTheme.createLaf( new FileInputStream( themeInfo.themeFile ) ) );
|
||||
|
||||
DemoPrefs.getState().put( DemoPrefs.KEY_LAF_THEME, DemoPrefs.FILE_PREFIX + themeInfo.themeFile );
|
||||
} catch( Exception ex ) {
|
||||
@@ -279,7 +279,7 @@ public class IJThemesPanel
|
||||
} else {
|
||||
FlatAnimatedLafChange.showSnapshot();
|
||||
|
||||
IntelliJTheme.install( getClass().getResourceAsStream( THEMES_PACKAGE + themeInfo.resourceName ) );
|
||||
IntelliJTheme.setup( getClass().getResourceAsStream( THEMES_PACKAGE + themeInfo.resourceName ) );
|
||||
DemoPrefs.getState().put( DemoPrefs.KEY_LAF_THEME, DemoPrefs.RESOURCE_PREFIX + themeInfo.resourceName );
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ tasks {
|
||||
this as StandardJavadocDocletOptions
|
||||
use( true )
|
||||
tags = listOf( "uiDefault", "clientProperty" )
|
||||
addStringOption( "Xdoclint:all,-missing", "-Xdoclint:all,-missing" )
|
||||
}
|
||||
isFailOnError = false
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatArcDarkIJTheme
|
||||
{
|
||||
public static final String NAME = "Arc Dark";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatArcDarkIJTheme() );
|
||||
return setup( new FlatArcDarkIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatArcDarkIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatArcDarkOrangeIJTheme
|
||||
{
|
||||
public static final String NAME = "Arc Dark - Orange";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatArcDarkOrangeIJTheme() );
|
||||
return setup( new FlatArcDarkOrangeIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatArcDarkOrangeIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatArcIJTheme
|
||||
{
|
||||
public static final String NAME = "Arc";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatArcIJTheme() );
|
||||
return setup( new FlatArcIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatArcIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatArcOrangeIJTheme
|
||||
{
|
||||
public static final String NAME = "Arc - Orange";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatArcOrangeIJTheme() );
|
||||
return setup( new FlatArcOrangeIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatArcOrangeIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatCarbonIJTheme
|
||||
{
|
||||
public static final String NAME = "Carbon";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatCarbonIJTheme() );
|
||||
return setup( new FlatCarbonIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatCarbonIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatCobalt2IJTheme
|
||||
{
|
||||
public static final String NAME = "Cobalt 2";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatCobalt2IJTheme() );
|
||||
return setup( new FlatCobalt2IJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatCobalt2IJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatCyanLightIJTheme
|
||||
{
|
||||
public static final String NAME = "Cyan light";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatCyanLightIJTheme() );
|
||||
return setup( new FlatCyanLightIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatCyanLightIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatDarkFlatIJTheme
|
||||
{
|
||||
public static final String NAME = "Dark Flat";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatDarkFlatIJTheme() );
|
||||
return setup( new FlatDarkFlatIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatDarkFlatIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatDarkPurpleIJTheme
|
||||
{
|
||||
public static final String NAME = "Dark purple";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatDarkPurpleIJTheme() );
|
||||
return setup( new FlatDarkPurpleIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatDarkPurpleIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatDraculaIJTheme
|
||||
{
|
||||
public static final String NAME = "Dracula";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatDraculaIJTheme() );
|
||||
return setup( new FlatDraculaIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatDraculaIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatGradiantoDarkFuchsiaIJTheme
|
||||
{
|
||||
public static final String NAME = "Gradianto Dark Fuchsia";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatGradiantoDarkFuchsiaIJTheme() );
|
||||
return setup( new FlatGradiantoDarkFuchsiaIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatGradiantoDarkFuchsiaIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatGradiantoDeepOceanIJTheme
|
||||
{
|
||||
public static final String NAME = "Gradianto Deep Ocean";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatGradiantoDeepOceanIJTheme() );
|
||||
return setup( new FlatGradiantoDeepOceanIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatGradiantoDeepOceanIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatGradiantoMidnightBlueIJTheme
|
||||
{
|
||||
public static final String NAME = "Gradianto Midnight Blue";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatGradiantoMidnightBlueIJTheme() );
|
||||
return setup( new FlatGradiantoMidnightBlueIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatGradiantoMidnightBlueIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatGradiantoNatureGreenIJTheme
|
||||
{
|
||||
public static final String NAME = "Gradianto Nature Green";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatGradiantoNatureGreenIJTheme() );
|
||||
return setup( new FlatGradiantoNatureGreenIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatGradiantoNatureGreenIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatGrayIJTheme
|
||||
{
|
||||
public static final String NAME = "Gray";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatGrayIJTheme() );
|
||||
return setup( new FlatGrayIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatGrayIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatGruvboxDarkHardIJTheme
|
||||
{
|
||||
public static final String NAME = "Gruvbox Dark Hard";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatGruvboxDarkHardIJTheme() );
|
||||
return setup( new FlatGruvboxDarkHardIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatGruvboxDarkHardIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatGruvboxDarkMediumIJTheme
|
||||
{
|
||||
public static final String NAME = "Gruvbox Dark Medium";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatGruvboxDarkMediumIJTheme() );
|
||||
return setup( new FlatGruvboxDarkMediumIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatGruvboxDarkMediumIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatGruvboxDarkSoftIJTheme
|
||||
{
|
||||
public static final String NAME = "Gruvbox Dark Soft";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatGruvboxDarkSoftIJTheme() );
|
||||
return setup( new FlatGruvboxDarkSoftIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatGruvboxDarkSoftIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatHiberbeeDarkIJTheme
|
||||
{
|
||||
public static final String NAME = "Hiberbee Dark";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatHiberbeeDarkIJTheme() );
|
||||
return setup( new FlatHiberbeeDarkIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatHiberbeeDarkIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatHighContrastIJTheme
|
||||
{
|
||||
public static final String NAME = "High contrast";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatHighContrastIJTheme() );
|
||||
return setup( new FlatHighContrastIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatHighContrastIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatLightFlatIJTheme
|
||||
{
|
||||
public static final String NAME = "Light Flat";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatLightFlatIJTheme() );
|
||||
return setup( new FlatLightFlatIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatLightFlatIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatMaterialDesignDarkIJTheme
|
||||
{
|
||||
public static final String NAME = "Material Design Dark";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatMaterialDesignDarkIJTheme() );
|
||||
return setup( new FlatMaterialDesignDarkIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatMaterialDesignDarkIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatMonocaiIJTheme
|
||||
{
|
||||
public static final String NAME = "Monocai";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatMonocaiIJTheme() );
|
||||
return setup( new FlatMonocaiIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatMonocaiIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatNordIJTheme
|
||||
{
|
||||
public static final String NAME = "Nord";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatNordIJTheme() );
|
||||
return setup( new FlatNordIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatNordIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatOneDarkIJTheme
|
||||
{
|
||||
public static final String NAME = "One Dark";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatOneDarkIJTheme() );
|
||||
return setup( new FlatOneDarkIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatOneDarkIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatSolarizedDarkIJTheme
|
||||
{
|
||||
public static final String NAME = "Solarized Dark";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatSolarizedDarkIJTheme() );
|
||||
return setup( new FlatSolarizedDarkIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatSolarizedDarkIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatSolarizedLightIJTheme
|
||||
{
|
||||
public static final String NAME = "Solarized Light";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatSolarizedLightIJTheme() );
|
||||
return setup( new FlatSolarizedLightIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatSolarizedLightIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatSpacegrayIJTheme
|
||||
{
|
||||
public static final String NAME = "Spacegray";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatSpacegrayIJTheme() );
|
||||
return setup( new FlatSpacegrayIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatSpacegrayIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatVuesionIJTheme
|
||||
{
|
||||
public static final String NAME = "Vuesion";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatVuesionIJTheme() );
|
||||
return setup( new FlatVuesionIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatVuesionIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatArcDarkContrastIJTheme
|
||||
{
|
||||
public static final String NAME = "Arc Dark Contrast (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatArcDarkContrastIJTheme() );
|
||||
return setup( new FlatArcDarkContrastIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatArcDarkContrastIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatArcDarkIJTheme
|
||||
{
|
||||
public static final String NAME = "Arc Dark (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatArcDarkIJTheme() );
|
||||
return setup( new FlatArcDarkIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatArcDarkIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatAtomOneDarkContrastIJTheme
|
||||
{
|
||||
public static final String NAME = "Atom One Dark Contrast (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatAtomOneDarkContrastIJTheme() );
|
||||
return setup( new FlatAtomOneDarkContrastIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatAtomOneDarkContrastIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatAtomOneDarkIJTheme
|
||||
{
|
||||
public static final String NAME = "Atom One Dark (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatAtomOneDarkIJTheme() );
|
||||
return setup( new FlatAtomOneDarkIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatAtomOneDarkIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatAtomOneLightContrastIJTheme
|
||||
{
|
||||
public static final String NAME = "Atom One Light Contrast (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatAtomOneLightContrastIJTheme() );
|
||||
return setup( new FlatAtomOneLightContrastIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatAtomOneLightContrastIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatAtomOneLightIJTheme
|
||||
{
|
||||
public static final String NAME = "Atom One Light (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatAtomOneLightIJTheme() );
|
||||
return setup( new FlatAtomOneLightIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatAtomOneLightIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatDraculaContrastIJTheme
|
||||
{
|
||||
public static final String NAME = "Dracula Contrast (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatDraculaContrastIJTheme() );
|
||||
return setup( new FlatDraculaContrastIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatDraculaContrastIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatDraculaIJTheme
|
||||
{
|
||||
public static final String NAME = "Dracula (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatDraculaIJTheme() );
|
||||
return setup( new FlatDraculaIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatDraculaIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatGitHubContrastIJTheme
|
||||
{
|
||||
public static final String NAME = "GitHub Contrast (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatGitHubContrastIJTheme() );
|
||||
return setup( new FlatGitHubContrastIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatGitHubContrastIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatGitHubDarkContrastIJTheme
|
||||
{
|
||||
public static final String NAME = "GitHub Dark Contrast (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatGitHubDarkContrastIJTheme() );
|
||||
return setup( new FlatGitHubDarkContrastIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatGitHubDarkContrastIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatGitHubDarkIJTheme
|
||||
{
|
||||
public static final String NAME = "GitHub Dark (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatGitHubDarkIJTheme() );
|
||||
return setup( new FlatGitHubDarkIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatGitHubDarkIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatGitHubIJTheme
|
||||
{
|
||||
public static final String NAME = "GitHub (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatGitHubIJTheme() );
|
||||
return setup( new FlatGitHubIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatGitHubIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatLightOwlContrastIJTheme
|
||||
{
|
||||
public static final String NAME = "Light Owl Contrast (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatLightOwlContrastIJTheme() );
|
||||
return setup( new FlatLightOwlContrastIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatLightOwlContrastIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatLightOwlIJTheme
|
||||
{
|
||||
public static final String NAME = "Light Owl (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatLightOwlIJTheme() );
|
||||
return setup( new FlatLightOwlIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatLightOwlIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatMaterialDarkerContrastIJTheme
|
||||
{
|
||||
public static final String NAME = "Material Darker Contrast (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatMaterialDarkerContrastIJTheme() );
|
||||
return setup( new FlatMaterialDarkerContrastIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatMaterialDarkerContrastIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatMaterialDarkerIJTheme
|
||||
{
|
||||
public static final String NAME = "Material Darker (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatMaterialDarkerIJTheme() );
|
||||
return setup( new FlatMaterialDarkerIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatMaterialDarkerIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatMaterialDeepOceanContrastIJTheme
|
||||
{
|
||||
public static final String NAME = "Material Deep Ocean Contrast (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatMaterialDeepOceanContrastIJTheme() );
|
||||
return setup( new FlatMaterialDeepOceanContrastIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatMaterialDeepOceanContrastIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatMaterialDeepOceanIJTheme
|
||||
{
|
||||
public static final String NAME = "Material Deep Ocean (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatMaterialDeepOceanIJTheme() );
|
||||
return setup( new FlatMaterialDeepOceanIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatMaterialDeepOceanIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatMaterialLighterContrastIJTheme
|
||||
{
|
||||
public static final String NAME = "Material Lighter Contrast (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatMaterialLighterContrastIJTheme() );
|
||||
return setup( new FlatMaterialLighterContrastIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatMaterialLighterContrastIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatMaterialLighterIJTheme
|
||||
{
|
||||
public static final String NAME = "Material Lighter (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatMaterialLighterIJTheme() );
|
||||
return setup( new FlatMaterialLighterIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatMaterialLighterIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatMaterialOceanicContrastIJTheme
|
||||
{
|
||||
public static final String NAME = "Material Oceanic Contrast (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatMaterialOceanicContrastIJTheme() );
|
||||
return setup( new FlatMaterialOceanicContrastIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatMaterialOceanicContrastIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatMaterialOceanicIJTheme
|
||||
{
|
||||
public static final String NAME = "Material Oceanic (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatMaterialOceanicIJTheme() );
|
||||
return setup( new FlatMaterialOceanicIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatMaterialOceanicIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatMaterialPalenightContrastIJTheme
|
||||
{
|
||||
public static final String NAME = "Material Palenight Contrast (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatMaterialPalenightContrastIJTheme() );
|
||||
return setup( new FlatMaterialPalenightContrastIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatMaterialPalenightContrastIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatMaterialPalenightIJTheme
|
||||
{
|
||||
public static final String NAME = "Material Palenight (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatMaterialPalenightIJTheme() );
|
||||
return setup( new FlatMaterialPalenightIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatMaterialPalenightIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatMonokaiProContrastIJTheme
|
||||
{
|
||||
public static final String NAME = "Monokai Pro Contrast (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatMonokaiProContrastIJTheme() );
|
||||
return setup( new FlatMonokaiProContrastIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatMonokaiProContrastIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatMonokaiProIJTheme
|
||||
{
|
||||
public static final String NAME = "Monokai Pro (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatMonokaiProIJTheme() );
|
||||
return setup( new FlatMonokaiProIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatMonokaiProIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatMoonlightContrastIJTheme
|
||||
{
|
||||
public static final String NAME = "Moonlight Contrast (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatMoonlightContrastIJTheme() );
|
||||
return setup( new FlatMoonlightContrastIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatMoonlightContrastIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatMoonlightIJTheme
|
||||
{
|
||||
public static final String NAME = "Moonlight (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatMoonlightIJTheme() );
|
||||
return setup( new FlatMoonlightIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatMoonlightIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatNightOwlContrastIJTheme
|
||||
{
|
||||
public static final String NAME = "Night Owl Contrast (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatNightOwlContrastIJTheme() );
|
||||
return setup( new FlatNightOwlContrastIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatNightOwlContrastIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatNightOwlIJTheme
|
||||
{
|
||||
public static final String NAME = "Night Owl (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatNightOwlIJTheme() );
|
||||
return setup( new FlatNightOwlIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatNightOwlIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatSolarizedDarkContrastIJTheme
|
||||
{
|
||||
public static final String NAME = "Solarized Dark Contrast (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatSolarizedDarkContrastIJTheme() );
|
||||
return setup( new FlatSolarizedDarkContrastIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatSolarizedDarkContrastIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatSolarizedDarkIJTheme
|
||||
{
|
||||
public static final String NAME = "Solarized Dark (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatSolarizedDarkIJTheme() );
|
||||
return setup( new FlatSolarizedDarkIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatSolarizedDarkIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatSolarizedLightContrastIJTheme
|
||||
{
|
||||
public static final String NAME = "Solarized Light Contrast (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatSolarizedLightContrastIJTheme() );
|
||||
return setup( new FlatSolarizedLightContrastIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatSolarizedLightContrastIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -31,14 +31,22 @@ public class FlatSolarizedLightIJTheme
|
||||
{
|
||||
public static final String NAME = "Solarized Light (Material)";
|
||||
|
||||
public static boolean install() {
|
||||
public static boolean setup() {
|
||||
try {
|
||||
return install( new FlatSolarizedLightIJTheme() );
|
||||
return setup( new FlatSolarizedLightIJTheme() );
|
||||
} catch( RuntimeException ex ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setup()} instead; this method will be removed in a future version
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean install() {
|
||||
return setup();
|
||||
}
|
||||
|
||||
public static void installLafInfo() {
|
||||
installLafInfo( NAME, FlatSolarizedLightIJTheme.class );
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ public class FlatNativeWindowBorderTest
|
||||
|
||||
public static void main( String[] args ) {
|
||||
SwingUtilities.invokeLater( () -> {
|
||||
FlatLightLaf.install();
|
||||
FlatLightLaf.setup();
|
||||
FlatInspector.install( "ctrl shift alt X" );
|
||||
|
||||
mainFrame = showFrame();
|
||||
|
||||
@@ -97,7 +97,7 @@ public class FlatTestFrame
|
||||
FlatLaf.registerCustomDefaultsSource( "com.formdev.flatlaf.testing.customdefaults" );
|
||||
|
||||
// set look and feel
|
||||
DemoPrefs.initLaf( args );
|
||||
DemoPrefs.setupLaf( args );
|
||||
|
||||
// create frame
|
||||
return new FlatTestFrame( title );
|
||||
|
||||
@@ -70,7 +70,7 @@ public class FlatThemeFileEditor
|
||||
: null;
|
||||
|
||||
SwingUtilities.invokeLater( () -> {
|
||||
FlatLightLaf.install();
|
||||
FlatLightLaf.setup();
|
||||
FlatInspector.install( "ctrl alt shift X" );
|
||||
FlatUIDefaultsInspector.install( "ctrl shift alt Y" );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user