mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Links x offset calculated wrong in About Popup
(cherry picked from commit a57264b75e0505e798384e7a0f142045126f5ad4)
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user