|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.fr.design.mainframe.alphafine.previewPane; |
|
|
|
package com.fr.design.mainframe.alphafine.previewPane; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
|
|
|
import com.fr.design.mainframe.alphafine.AlphaFineConstants; |
|
|
|
import com.fr.design.mainframe.alphafine.CellType; |
|
|
|
import com.fr.design.mainframe.alphafine.CellType; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.general.Inter; |
|
|
|
|
|
|
|
|
|
|
@ -26,7 +27,7 @@ public class PluginPreviewPane extends JPanel { |
|
|
|
nameLabel.setHorizontalAlignment(SwingConstants.CENTER); |
|
|
|
nameLabel.setHorizontalAlignment(SwingConstants.CENTER); |
|
|
|
JPanel line = new JPanel(); |
|
|
|
JPanel line = new JPanel(); |
|
|
|
line.setPreferredSize(new Dimension(200,1)); |
|
|
|
line.setPreferredSize(new Dimension(200,1)); |
|
|
|
line.setBackground(new Color(0xd2d2d2)); |
|
|
|
line.setBackground(AlphaFineConstants.GRAY); |
|
|
|
JPanel panel = new JPanel(new BorderLayout()); |
|
|
|
JPanel panel = new JPanel(new BorderLayout()); |
|
|
|
panel.setBackground(Color.white); |
|
|
|
panel.setBackground(Color.white); |
|
|
|
JPanel bottomPane = new JPanel(new BorderLayout()); |
|
|
|
JPanel bottomPane = new JPanel(new BorderLayout()); |
|
|
@ -36,26 +37,26 @@ public class PluginPreviewPane extends JPanel { |
|
|
|
UILabel versionLabel = new UILabel("V" + version); |
|
|
|
UILabel versionLabel = new UILabel("V" + version); |
|
|
|
versionLabel.setHorizontalAlignment(SwingConstants.CENTER); |
|
|
|
versionLabel.setHorizontalAlignment(SwingConstants.CENTER); |
|
|
|
versionLabel.setBorder(BorderFactory.createEmptyBorder(0,0,10,0)); |
|
|
|
versionLabel.setBorder(BorderFactory.createEmptyBorder(0,0,10,0)); |
|
|
|
versionLabel.setForeground(new Color(0x666666)); |
|
|
|
versionLabel.setForeground(AlphaFineConstants.DARK_GRAY); |
|
|
|
versionLabel.setFont(new Font("Song_TypeFace",0,12)); |
|
|
|
versionLabel.setFont(AlphaFineConstants.MEDIUM_FONT); |
|
|
|
panel.add(versionLabel, BorderLayout.CENTER); |
|
|
|
panel.add(versionLabel, BorderLayout.CENTER); |
|
|
|
UILabel jartimeLabel = new UILabel(jartime.substring(0, 10)); |
|
|
|
UILabel jartimeLabel = new UILabel(jartime.substring(0, 10)); |
|
|
|
jartimeLabel.setForeground(new Color(0x222222)); |
|
|
|
jartimeLabel.setForeground(AlphaFineConstants.BLACK); |
|
|
|
jartimeLabel.setFont(new Font("Song_TypeFace",0,12)); |
|
|
|
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(new Font("Song_TypeFace",0,18)); |
|
|
|
nameLabel.setBackground(new Color(0x3394f0)); |
|
|
|
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)); |
|
|
|
String price0 = price == 0 ? Inter.getLocText("FR-Designer-Collect_Information_free") : String.valueOf(price); |
|
|
|
String price0 = price == 0 ? Inter.getLocText("FR-Designer-Collect_Information_free") : String.valueOf(price); |
|
|
|
UILabel priceLabel = new UILabel(price0); |
|
|
|
UILabel priceLabel = new UILabel(price0); |
|
|
|
priceLabel.setForeground(new Color(0xf46c4c)); |
|
|
|
priceLabel.setForeground(AlphaFineConstants.RED); |
|
|
|
priceLabel.setFont(new Font("Song_TypeFace",0,10)); |
|
|
|
priceLabel.setFont(AlphaFineConstants.SMALL_FONT); |
|
|
|
bottomPane.add(priceLabel, BorderLayout.WEST); |
|
|
|
bottomPane.add(priceLabel, BorderLayout.WEST); |
|
|
|
panel.add(nameLabel, BorderLayout.NORTH); |
|
|
|
panel.add(nameLabel, BorderLayout.NORTH); |
|
|
|
panel.add(line, BorderLayout.SOUTH); |
|
|
|
panel.add(line, BorderLayout.SOUTH); |
|
|
|
nameLabel.setForeground(new Color(0x3394f0)); |
|
|
|
nameLabel.setForeground(AlphaFineConstants.BLUE); |
|
|
|
add(imageLabel, BorderLayout.NORTH); |
|
|
|
add(imageLabel, BorderLayout.NORTH); |
|
|
|
add(panel, BorderLayout.CENTER); |
|
|
|
add(panel, BorderLayout.CENTER); |
|
|
|
add(bottomPane, BorderLayout.SOUTH); |
|
|
|
add(bottomPane, BorderLayout.SOUTH); |
|
|
|