|
|
@ -115,12 +115,16 @@ public class ColorSelectPane extends TransparentPane implements ColorSelectable |
|
|
|
row1Pane.setPreferredSize(new Dimension(135, 24)); // 宽度为 16 * 8 + 7
|
|
|
|
row1Pane.setPreferredSize(new Dimension(135, 24)); // 宽度为 16 * 8 + 7
|
|
|
|
|
|
|
|
|
|
|
|
// 最近使用
|
|
|
|
// 最近使用
|
|
|
|
UsedColorPane usedColorPane = new UsedColorPane(1, 8, 1, this, true, true); |
|
|
|
UsedColorPane usedColorPane = new UsedColorPane(1, 8, 1, this, true, selectRealTime()); |
|
|
|
usedColorPane.getPane().setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 8)); |
|
|
|
usedColorPane.getPane().setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 8)); |
|
|
|
row1Pane.add(usedColorPane.getPane()); |
|
|
|
row1Pane.add(usedColorPane.getPane()); |
|
|
|
return row1Pane; |
|
|
|
return row1Pane; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected boolean selectRealTime() { |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected Color[] getColorArray() { |
|
|
|
protected Color[] getColorArray() { |
|
|
|
return ColorFactory.MenuColors; |
|
|
|
return ColorFactory.MenuColors; |
|
|
|
} |
|
|
|
} |
|
|
|