Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jadx
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
jadx
Commits
f8c0449d
Unverified
Commit
f8c0449d
authored
Jan 23, 2019
by
skylot
Committed by
GitHub
Jan 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(gui): add icons to jadx-gui (#420) (PR #428)
parent
b28eaa1a
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
21 additions
and
1 deletion
+21
-1
build.gradle
jadx-gui/build.gradle
+1
-1
MainWindow.java
jadx-gui/src/main/java/jadx/gui/ui/MainWindow.java
+12
-0
Utils.java
jadx-gui/src/main/java/jadx/gui/utils/Utils.java
+8
-0
jadx-logo-16px.png
jadx-gui/src/main/resources/logos/jadx-logo-16px.png
+0
-0
jadx-logo-32px.png
jadx-gui/src/main/resources/logos/jadx-logo-32px.png
+0
-0
jadx-logo-48px.png
jadx-gui/src/main/resources/logos/jadx-logo-48px.png
+0
-0
jadx-logo.ico
jadx-gui/src/main/resources/logos/jadx-logo.ico
+0
-0
jadx-logo.png
jadx-gui/src/main/resources/logos/jadx-logo.png
+0
-0
No files found.
jadx-gui/build.gradle
View file @
f8c0449d
...
...
@@ -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'
...
...
jadx-gui/src/main/java/jadx/gui/ui/MainWindow.java
View file @
f8c0449d
...
...
@@ -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
();
}
...
...
jadx-gui/src/main/java/jadx/gui/utils/Utils.java
View file @
f8c0449d
...
...
@@ -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"
;
...
...
jadx-gui/src/main/resources/logos/jadx-logo-16px.png
0 → 100644
View file @
f8c0449d
814 Bytes
jadx-gui/src/main/resources/logos/jadx-logo-32px.png
0 → 100644
View file @
f8c0449d
4.47 KB
jadx-gui/src/main/resources/logos/jadx-logo-48px.png
0 → 100644
View file @
f8c0449d
6.81 KB
jadx-gui/src/main/resources/logos/jadx-logo.ico
0 → 100644
View file @
f8c0449d
9.44 KB
jadx-gui/src/main/resources/logos/jadx-logo.png
0 → 100644
View file @
f8c0449d
15.2 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment