private void setDefaultMinMax()
{
minColour.setBackground(
- Cache.getDefaultColour("ANNOTATIONCOLOUR_MIN", Color.orange));
+ Cache.getDefaultColour(Preferences.ANNOTATIONCOLOUR_MIN, Color.orange));
maxColour.setBackground(
- Cache.getDefaultColour("ANNOTATIONCOLOUR_MAX", Color.red));
+ Cache.getDefaultColour(Preferences.ANNOTATIONCOLOUR_MAX, Color.red));
}
protected void showColourChooser(JPanel colourPanel, String titleKey)
updateView();
}
};
- JalviewColourChooser.showColourChooser(Desktop.getDesktop(), ttl,
+ JalviewColourChooser.showColourChooser(Desktop.getDesktopPane(), ttl,
colourPanel.getBackground(), listener);
}
@Override
public void reset()
{
- av.setGlobalColourScheme(oldcs);
+ this.ap.alignFrame.changeColour(oldcs);
if (av.getAlignment().getGroups() != null)
{
acg.setThresholdIsMinMax(thresholdIsMin.isSelected());
- av.setGlobalColourScheme(acg);
+ this.ap.alignFrame.changeColour(acg);
if (av.getAlignment().getGroups() != null)
{
continue;
}
sg.setColourScheme(
- acg.getInstance(sg, ap.av.getHiddenRepSequences()));
+ acg.getInstance(av, sg));
}
}
}
super.sliderDragReleased();
ap.paintAlignment(true, true);
}
-
}