@@ -56,7 +56,7 @@ launch4j {
|
||||
mainClassName = 'jadx.gui.JadxGUI'
|
||||
copyConfigurable = project.tasks.shadowJar.outputs.files
|
||||
jar = "lib/${project.tasks.shadowJar.archiveName}"
|
||||
// icon = "${projectDir}/icons/myApp.ico"
|
||||
icon = "${projectDir}/src/main/resources/logos/jadx-logo.ico"
|
||||
outfile = "jadx-gui-${version}.exe"
|
||||
copyright = 'Skylot'
|
||||
windowTitle = 'jadx'
|
||||
|
||||
@@ -23,7 +23,9 @@ import java.awt.event.MouseAdapter;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Timer;
|
||||
import java.util.TimerTask;
|
||||
|
||||
@@ -114,6 +116,16 @@ public class MainWindow extends JFrame {
|
||||
registerBundledFonts();
|
||||
initUI();
|
||||
initMenuAndToolbar();
|
||||
setWindowIcons();
|
||||
}
|
||||
|
||||
private void setWindowIcons() {
|
||||
List<Image> icons = new ArrayList<>();
|
||||
icons.add(Utils.openImage("/logos/jadx-logo-16px.png"));
|
||||
icons.add(Utils.openImage("/logos/jadx-logo-32px.png"));
|
||||
icons.add(Utils.openImage("/logos/jadx-logo-48px.png"));
|
||||
icons.add(Utils.openImage("/logos/jadx-logo.png"));
|
||||
setIconImages(icons);
|
||||
loadSettings();
|
||||
checkForUpdate();
|
||||
}
|
||||
|
||||
@@ -48,6 +48,14 @@ public class Utils {
|
||||
return new ImageIcon(resource);
|
||||
}
|
||||
|
||||
public static Image openImage(String path) {
|
||||
URL resource = Utils.class.getResource(path);
|
||||
if (resource == null) {
|
||||
throw new JadxRuntimeException("Image not found: " + path);
|
||||
}
|
||||
return Toolkit.getDefaultToolkit().createImage(resource);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static Font openFontTTF(String name) {
|
||||
String fontPath = "/fonts/" + name + ".ttf";
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 814 B |
Binary file not shown.
|
After Width: | Height: | Size: 4.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 9.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Reference in New Issue
Block a user