SubstanceLookAndFeel.setCurrentTheme(arg);
}
Boolean bool = XMLutils.getElementBoolean("invert", config); //$NON-NLS-1$
if (bool != null && bool.booleanValue()) {
SubstanceTheme theme = SubstanceLookAndFeel.getTheme();
SubstanceLookAndFeel.setCurrentTheme(theme.invert());
}
bool = XMLutils.getElementBoolean("negate", config); //$NON-NLS-1$
if (bool != null && bool.booleanValue()) {
SubstanceTheme theme = SubstanceLookAndFeel.getTheme();
SubstanceLookAndFeel.setCurrentTheme(theme.negate());
}
Double factor = XMLutils.getElementDouble("saturate",config); //$NON-NLS-1$
if (factor != null) {
bool = XMLutils.getElementBoolean("saturateEverything", config); //$NON-NLS-1$
if (bool == null)
bool = new Boolean(false);
SubstanceTheme theme = SubstanceLookAndFeel.getTheme();
SubstanceLookAndFeel.setCurrentTheme(theme.saturate(factor,
bool.booleanValue()));
}
factor = XMLutils.getElementDouble("tint",config); //$NON-NLS-1$
if (factor != null) {
SubstanceTheme theme = SubstanceLookAndFeel.getTheme();
SubstanceLookAndFeel.setCurrentTheme(theme.tint(factor.doubleValue()));
}
factor = XMLutils.getElementDouble("tone",config); //$NON-NLS-1$
if (factor != null) {
SubstanceTheme theme = SubstanceLookAndFeel.getTheme();
SubstanceLookAndFeel.setCurrentTheme(theme.tone(factor.doubleValue()));
}
factor = XMLutils.getElementDouble("shade",config); //$NON-NLS-1$
if (factor != null) {
SubstanceTheme theme = SubstanceLookAndFeel.getTheme();
SubstanceLookAndFeel.setCurrentTheme(theme.shade(factor.doubleValue()));
}
factor = XMLutils.getElementDouble("shift",config); //$NON-NLS-1$
if (factor != null) {
SubstanceTheme theme = SubstanceLookAndFeel.getTheme();
SubstanceLookAndFeel.setCurrentTheme(theme.hueShift(factor.doubleValue()));
}
} catch (Exception ex) {
LOG.error(Messages.getString("SubstanceConfigurator.17")+ex.getLocalizedMessage()); //$NON-NLS-1$
}