From a064c43c9722865c344a4ab2a1db14478a4cf14d Mon Sep 17 00:00:00 2001 From: kuangshuai Date: Sun, 10 Oct 2021 18:48:26 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-60488=20=E8=A7=86=E8=A7=89=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../design/mainframe/guide/base/GuideView.java | 2 +- .../guide/ui/bubble/BubbleWithClose.java | 6 ++++-- .../mainframe/guide/utils/ScreenImage.java | 2 +- .../com/fr/design/mainframe/guide/close.png | Bin 375 -> 1176 bytes .../guide/creator/GuideCreateUtils.java | 4 +++- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/mainframe/guide/base/GuideView.java b/designer-base/src/main/java/com/fr/design/mainframe/guide/base/GuideView.java index 53e18ffd7a..d6ff17cbc7 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/guide/base/GuideView.java +++ b/designer-base/src/main/java/com/fr/design/mainframe/guide/base/GuideView.java @@ -37,7 +37,7 @@ public class GuideView extends JDialog { this.setUndecorated(true); this.window = window; this.modalColor = Color.BLACK; - this.modalOpacity = 0.4f; + this.modalOpacity = 0.6f; this.setPreferredSize(window.getSize()); this.setSize(window.getSize()); this.setLayout(FRGUIPaneFactory.createBorderLayout()); diff --git a/designer-base/src/main/java/com/fr/design/mainframe/guide/ui/bubble/BubbleWithClose.java b/designer-base/src/main/java/com/fr/design/mainframe/guide/ui/bubble/BubbleWithClose.java index 9894e5c93e..ba8f3da05d 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/guide/ui/bubble/BubbleWithClose.java +++ b/designer-base/src/main/java/com/fr/design/mainframe/guide/ui/bubble/BubbleWithClose.java @@ -7,6 +7,7 @@ import com.fr.design.gui.ibutton.UIButton; import com.fr.general.IOUtils; import com.fr.stable.StringUtils; +import javax.swing.Icon; import javax.swing.JTextPane; import javax.swing.text.SimpleAttributeSet; import javax.swing.text.StyleConstants; @@ -32,6 +33,7 @@ import java.text.AttributedString; public class BubbleWithClose extends Bubble { private static final Font FONT = new Font(Font.SANS_SERIF, Font.PLAIN, 14); + private static final Icon ICON = IOUtils.readIcon("/com/fr/design/mainframe/guide/close.png"); private static final int HEADER_HEIGHT = 24; private static final Color HEADER_COLOR = new Color(245, 245, 246); private static final Color TITLE_COLOR = new Color(51, 51, 52); @@ -112,9 +114,9 @@ public class BubbleWithClose extends Bubble { private void createCloseButton() { closeButton = new UIButton(); - closeButton.setIcon(IOUtils.readIcon("/com/fr/design/mainframe/guide/close.png")); + closeButton.setIcon(ICON); closeButton.set4ToolbarButton(); - closeButton.setPreferredSize(new Dimension(16, 16)); + closeButton.setPreferredSize(new Dimension(12, 12)); closeButton.setRolloverEnabled(false); closeButton.setPressedPainted(false); this.add(closeButton); diff --git a/designer-base/src/main/java/com/fr/design/mainframe/guide/utils/ScreenImage.java b/designer-base/src/main/java/com/fr/design/mainframe/guide/utils/ScreenImage.java index 3d718ec1cf..8705d0e8a4 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/guide/utils/ScreenImage.java +++ b/designer-base/src/main/java/com/fr/design/mainframe/guide/utils/ScreenImage.java @@ -61,7 +61,7 @@ public class ScreenImage { BufferedImage image = new BufferedImage(region.width, region.height, BufferedImage.TYPE_INT_RGB); Graphics2D g2d = image.createGraphics(); g2d.drawImage(createImage(component), 0, 0, null); - g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.4f)); + g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.6f)); g2d.setColor(Color.BLACK); g2d.fillRect(0, 0, region.width, region.height); g2d.dispose(); diff --git a/designer-base/src/main/resources/com/fr/design/mainframe/guide/close.png b/designer-base/src/main/resources/com/fr/design/mainframe/guide/close.png index 22e3caa538957be586f638a6ede20a45f4bc1e17..6f17a8e1c7822e1bf7aedd25fa776da2f6bbb05b 100644 GIT binary patch literal 1176 zcmeAS@N?(olHy`uVBq!ia0vp^JRr=$1|-8uW1a&kmUKs7M+SzC{oH>NS%LhD)CkWs zUtb0-Ae)1Ml~IU+8OUM;LIy@D29OFMi@}Rg8qN-4)PSmCVqj>`WMF}+i2~9f-~q%S zJrJ5{0TWyW&jMxy8>DpoKlwL6inG8YvY3H^TNs2H8D`CqU|?Xf$P9@niSYHYO3u&K zOH9d6O4X~#Edc3au&J;DGILW)5)~?PbMlIs&^GE;#L206>l&<1P) ziWtIq5cNT+#rZjnYFps+;>Ye+6BBPSvuIPa6ty4mKUT#je3@!PEMWvG-up`V$5%D))pP zHWc2OXRmwKF8dQR!np$& z9z0_0P-N%XaHP<#ebus)MxwdC*QZvk{kCk?Du#r`7eDkHrFkap>@?TizinQ=U_Vdi zno=RT)J<1Ib)x4UKXb{*&A@8@`QjIABs+b*PE^L2C%Gk6$1nMk^o;%bn$58~Vun-y zM3opwoZ;&~Yb4mhWcAB2AalRT+ozvSxW`O?{O_@{*BWPo_zSDLrWi=osq!4=cU#FY zYj56i=38e@_+Q>XeOs9KX0CZJWjxJ4+p682Q>-=h(R?}iU4^mzo=RJ{&v+8wcUgVM z0-clQ7k1vwigW7ySaD|ey3@_aV)tIV{Akyr6J5D4+MFkyw7vIP?R~bpVnDO#!&5AE hCPlv(ye}R5Abn!Zs6EdM zj9n{Et)!^U^PML*MDry+2={UCIp==l-Hw!!q9}4~+ukNgvNvuxp63lM%bF