Browse Source

REPORT-60171 【主题切换】单元格样式设置透明底色效果不对,且有错乱效果

【问题原因】
透明底色图片的透明度正常,不过单元格样式预览界面在
windows上存在重影问题,需要修复下。

【改动思路】
绘制单元格样式预览内容前清空画布
research/11.0
Starryi 3 years ago
parent
commit
c157fbcb58
  1. 1
      designer-base/src/main/java/com/fr/design/cell/CellStylePreviewPane.java

1
designer-base/src/main/java/com/fr/design/cell/CellStylePreviewPane.java

@ -43,6 +43,7 @@ public class CellStylePreviewPane extends JPanel {
@Override @Override
public void paint(Graphics g) { public void paint(Graphics g) {
Graphics2D g2d = (Graphics2D) g; Graphics2D g2d = (Graphics2D) g;
g.clearRect(0, 0, getWidth(), getHeight());
paintTransparentBackground(g2d, style); paintTransparentBackground(g2d, style);

Loading…
Cancel
Save