JAL-2588 field on overview colour finder for default gap colour
authorJim Procter <jprocter@issues.jalview.org>
Mon, 21 Aug 2017 13:21:58 +0000 (14:21 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 21 Aug 2017 13:21:58 +0000 (14:21 +0100)
src/jalview/renderer/OverviewResColourFinder.java

index 5ed218b..ec638a7 100644 (file)
@@ -28,6 +28,8 @@ import java.awt.Color;
 
 public class OverviewResColourFinder extends ResidueColourFinder
 {
+  final Color GAP_COLOUR = new Color(240, 240, 240);
+
   @Override
   public Color getBoxColour(ResidueShaderI shader, SequenceI seq, int i)
   {
@@ -42,7 +44,7 @@ public class OverviewResColourFinder extends ResidueColourFinder
       if (Comparison.isGap(currentChar)
               && !shader.getColourScheme().hasGapColour())
       {
-        resBoxColour = Color.lightGray;
+        resBoxColour = GAP_COLOUR;
       }
       else
       {
@@ -51,7 +53,7 @@ public class OverviewResColourFinder extends ResidueColourFinder
     }
     else if (Comparison.isGap(currentChar))
     {
-      resBoxColour = Color.lightGray;
+      resBoxColour = GAP_COLOUR;
     }
 
     return resBoxColour;