From e08e784a889805f7458930df97e46869bc33c9a9 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Tue, 3 May 2016 16:39:04 +0200 Subject: [PATCH] introduce JBColor.isBright() for better use with lambdas --- platform/util/src/com/intellij/ui/JBColor.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platform/util/src/com/intellij/ui/JBColor.java b/platform/util/src/com/intellij/ui/JBColor.java index 3669e725610d..fcdb067d1a8e 100644 --- a/platform/util/src/com/intellij/ui/JBColor.java +++ b/platform/util/src/com/intellij/ui/JBColor.java @@ -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; }