@ -61,7 +61,7 @@ public class NewColorSelectPane extends BasicPane implements ColorSelectable {
private final JPanel menuColorPane ;
private final JPanel menuColorPane ;
private ColorCell [ ] [ ] themeColorCellGrid ;
private ColorCell [ ] [ ] themeColorCellGrid ;
private ColorSelectorStyle colorSelector ;
private List < ColorConfig > colorSelector ;
public static NewColorSelectPane createColorSelectPaneWithTheme ( boolean supportTheme ) {
public static NewColorSelectPane createColorSelectPaneWithTheme ( boolean supportTheme ) {
return new NewColorSelectPane ( true , supportTheme ) ;
return new NewColorSelectPane ( true , supportTheme ) ;
@ -159,7 +159,7 @@ public class NewColorSelectPane extends BasicPane implements ColorSelectable {
JPanel centerPane = new JPanel ( new GridLayout ( 1 , 8 , DEFAULT_COLOR_HOR_INTERVAL , 0 ) ) ;
JPanel centerPane = new JPanel ( new GridLayout ( 1 , 8 , DEFAULT_COLOR_HOR_INTERVAL , 0 ) ) ;
menuColorPane . add ( northPane , BorderLayout . NORTH ) ;
menuColorPane . add ( northPane , BorderLayout . NORTH ) ;
menuColorPane . add ( centerPane , BorderLayout . CENTER ) ;
menuColorPane . add ( centerPane , BorderLayout . CENTER ) ;
this . colorSelector = FRColorSelectorStyle . getInstance ( ) ;
this . colorSelector = FRColorSelectorStyle . COLOR_CONFIG ;
DefaultValueAdjustProvider valueAdjust = DesignUtils . getValueAdjust ( ) ;
DefaultValueAdjustProvider valueAdjust = DesignUtils . getValueAdjust ( ) ;
if ( valueAdjust ! = null ) {
if ( valueAdjust ! = null ) {
this . colorSelector = valueAdjust . getColorSelector ( ) ;
this . colorSelector = valueAdjust . getColorSelector ( ) ;
@ -455,8 +455,7 @@ public class NewColorSelectPane extends BasicPane implements ColorSelectable {
}
}
public ColorConfig getColorConfig ( ColorSelectorStyle colorSelector , int i ) {
public ColorConfig getColorConfig ( List < ColorConfig > colorConfigs , int i ) {
List < ColorConfig > colorConfigs = colorSelector . getColorConfigs ( ) ;
if ( i < 0 | | i > = colorConfigs . size ( ) ) {
if ( i < 0 | | i > = colorConfigs . size ( ) ) {
return colorConfigs . get ( 0 ) ;
return colorConfigs . get ( 0 ) ;
}
}