xiaoxia 8 years ago
parent
commit
200bedcc9a
  1. 4
      designer/src/com/fr/design/mainframe/alphafine/cell/cellRender/ContentCellRender.java
  2. 2
      designer/src/com/fr/design/mainframe/alphafine/previewPane/PluginPreviewPane.java

4
designer/src/com/fr/design/mainframe/alphafine/cell/cellRender/ContentCellRender.java

@ -27,7 +27,7 @@ public class ContentCellRender implements ListCellRenderer<Object> {
JPanel panel = new JPanel(new BorderLayout()); JPanel panel = new JPanel(new BorderLayout());
panel.setBackground(Color.white); panel.setBackground(Color.white);
if (isSelected) { if (isSelected) {
panel.setBackground(new Color(0x3394f0)); panel.setBackground(AlphaFineConstants.BLUE);
} }
panel.setBorder(BorderFactory.createEmptyBorder(0,15,0,0)); panel.setBorder(BorderFactory.createEmptyBorder(0,15,0,0));
AlphaCellModel model = (AlphaCellModel) value; AlphaCellModel model = (AlphaCellModel) value;
@ -35,7 +35,7 @@ public class ContentCellRender implements ListCellRenderer<Object> {
String iconUrl = "/com/fr/design/mainframe/alphafine/images/alphafine" + model.getType().getCellType() + ".png"; String iconUrl = "/com/fr/design/mainframe/alphafine/images/alphafine" + model.getType().getCellType() + ".png";
name.setIcon(new ImageIcon(getClass().getResource(iconUrl))); name.setIcon(new ImageIcon(getClass().getResource(iconUrl)));
name.setFont(AlphaFineConstants.MEDIUM_FONT); name.setFont(AlphaFineConstants.MEDIUM_FONT);
name.setForeground(new Color(0x222222)); name.setForeground(AlphaFineConstants.BLACK);
name.setVerticalTextPosition(SwingConstants.CENTER); name.setVerticalTextPosition(SwingConstants.CENTER);
name.setHorizontalTextPosition(SwingConstants.RIGHT); name.setHorizontalTextPosition(SwingConstants.RIGHT);
if (model.getDescription() != null) { if (model.getDescription() != null) {

2
designer/src/com/fr/design/mainframe/alphafine/previewPane/PluginPreviewPane.java

@ -45,7 +45,7 @@ public class PluginPreviewPane extends JPanel {
jartimeLabel.setFont(AlphaFineConstants.MEDIUM_FONT); jartimeLabel.setFont(AlphaFineConstants.MEDIUM_FONT);
bottomPane.add(jartimeLabel, BorderLayout.EAST); bottomPane.add(jartimeLabel, BorderLayout.EAST);
} }
nameLabel.setFont(new Font("Song_TypeFace",0,18)); nameLabel.setFont(AlphaFineConstants.LARGE_FONT);
nameLabel.setBackground(AlphaFineConstants.BLUE); nameLabel.setBackground(AlphaFineConstants.BLUE);
nameLabel.setBorder(BorderFactory.createEmptyBorder(20,20,10,20)); nameLabel.setBorder(BorderFactory.createEmptyBorder(20,20,10,20));
line.setBorder(BorderFactory.createEmptyBorder(20, 0, 10, 0)); line.setBorder(BorderFactory.createEmptyBorder(20, 0, 10, 0));

Loading…
Cancel
Save