Skip to content

Commit

Permalink
update icon image to 128x128 version
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam- committed Jan 28, 2024
1 parent 8eaef20 commit 6e5f3db
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/main/java/net/runelite/launcher/ConfigurationFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,18 @@ private ConfigurationFrame(LauncherSettings settings)
{
setTitle("RuneLite Launcher Configuration");

BufferedImage logo;
try (var in = SplashScreen.class.getResourceAsStream("runelite_transparent.png"))
BufferedImage iconImage;
try (var in = ConfigurationFrame.class.getResourceAsStream("runelite_128.png"))
{
logo = ImageIO.read(in);
iconImage = ImageIO.read(in);
}
catch (IOException ex)
{
throw new RuntimeException(ex);
}

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setIconImage(logo);
setIconImage(iconImage);

Container pane = getContentPane();
pane.setLayout(new BoxLayout(pane, BoxLayout.Y_AXIS));
Expand Down
12 changes: 9 additions & 3 deletions src/main/java/net/runelite/launcher/FatalErrorDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,17 @@ public FatalErrorDialog(String message)

UIManager.put("Button.select", DARKER_GRAY_COLOR);

try
try (var in = FatalErrorDialog.class.getResourceAsStream("runelite_128.png"))
{
setIconImage(ImageIO.read(in));
}
catch (IOException e)
{
BufferedImage logo = ImageIO.read(SplashScreen.class.getResourceAsStream("runelite_transparent.png"));
setIconImage(logo);
}

try (var in = FatalErrorDialog.class.getResourceAsStream("runelite_splash.png"))
{
BufferedImage logo = ImageIO.read(in);
JLabel runelite = new JLabel();
runelite.setIcon(new ImageIcon(logo));
runelite.setAlignmentX(Component.CENTER_ALIGNMENT);
Expand Down
16 changes: 9 additions & 7 deletions src/main/java/net/runelite/launcher/SplashScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,25 @@ public class SplashScreen extends JFrame implements ActionListener

private SplashScreen() throws IOException
{
BufferedImage logo;
try (var in = SplashScreen.class.getResourceAsStream("runelite_transparent.png"))
{
logo = ImageIO.read(in);
}

setTitle("RuneLite Launcher");

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setUndecorated(true);
setIconImage(logo);
try (var in = SplashScreen.class.getResourceAsStream("runelite_128.png"))
{
setIconImage(ImageIO.read(in));
}
setLayout(null);
Container pane = getContentPane();
pane.setBackground(DARKER_GRAY_COLOR);

Font font = new Font(Font.DIALOG, Font.PLAIN, 12);

BufferedImage logo;
try (var in = SplashScreen.class.getResourceAsStream("runelite_splash.png"))
{
logo = ImageIO.read(in);
}
JLabel logoLabel = new JLabel(new ImageIcon(logo));
pane.add(logoLabel);
logoLabel.setBounds(0, 0, WIDTH, WIDTH);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6e5f3db

Please sign in to comment.