From f4f714d8875dadfc402d3cf4fdadd8d1196dfbe8 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Thu, 26 Nov 2015 13:28:11 +0100 Subject: [PATCH] Links x offset calculated wrong in About Popup (cherry picked from commit a57264b75e0505e798384e7a0f142045126f5ad4) --- .../src/com/intellij/ide/actions/AboutPopup.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/ide/actions/AboutPopup.java b/platform/platform-impl/src/com/intellij/ide/actions/AboutPopup.java index 5f422d86deef..2084f8f0392c 100644 --- a/platform/platform-impl/src/com/intellij/ide/actions/AboutPopup.java +++ b/platform/platform-impl/src/com/intellij/ide/actions/AboutPopup.java @@ -262,7 +262,7 @@ public class AboutPopup { g2.setColor(Gray.x33); g2.setFont(JBUI.Fonts.label(12)); } - final int copyrightX = Registry.is("ide.new.about") ? JBUI.scale(100) : JBUI.scale(30); + final int copyrightX = Registry.is("ide.new.about") ? JBUI.scale(140) : JBUI.scale(30); final int copyrightY = Registry.is("ide.new.about") ? JBUI.scale(390) : JBUI.scale(284); g2.drawString("\u00A9 2000\u2013" + Calendar.getInstance(Locale.US).get(Calendar.YEAR) + " JetBrains s.r.o. All rights reserved.", copyrightX, copyrightY); } @@ -270,7 +270,7 @@ public class AboutPopup { @NotNull private TextRenderer createTextRenderer(Graphics2D g) { if (Registry.is("ide.new.about")) { - return new TextRenderer(70, 200, 450, 220, g); + return new TextRenderer(18, 200, 500, 220, g); } return new TextRenderer(0, 165, 398, 120, g); } @@ -317,7 +317,7 @@ public class AboutPopup { if (line.getUrl() != null) { g2.setColor(myLinkColor); FontMetrics metrics = g2.getFontMetrics(font); - myLinks.add(new Link(new Rectangle(x, yBase + y - fontAscent, metrics.stringWidth(s), fontHeight), line.getUrl())); + myLinks.add(new Link(new Rectangle(xBase + x, yBase + y - fontAscent, metrics.stringWidth(s + " "), fontHeight), line.getUrl())); } else { g2.setColor(Registry.is("ide.new.about") ? Gray.x33 : appInfo.getAboutForeground());