- button.setBackground( colourScheme.findColour(null,aa,-1,null) );\r
- oldColours.addElement( colourScheme.findColour(null,aa,-1,null) );\r
+ Color col = Color.white;\r
+ ColourSchemeI cs = null;\r
+ if(seqGroup!=null)\r
+ cs = seqGroup.cs;\r
+ else\r
+ cs = ap.av.getGlobalColourScheme();\r
+\r
+ if(cs!=null)\r
+ col = cs.findColour( aa, -1, null);\r
+\r
+ button.setBackground( col );\r
+ oldColours.addElement( col );\r