|
|
@ -9,6 +9,7 @@ import com.fr.design.mainframe.alphafine.action.StartUseAction; |
|
|
|
import com.fr.design.mainframe.alphafine.component.TemplateResourceImagePanel; |
|
|
|
import com.fr.design.mainframe.alphafine.component.TemplateResourceImagePanel; |
|
|
|
import com.fr.design.mainframe.alphafine.model.TemplateResourceDetail; |
|
|
|
import com.fr.design.mainframe.alphafine.model.TemplateResourceDetail; |
|
|
|
import com.fr.design.utils.BrowseUtils; |
|
|
|
import com.fr.design.utils.BrowseUtils; |
|
|
|
|
|
|
|
import com.fr.design.utils.DesignUtils; |
|
|
|
import com.fr.design.utils.LinkStrUtils; |
|
|
|
import com.fr.design.utils.LinkStrUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
|
@ -20,6 +21,7 @@ import javax.swing.SwingUtilities; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Dimension; |
|
|
|
import java.awt.Dimension; |
|
|
|
import java.awt.FlowLayout; |
|
|
|
import java.awt.FlowLayout; |
|
|
|
|
|
|
|
import java.awt.Font; |
|
|
|
import java.awt.Graphics; |
|
|
|
import java.awt.Graphics; |
|
|
|
import java.awt.Graphics2D; |
|
|
|
import java.awt.Graphics2D; |
|
|
|
import java.awt.RenderingHints; |
|
|
|
import java.awt.RenderingHints; |
|
|
@ -66,8 +68,10 @@ public class TemplateResourceDetailPane extends JPanel { |
|
|
|
private static final Color INFO_PANE_FOREGROUND = new Color(0x5b5b5c); |
|
|
|
private static final Color INFO_PANE_FOREGROUND = new Color(0x5b5b5c); |
|
|
|
private static final Color MORE_INFO_LINK = new Color(0x419bf9); |
|
|
|
private static final Color MORE_INFO_LINK = new Color(0x419bf9); |
|
|
|
|
|
|
|
|
|
|
|
private static final String HTML_FORMAT = "<html><style>a {color: #419BF9;text-decoration:none;}</style><body style=\"font-family: 'PingFang SC';font-style: normal;font-weight: 400;font-size: 12pt;line-height: 20px; color: #5c5c5d;\">%s</body></html>"; |
|
|
|
private static final Font HTML_FONT = DesignUtils.getDefaultGUIFont().applySize(12); |
|
|
|
private static final String DETAIL_INFO_HTML_FORMAT = "<html><style>a {color: #419BF9;text-decoration:none;}</style><body style=\"font-family: 'PingFang SC';font-style: normal;font-weight: 400;font-size: 12pt;line-height: 20px; color: #5c5c5d;\"><p>" + DETAIL_INFO + "</p>%s</body></html>"; |
|
|
|
private static final Color HTML_COLOR = new Color(0x5c5c5d); |
|
|
|
|
|
|
|
private static final String HTML_FORMAT = "<html><style>a {color: #419BF9;text-decoration:none;}</style><body style=\"line-height: 20px;"+ LinkStrUtils.generateStyle(HTML_FONT, HTML_COLOR) +"\">%s</body></html>"; |
|
|
|
|
|
|
|
private static final String DETAIL_INFO_HTML_FORMAT = "<html><style>a {color: #419BF9;text-decoration:none;}</style><body style=\"line-height: 20px;" + LinkStrUtils.generateStyle(HTML_FONT, HTML_COLOR) + "\"><p>" + DETAIL_INFO + "</p>%s</body></html>"; |
|
|
|
private static final String HTML_P_TAG_FORMAT = "<p style=\"margin-top:5pt;\">%s</p>"; |
|
|
|
private static final String HTML_P_TAG_FORMAT = "<p style=\"margin-top:5pt;\">%s</p>"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|