mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 02:09:44 +02:00
GP-9181 - Theming - Base Module
This commit is contained in:
parent
2dade60b3e
commit
4eb3d8fd86
113 changed files with 1092 additions and 1099 deletions
|
@ -17,7 +17,6 @@
|
|||
//NOTE: I do not de-duplicate, since the address of the instruction may affect the output.
|
||||
//@category Assembly
|
||||
|
||||
import java.awt.Color;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.PrintStream;
|
||||
import java.util.HashSet;
|
||||
|
@ -27,6 +26,7 @@ import javax.swing.ImageIcon;
|
|||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import generic.theme.GThemeDefaults.Colors.Palette;
|
||||
import ghidra.app.plugin.assembler.*;
|
||||
import ghidra.app.plugin.assembler.sleigh.sem.*;
|
||||
import ghidra.app.plugin.processors.sleigh.SleighDebugLogger;
|
||||
|
@ -105,7 +105,7 @@ public class AssemblyThrasherDevScript extends GhidraScript {
|
|||
|
||||
BookmarkManager bm = currentProgram.getBookmarkManager();
|
||||
ImageIcon myIcon = ResourceManager.loadImage("images/warning.png");
|
||||
bm.defineType(BOOKMARK_FAIL, myIcon, new Color(255, 255, 0), 0);
|
||||
bm.defineType(BOOKMARK_FAIL, myIcon, Palette.YELLOW, 0);
|
||||
bm.removeBookmarks(BOOKMARK_FAIL);
|
||||
|
||||
monitor.setMessage("Constructing Assembler");
|
||||
|
@ -157,7 +157,7 @@ public class AssemblyThrasherDevScript extends GhidraScript {
|
|||
}
|
||||
|
||||
println("Unique instructions by constructor: " + done.size());
|
||||
setBackgroundColor(uniques, new Color(255, 128, 128));
|
||||
setBackgroundColor(uniques, Palette.getColor("lightcoral"));
|
||||
}
|
||||
|
||||
protected PseudoInstruction disassemble(Instruction orig, byte[] ins) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue