Skip to content

Commit 565ab9c

Browse files
committed
Update about.html
1 parent 3367d57 commit 565ab9c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/main/java/the/bytecode/club/jda/Resources.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,9 @@ public class Resources
5252
}
5353

5454
iconList = new ArrayList<>();
55-
int size = 16;
56-
for (int i = 0; i < 24; i++)
55+
for (int size : new int[] { 8, 16, 24, 32, 48, 64, 96, 128, 192, 256 })
5756
{
5857
iconList.add(resize(icon, size, size));
59-
size += 2;
6058
}
6159
}
6260

src/main/java/the/bytecode/club/jda/gui/AboutWindow.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public AboutWindow()
4141
{
4242
String text = IOUtils.toString(Resources.class.getResourceAsStream("/about.html"), "UTF-8");
4343
text = text.replace("$JDA_VERSION$", JDA.version + (JDA.previewCopy ? " (preview)" : ""));
44+
text = text.replace("$JDA_ICON$", Resources.class.getClass().getResource("/icon.png").toString());
4445
editorPane.setText(text);
4546
}
4647
catch (IOException e)

src/main/resources/about.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<html>
22
<body style="width:400px; text-align: center; font-family: Arial, sans-serif;">
3+
<p>
4+
<img src='$JDA_ICON$'">
35
<h2>JDA - The Java Disassembler</h2>
46
Version $JDA_VERSION$<br />
57
(c) 2016 ecx86<br />
8+
Icon by <a href="http://braydengregerson.com">Brayden Gregerson</a><br />
9+
</p>
610
</body>
711
</html>

0 commit comments

Comments
 (0)