Browse Source

REPORT-58390 【主题切换】细节定制-决策报表的模板背景-不透明度降低后,缩略图会变暗

【问题原因】
缩略图改为手动绘制后,不存在这个问题了,不过还是给个默认的
白色背景

【改动思路】
同上
fix-lag
Starryi 3 years ago
parent
commit
0da7995ab6
  1. 5
      designer-base/src/main/java/com/fr/design/mainframe/theme/TemplateThemeBlock.java

5
designer-base/src/main/java/com/fr/design/mainframe/theme/TemplateThemeBlock.java

@ -211,6 +211,11 @@ public class TemplateThemeBlock<T extends TemplateTheme> extends JPanel {
public void paint(Graphics g) { public void paint(Graphics g) {
super.paint(g); super.paint(g);
Graphics2D g2d = (Graphics2D) g; Graphics2D g2d = (Graphics2D) g;
Color oldColor = g2d.getColor();
g2d.setColor(Color.WHITE);
g2d.fillRect(0, 0, getWidth(), getHeight());
g2d.setColor(oldColor);
paintCenterImage(g2d, thumbnail != null ? thumbnail : LOADING_IMAGE); paintCenterImage(g2d, thumbnail != null ? thumbnail : LOADING_IMAGE);
} }

Loading…
Cancel
Save