Browse Source

REPORT-73335【设计器环境监测】手动检测完成后,交互文字提示丢失

修一下 UI 界面图
feature/x
Harrison 2 years ago
parent
commit
c54effde51
  1. 6
      designer-base/src/main/java/com/fr/env/detect/ui/EnvDetectorDialog.java

6
designer-base/src/main/java/com/fr/env/detect/ui/EnvDetectorDialog.java vendored

@ -52,7 +52,9 @@ import java.util.stream.Stream;
public class EnvDetectorDialog extends JDialog { public class EnvDetectorDialog extends JDialog {
private static final ImageIcon LOADING_ICON = getLoadingIcon(); private static final ImageIcon LOADING_ICON = getLoadingIcon();
public static final int TIMEOUT = 1000; private static final int TIMEOUT = 1000;
private static final Color SUCCESS_COLOR = new Color(22, 193, 83);
private final JPanel body; private final JPanel body;
@ -273,7 +275,7 @@ public class EnvDetectorDialog extends JDialog {
if (success) { if (success) {
resultSummaryPane.add(new UILabel(Toolkit.i18nText("Fine-Design_Basic_Detect_Result_Label")), BorderLayout.WEST); resultSummaryPane.add(new UILabel(Toolkit.i18nText("Fine-Design_Basic_Detect_Result_Label")), BorderLayout.WEST);
UILabel successLabel = new UILabel(Toolkit.i18nText("Fine-Design_Basic_Detect_Result_Success")); UILabel successLabel = new UILabel(Toolkit.i18nText("Fine-Design_Basic_Detect_Result_Success"));
successLabel.setForeground(Color.GREEN); successLabel.setForeground(SUCCESS_COLOR);
resultSummaryPane.add(successLabel, BorderLayout.CENTER); resultSummaryPane.add(successLabel, BorderLayout.CENTER);
} else { } else {
resultSummaryPane.add(new UILabel(Toolkit.i18nText("Fine-Design_Basic_Detect_Result_Label")), BorderLayout.WEST); resultSummaryPane.add(new UILabel(Toolkit.i18nText("Fine-Design_Basic_Detect_Result_Label")), BorderLayout.WEST);

Loading…
Cancel
Save