xiaoxia 8 years ago
parent
commit
3669c44197
  1. 15
      designer/src/com/fr/design/mainframe/alphafine/AlphaFineConstants.java
  2. 3
      designer/src/com/fr/design/mainframe/alphafine/cell/cellRender/ContentCellRender.java
  3. 5
      designer/src/com/fr/design/mainframe/alphafine/cell/cellRender/TitleCellRender.java
  4. 2
      designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java
  5. BIN
      designer/src/com/fr/design/mainframe/alphafine/images/loading.gif
  6. 4
      designer/src/com/fr/design/mainframe/alphafine/previewPane/DocumentPreviewPane.java

15
designer/src/com/fr/design/mainframe/alphafine/AlphaFineConstants.java

@ -45,6 +45,21 @@ public class AlphaFineConstants {
public static final Color BLACK = new Color(0x222222);
public static final Font SMALL_FONT = new Font("Song_TypeFace",0,10);
public static final Font MEDIUM_FONT = new Font("Song_TypeFace",0,12);
public static final Font LARGE_FONT = new Font("Song_TypeFace",0,18);
public static final Font GREATER_FONT = new Font("Song_TypeFace",0,20);
public static final String PLUGIN_SEARCH_URL = SiteCenter.getInstance().acquireUrlByKind("plugin.searchAPI");

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

@ -1,6 +1,7 @@
package com.fr.design.mainframe.alphafine.cell.cellRender;
import com.fr.design.gui.ilable.UILabel;
import com.fr.design.mainframe.alphafine.AlphaFineConstants;
import com.fr.design.mainframe.alphafine.cell.cellModel.AlphaCellModel;
import com.fr.design.mainframe.alphafine.cell.cellModel.MoreModel;
@ -33,7 +34,7 @@ public class ContentCellRender implements ListCellRenderer<Object> {
name.setText(model.getName());
String iconUrl = "/com/fr/design/mainframe/alphafine/images/alphafine" + model.getType().getCellType() + ".png";
name.setIcon(new ImageIcon(getClass().getResource(iconUrl)));
name.setFont(new Font("Song_TypeFace",0,12));
name.setFont(AlphaFineConstants.MEDIUM_FONT);
name.setForeground(new Color(0x222222));
name.setVerticalTextPosition(SwingConstants.CENTER);
name.setHorizontalTextPosition(SwingConstants.RIGHT);

5
designer/src/com/fr/design/mainframe/alphafine/cell/cellRender/TitleCellRender.java

@ -1,6 +1,7 @@
package com.fr.design.mainframe.alphafine.cell.cellRender;
import com.fr.design.gui.ilable.UILabel;
import com.fr.design.mainframe.alphafine.AlphaFineConstants;
import com.fr.design.mainframe.alphafine.cell.cellModel.MoreModel;
import javax.swing.*;
import java.awt.*;
@ -23,8 +24,8 @@ public class TitleCellRender implements ListCellRenderer<Object> {
panel.setBackground(new Color(0xf9f9f9));
panel.setBorder(BorderFactory.createEmptyBorder(0,15,0,0));
name.setText(moreModel.getName());
name.setFont(new Font("Song_TypeFace",0,10));
more.setFont(new Font("Song_TypeFace",0,10));
name.setFont(AlphaFineConstants.SMALL_FONT);
more.setFont(AlphaFineConstants.SMALL_FONT);
more.setText(moreModel.getContent());
name.setForeground(new Color(0x666666));
more.setForeground(new Color(0x666666));

2
designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java

@ -68,7 +68,7 @@ public class AlphaFineDialog extends UIDialog {
private void initComponents() {
searchTextField = new AlphaTextField("AlphaFine");
searchTextField.setFont(new Font("Song_TypeFace",0,20));
searchTextField.setFont(AlphaFineConstants.GREATER_FONT);
searchTextField.setBackground(Color.white);
searchTextField.setBorderPainted(false);
JPanel topPane = new JPanel(new BorderLayout());

BIN
designer/src/com/fr/design/mainframe/alphafine/images/loading.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 11 KiB

4
designer/src/com/fr/design/mainframe/alphafine/previewPane/DocumentPreviewPane.java

@ -24,8 +24,8 @@ public class DocumentPreviewPane extends JPanel {
titleArea.setForeground(AlphaFineConstants.BLUE);
contentArea.setForeground(AlphaFineConstants.BLACK);
titleArea.setPreferredSize(new Dimension(360, 30));
titleArea.setFont(new Font("Song_TypeFace",0,18));
contentArea.setFont(new Font("Song_TypeFace",0,12));
titleArea.setFont(AlphaFineConstants.LARGE_FONT);
contentArea.setFont(AlphaFineConstants.MEDIUM_FONT);
add(titleArea, BorderLayout.NORTH);
add(contentArea, BorderLayout.CENTER);
}

Loading…
Cancel
Save