Fixed: Exception when switching from nonribbon interface to ribbob

This commit is contained in:
Jindra Petřík
2021-03-12 22:12:39 +01:00
parent 5f50f32022
commit 493c91e502
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ import org.pushingpixels.substance.internal.utils.SubstanceColorSchemeUtilities;
public class View {
public static Color getDefaultBackgroundColor() {
if (Configuration.useRibbonInterface.get()) {
if (Configuration.useRibbonInterface.get() && SubstanceLookAndFeel.getCurrentSkin() != null) {
return SubstanceLookAndFeel.getCurrentSkin().getColorScheme(DecorationAreaType.GENERAL, ColorSchemeAssociationKind.FILL, ComponentState.ENABLED).getBackgroundFillColor();
} else {
return SystemColor.control;