Browse Source

Pull request #8808: REPORT-70446 交互视觉修改

Merge in DESIGN/design from ~HADES/design:feature/x to feature/x

* commit '2d0a212718a23e9e393a0e6bbac3ffc7e69c78e0':
  REPORT-70446 交互视觉修改
feature/x
Hades 2 years ago
parent
commit
85f0df8a2e
  1. 2
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/component/ProductNewsImagePanel.java
  2. 4
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/question/QuestionPane.java

2
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/component/ProductNewsImagePanel.java

@ -56,7 +56,7 @@ public class ProductNewsImagePanel extends JPanel {
}
Set<Long> readSet = DesignerEnvManager.getEnvManager().getAlphaFineConfigManager().getReadSet();
if (!readSet.contains(productNews.getId())) {
g2.drawImage(NEW_TIP_IMAGE, 0, 0, this);
g2.drawImage(NEW_TIP_IMAGE, 0, 0, (int) (NEW_TIP_IMAGE.getWidth(this) / SVGLoader.SYSTEM_SCALE), (int) (NEW_TIP_IMAGE.getHeight(this) / SVGLoader.SYSTEM_SCALE), this);
}
g2.setColor(BACKGROUND_COLOR);

4
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/question/QuestionPane.java

@ -39,7 +39,9 @@ public class QuestionPane extends JPanel {
} else {
g2.drawImage(QUESTION_BACKGROUND_IMAGE, 0, 0, getWidth(), getHeight(), this);
}
g2.drawImage(QUESTION_IMAGE, (getWidth() - QUESTION_IMAGE.getWidth(this)) / 2, (getHeight() - QUESTION_IMAGE.getHeight(this)) / 2, this);
int imageWidth = (int) (QUESTION_IMAGE.getWidth(this) / SVGLoader.SYSTEM_SCALE);
int imageHeight = (int) (QUESTION_IMAGE.getHeight(this) / SVGLoader.SYSTEM_SCALE);
g2.drawImage(QUESTION_IMAGE, (getWidth() - imageWidth) / 2, (getHeight() - imageHeight) / 2, imageWidth, imageHeight, this);
}

Loading…
Cancel
Save