Browse Source

Pull request #15039: REPORT-137164 newui 颜色展示问题

Merge in DESIGN/design from ~ZONGYU.WANG/design:fbp/release to fbp/release

* commit '23334d53a72ab9b17890f5b08fdc7a9263a13d1e':
  REPORT-137164 fix: 最近使用颜色展示问题
  REPORT-137164 fix: 最近使用颜色展示问题
fbp/merge
Zongyu.Wang-王宗雨 2 months ago
parent
commit
fdd0228f02
  1. 2
      designer-base/src/main/java/com/fr/design/style/color/NewColorSelectPane.java

2
designer-base/src/main/java/com/fr/design/style/color/NewColorSelectPane.java

@ -462,7 +462,7 @@ public class NewColorSelectPane extends BasicPane implements ColorSelectable {
int size = colors.length;
for (int i = 1; i <= total; i++) {
ColorCell cell = (ColorCell) this.pane.getComponent(i);
Color color = i < size ? colors[size - i - 1] : UsedColorPane.DEFAULT_COLOR;
Color color = i <= size ? colors[size - i] : UsedColorPane.DEFAULT_COLOR;
cell.setColor(color == null ? UsedColorPane.DEFAULT_COLOR : color);
}
}

Loading…
Cancel
Save