|
|
@ -100,11 +100,13 @@ public class ColorCell extends JComponent implements ColorSelectable { |
|
|
|
|
|
|
|
|
|
|
|
if (e == null || e.getID() == MouseEvent.MOUSE_RELEASED) { |
|
|
|
if (e == null || e.getID() == MouseEvent.MOUSE_RELEASED) { |
|
|
|
colorSelectable.setColor(this.getColor()); |
|
|
|
colorSelectable.setColor(this.getColor()); |
|
|
|
colorSelectable.colorSetted(this); |
|
|
|
// 先添加最近使用
|
|
|
|
if (this.getColor() != null) { |
|
|
|
if (this.getColor() != null) { |
|
|
|
int rgb = this.getColor().getRGB(); |
|
|
|
int rgb = this.getColor().getRGB(); |
|
|
|
DesignerEnvManager.getEnvManager().getColorConfigManager().addToColorQueue(new Color(rgb)); |
|
|
|
DesignerEnvManager.getEnvManager().getColorConfigManager().addToColorQueue(new Color(rgb)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 这边会获取到最近使用颜色并更新 添加逻辑需要放到前面 否则不会及时更新
|
|
|
|
|
|
|
|
colorSelectable.colorSetted(this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (e != null) { |
|
|
|
if (e != null) { |
|
|
|