mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 08:31:47 +00:00
Fixed: Exception when switching from nonribbon interface to ribbob
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user