Browse Source

CHART-13744

feature/big-screen
白岳 5 years ago
parent
commit
618d5db543
  1. 6
      designer-chart/src/main/java/com/fr/design/module/ChartPreFillStylePane.java

6
designer-chart/src/main/java/com/fr/design/module/ChartPreFillStylePane.java

@ -131,13 +131,13 @@ public class ChartPreFillStylePane extends BasicBeanPane<ChartColorMatching> {
gradientButton.setSelected(false);
cardLayout.show(changeColorSetPane, "acc");
if (!colorList.isEmpty()) {
colorAdjustPane.updateColor(colorList.toArray(new Color[colorList.size()]));
} else {
if (colorList.isEmpty()) {
List<Color> resultList = new ArrayList<>();
Collections.addAll(resultList, ChartColorAdjustPane.DEFAULT_COLORS);
condition.setColorList(resultList);
colorAdjustPane.updateColor(ChartColorAdjustPane.DEFAULT_COLORS);
} else {
colorAdjustPane.updateColor(colorList.toArray(new Color[colorList.size()]));
}
}
}

Loading…
Cancel
Save