introduce JBColor.isBright() for better use with lambdas

This commit is contained in:
Konstantin Bulenkov
2016-05-03 16:47:09 +02:00
parent 36b55f94f8
commit e08e784a88
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -58,6 +58,10 @@ public class JBColor extends Color {
DARK = dark;
}
public static boolean isBright() {
return !DARK;
}
Color getDarkVariant() {
return darkColor;
}