Browse Source

Merge pull request #1272 in DESIGN/design from ~VITO/c-design:final/10.0 to final/10.0

* commit 'e820e2a456d1c50ad04d9e07309141d3bd86e9fb':
  REPORT-22595【10.0.4设计器】开发者鸣谢,放到启动图左侧下方
final/10.0
Kara 5 years ago
parent
commit
6898d9a424
  1. 8
      designer-realize/src/main/java/com/fr/start/common/SplashPane.java

8
designer-realize/src/main/java/com/fr/start/common/SplashPane.java

@ -28,10 +28,10 @@ public class SplashPane extends JPanel {
private static final Color MODULE_COLOR = new Color(255, 255, 255); private static final Color MODULE_COLOR = new Color(255, 255, 255);
private static final int MODULE_INFO_X = uiScale(36); private static final int MODULE_INFO_X = uiScale(36);
private static final int MODULE_INFO_Y = uiScale(339); private static final int MODULE_INFO_Y = uiScale(300);
private static final Color THANK_COLOR = new Color(255, 255, 255, (int) (0.6 * 255 + 0.5)); private static final Color THANK_COLOR = new Color(255, 255, 255, (int) (0.6 * 255 + 0.5));
private static final int THANK_INFO_X = uiScale(470); private static final int THANK_INFO_Y = uiScale(340);
private static final int FONT_SIZE = uiScale(12); private static final int FONT_SIZE = uiScale(12);
private static final int MODULE_INFO_WIDTH = uiScale(150); private static final int MODULE_INFO_WIDTH = uiScale(150);
@ -84,7 +84,7 @@ public class SplashPane extends JPanel {
//感谢用户信息 //感谢用户信息
if (StringUtils.isNotEmpty(thanksLog)) { if (StringUtils.isNotEmpty(thanksLog)) {
g.setPaint(THANK_COLOR); g.setPaint(THANK_COLOR);
GraphHelper.drawString(g, thanksLog, THANK_INFO_X, MODULE_INFO_Y); GraphHelper.drawString(g, thanksLog, MODULE_INFO_X, THANK_INFO_Y);
} }
config.restore(); config.restore();
} }
@ -114,7 +114,7 @@ public class SplashPane extends JPanel {
void updateThanksLog(String text) { void updateThanksLog(String text) {
thanksLog = text; thanksLog = text;
repaint(THANK_INFO_X, MODULE_INFO_Y - FONT_SIZE, MODULE_INFO_WIDTH, MODULE_INFO_HEIGHT); repaint(MODULE_INFO_X, THANK_INFO_Y - FONT_SIZE, MODULE_INFO_WIDTH, MODULE_INFO_HEIGHT);
} }
} }

Loading…
Cancel
Save