Ghidra is a software reverse engineering (SRE) framework
GP-2910 - Fixed missing theme definitions; removed unused theme definitions; fixed module theme dependencies
dragonmacher63d6063fa096
diff --git a/Ghidra/Debug/Debugger/data/debugger.theme.properties b/Ghidra/Debug/Debugger/data/debugger.theme.propertiesindex 80bc515fce..6cde8822ee 100644--- a/Ghidra/Debug/Debugger/data/debugger.theme.properties+++ b/Ghidra/Debug/Debugger/data/debugger.theme.properties@@ -1,6 +1,6 @@[Defaults]-color.bg.debugger.diff.marker = color.bg.programdiff.highlight+color.bg.debugger.diff.marker = color.bg.plugin.programdiff.highlightcolor.debugger.plugin.plugin.memview.arrow = redcolor.debugger.plugin.memview.box = blue@@ -68,7 +68,6 @@ icon.debugger.object.unpopulated = object-unpopulated.pngfont.debugger.object.tree.renderer = Tahoma-plain-11icon.debugger.display.graph = breakpoint-enable.png // TODO this icon was missing 'breakpoints.png'-icon.debugger.display.graph.filtered = icon.debugger.display.graphicon.debugger.display.xml = text-xml.pngicon.debugger.display.xml.filtered = icon.debugger.display.xmlicon.debugger.display.export.facts = closedFolder.png@@ -195,7 +194,6 @@ icon.debugger.disassemble = editbytes.gif // TODO this icon was missing 'disasse[Dark Defaults]-color.bg.debugger.diff.marker = color.bg.programdiff.highlightcolor.debugger.plugin.plugin.memview.arrow = redcolor.debugger.plugin.memview.box = bluediff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/memview/MemoryBox.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/memview/MemoryBox.javaindex bc247d669e..b6f74b2327 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/memview/MemoryBox.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/memview/MemoryBox.java@@ -36,7 +36,7 @@ public class MemoryBox {protected long stopAddr = -1;protected long startTime;protected long stopTime = -1;- protected Color color = new GColor("color.bg.debugger.memview.box");+ protected Color color = new GColor("color.debugger.plugin.memview.box");protected int pixAstart;protected int pixAend;diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/pcode/DebuggerPcodeStepperProvider.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/pcode/DebuggerPcodeStepperProvider.javaindex 5be19add6d..28cec023c9 100644--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/pcode/DebuggerPcodeStepperProvider.java+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/pcode/DebuggerPcodeStepperProvider.java@@ -544,7 +544,7 @@ public class DebuggerPcodeStepperProvider extends ComponentProviderAdapter {private Color unimplColor = new GColor("color.fg.listing.mnemonic.unimplemented");private Color separatorColor = new GColor("color.fg.listing.separator");private Color lineLabelColor = new GColor("color.fg.listing.pcode.label");- private Color spaceColor = new GColor("color.fg.listing.pcode.space");+ private Color spaceColor = new GColor("color.fg.listing.pcode.address.space");private Color rawColor = new GColor("color.fg.listing.pcode.varnode");private Color useropColor = new GColor("color.fg.listing.pcode.userop");diff --git a/Ghidra/Extensions/SampleTablePlugin/src/main/java/ghidra/examples/SampleTableProvider.java b/Ghidra/Extensions/SampleTablePlugin/src/main/java/ghidra/examples/SampleTableProvider.javaindex 530d0f762b..6aaa3c25f6 100644--- a/Ghidra/Extensions/SampleTablePlugin/src/main/java/ghidra/examples/SampleTableProvider.java+++ b/Ghidra/Extensions/SampleTablePlugin/src/main/java/ghidra/examples/SampleTableProvider.java@@ -189,7 +189,7 @@ public class SampleTableProvider extends ComponentProviderAdapter implements Optreturn SwingUtilities.isDescendingFrom((Component) sourceObject, filterTable);}};- icon = new GIcon("icons.sample.plugin.action.save");+ icon = new GIcon("icon.sample.plugin.action.save");saveTableDataAction.setToolBarData(new ToolBarData(icon));saveTableDataAction.setPopupMenuData(new MenuData(new String[] { "Save Data" }));diff --git a/Ghidra/Extensions/sample/data/sample.theme.properties b/Ghidra/Extensions/sample/data/sample.theme.propertiesindex 02d966ddc8..b4c73883db 100644--- a/Ghidra/Extensions/sample/data/sample.theme.properties+++ b/Ghidra/Extensions/sample/data/sample.theme.properties@@ -4,8 +4,8 @@ icon.sample.provider.graph = color_swatch.pngicon.sample.provider.hello.world = information.pngicon.sample.action.hello.world = information.png-icon.sample.kitchen.sink.action.hellow.world = left.png-icon.sample.kitchen.sink.action.hellow.program = right.png+icon.sample.kitchen.sink.action.hello.world = left.png+icon.sample.kitchen.sink.action.hello.program = right.pngicon.sample.action.show.graph = applications-development.pngdiff --git a/Ghidra/Extensions/sample/src/main/java/ghidra/examples/KitchenSinkPlugin.java b/Ghidra/Extensions/sample/src/main/java/ghidra/examples/KitchenSinkPlugin.javaindex 36ab7f00e7..e645b6cbb1 100644--- a/Ghidra/Extensions/sample/src/main/java/ghidra/examples/KitchenSinkPlugin.java+++ b/Ghidra/Extensions/sample/src/main/java/ghidra/examples/KitchenSinkPlugin.java@@ -15,12 +15,12 @@*/package ghidra.examples;-import java.awt.Event;import java.awt.event.KeyEvent;import javax.swing.*;import docking.ActionContext;+import docking.DockingUtils;import docking.action.*;import generic.theme.GIcon;import ghidra.app.ExamplesPluginPackage;@@ -73,11 +73,7 @@ public class KitchenSinkPlugin extends ProgramPlugin {private void setupServices() {registerServiceProvided(HelloWorldService.class,- new HelloWorldService() {- public void sayHello() {- announce("Hello");- }- });+ (HelloWorldService) () -> announce("Hello"));}private void setupActions() {@@ -95,7 +91,8 @@ public class KitchenSinkPlugin extends ProgramPlugin {new MenuData(new String[] { "Misc", "Hello World" }, prevImage, helloGroup));action.setPopupMenuData(new MenuData(new String[] { "Hello World" }, prevImage, helloGroup));- action.setKeyBindingData(new KeyBindingData(KeyStroke.getKeyStroke('H', Event.CTRL_MASK)));+ action.setKeyBindingData(new KeyBindingData(+ KeyStroke.getKeyStroke('H', DockingUtils.CONTROL_KEY_MODIFIER_MASK)));action.setToolBarData(new ToolBarData(prevImage, helloGroup));action.setDescription("Hello World");action.setHelpLocation(new HelpLocation("SampleHelpTopic", "KS_Hello_World"));@@ -114,7 +111,8 @@ public class KitchenSinkPlugin extends ProgramPlugin {action.setMenuBarData(new MenuData(new String[] { "Misc", "Hello Program" }, nextImage, helloGroup));action.setKeyBindingData(- new KeyBindingData(KeyStroke.getKeyStroke(KeyEvent.VK_P, Event.CTRL_MASK)));+ new KeyBindingData(+ KeyStroke.getKeyStroke(KeyEvent.VK_P, DockingUtils.CONTROL_KEY_MODIFIER_MASK)));action.setToolBarData(new ToolBarData(nextImage, helloGroup));action.setDescription("Hello Program");action.setHelpLocation(new HelpLocation("SampleHelpTopic", "KS_Hello_Program"));diff --git a/Ghidra/Features/Base/data/base.icons.theme.properties b/Ghidra/Features/Base/data/base.icons.theme.propertiesindex 9eac0906ca..3792d7c068 100644--- a/Ghidra/Features/Base/data/base.icons.theme.properties+++ b/Ghidra/Features/Base/data/base.icons.theme.properties@@ -23,8 +23,6 @@ icon.base.application.64 = GhidraIcon64.pngicon.base.application.128 = GhidraIcon128.pngicon.base.application.256 = GhidraIcon256.png-icon.help.home = GHIDRA_1.png-icon.provider.clone = camera-photo.pngicon.plugin.datatypes.built.in = package_development.pngdiff --git a/Ghidra/Features/Base/data/base.theme.properties b/Ghidra/Features/Base/data/base.theme.propertiesindex 5f2b9a4f55..4e2fcbd03f 100644--- a/Ghidra/Features/Base/data/base.theme.properties+++ b/Ghidra/Features/Base/data/base.theme.properties@@ -64,8 +64,6 @@ color.fg.plugin.comments.history.text = bluecolor.fg.plugin.comments.history.user = color.fgcolor.fg.plugin.comments.history.date = rgb(124, 37, 18)-color.bg.plugin.programtree = color.bg-color.bg.plugin.datamgr.edge.default = bluecolor.bg.plugin.datamgr.edge.composite = magentacolor.bg.plugin.datamgr.edge.reference = blue@@ -138,13 +136,13 @@ color.bg.plugin.overview.entropy.knot.5 = bluecolor.bg.plugin.overview.entropy.uninitialized = bluecolor.bg.plugin.overview.entropy.palette.base.low = blackcolor.bg.plugin.overview.entropy.palette.base.high = white-color.bg.plugin.overview.entropy.palette.text = color.fg++color.bg.plugin.programdiff.highlight = moccasincolor.bg.plugin.programdiff.details.address = #009999color.bg.plugin.programdiff.details.comment = #009900color.bg.plugin.programdiff.details.danger = #FF0000color.bg.plugin.programdiff.details.emphasize = #009900-color.bg.plugin.programdiff.details.program = #990099color.bg.plugin.references.table.active.operand = rgb(205, 205, 205)@@ -205,3 +203,5 @@ color.fg.analysis.options.prototype = lightcoralcolor.bg.plugin.datamgr.edge.default = deepskybluecolor.bg.plugin.datamgr.edge.composite = plumcolor.bg.plugin.datamgr.edge.reference = deepskyblue++color.bg.plugin.programdiff.highlight = darkReddiff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/merge/listing/ExternalAddConflictPanel.java b/Ghidra/Features/Base/src/main/java/ghidra/app/merge/listing/ExternalAddConflictPanel.javaindex 0a22b15bcc..a838636a51 100644--- a/Ghidra/Features/Base/src/main/java/ghidra/app/merge/listing/ExternalAddConflictPanel.java+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/merge/listing/ExternalAddConflictPanel.java@@ -60,8 +60,8 @@ class ExternalAddConflictPanel extends JPanel implements CodeFormatService {public static final String MERGE_BOTH_BUTTON_NAME =ExternalFunctionMerger.MERGE_BOTH_BUTTON_NAME;- private static final Icon HIDE_ICON = new GIcon("icons.base.listing.conflict.collapse");- private static final Icon SHOW_ICON = new GIcon("icons.base.listing.conflict.expand");+ private static final Icon HIDE_ICON = new GIcon("icon.plugin.merge.conflict.collapse");+ private static final Icon SHOW_ICON = new GIcon("icon.plugin.merge.conflict.expand");private DomainObjectMergeManager mergeManager;private int totalConflicts;diff --git a/Ghidra/Features/Base/src/main/java/help/screenshot/GhidraScreenShotGenerator.java b/Ghidra/Features/Base/src/main/java/help/screenshot/GhidraScreenShotGenerator.javaindex 8a298ec967..fdbdfad5c0 100644--- a/Ghidra/Features/Base/src/main/java/help/screenshot/GhidraScreenShotGenerator.java+++ b/Ghidra/Features/Base/src/main/java/help/screenshot/GhidraScreenShotGenerator.java@@ -41,14 +41,14 @@ import ghidra.util.exception.AssertException;/*** Extend this class to create screen shot images for help. The name of the class determines the* topic directory where the captured image will be stored. So if the class name is- * XyzShreenShots, the resulting captured image will appear in help topic directy "Xyz", regardless+ * XyzShreenShots, the resulting captured image will appear in help topic directly "Xyz", regardless* of which module has that topic. The test name will determine the name of the image file* that is generated. So if the test name is testHappyBirthday, the filename will be* HappyBirthday.png.*/public abstract class GhidraScreenShotGenerator extends AbstractScreenShotGenerator {- private static final Color FG_COLOR_TEXT = Palette.getColor("color.palate.cornflowerblue");+ private static final Color FG_COLOR_TEXT = Palette.getColor("color.palette.cornflowerblue");private static final String CAPTURE = "Capture";protected GhidraScreenShotGenerator() {diff --git a/Ghidra/Features/BytePatterns/data/bytepatterns.theme.properties b/Ghidra/Features/BytePatterns/data/bytepatterns.theme.propertiesindex 650b2fc49e..51df7ea736 100644--- a/Ghidra/Features/BytePatterns/data/bytepatterns.theme.properties+++ b/Ghidra/Features/BytePatterns/data/bytepatterns.theme.properties@@ -6,8 +6,6 @@ icon.bytepatterns.send.to.clipboard = 2rightarrow.pngicon.bytepatterns.byte.sequence.analyzer.clipboard.merged = smallRightArrow.pngicon.bytepatterns.byte.sequence.analyzer.merge = xor.png-icon.bytepatterns.closed.pattern = 2rightarrow.png-icon.bytepatterns.pattern.mining.analyzer = magnifier.pngicon.bytepatterns.function.bit.patterns.disabled = ledred.pngdiff --git a/Ghidra/Features/Decompiler/certification.manifest b/Ghidra/Features/Decompiler/certification.manifestindex 9547fd487f..da903893ec 100644--- a/Ghidra/Features/Decompiler/certification.manifest+++ b/Ghidra/Features/Decompiler/certification.manifest@@ -71,11 +71,6 @@ src/main/doc/sleigh_common.xsl||GHIDRA||||END|src/main/doc/sleigh_html.xsl||GHIDRA||||END|src/main/doc/sleigh_pdf.xsl||GHIDRA||||END|src/main/help/help/TOC_Source.xml||GHIDRA||||END|-src/main/help/help/shared/arrow.gif||GHIDRA||reviewed||END|-src/main/help/help/shared/close16.gif||GHIDRA||||END|-src/main/help/help/shared/note.png||Oxygen Icons - LGPL 3.0||||END|-src/main/help/help/shared/note.yellow.png||Oxygen Icons - LGPL 3.0||||END|-src/main/help/help/shared/tip.png||Oxygen Icons - LGPL 3.0||||END|src/main/help/help/topics/DecompilePlugin/DecompilerAnnotations.html||GHIDRA||||END|src/main/help/help/topics/DecompilePlugin/DecompilerConcepts.html||GHIDRA||||END|src/main/help/help/topics/DecompilePlugin/DecompilerIntro.html||GHIDRA||||END|diff --git a/Ghidra/Features/Decompiler/data/decompiler.theme.properties b/Ghidra/Features/Decompiler/data/decompiler.theme.propertiesindex 685adabd1d..3f47858415 100644--- a/Ghidra/Features/Decompiler/data/decompiler.theme.properties+++ b/Ghidra/Features/Decompiler/data/decompiler.theme.properties@@ -15,7 +15,6 @@ color.fg.decompiler.global = darkCyancolor.fg.decompiler.special = #cc0033color.bg.decompiler.current.variable = rgba(255,255,0,0.5)-color.fg.line.numbers = graycolor.bg.decompiler.highlights.default = rgba(255, 255, 0, .5)color.bg.decompiler.highlights.special = sandybrowndiff --git a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/DecompileOptions.java b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/DecompileOptions.javaindex 1ec6590391..de840a6629 100644--- a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/DecompileOptions.java+++ b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/DecompileOptions.java@@ -350,7 +350,7 @@ public class DecompileOptions {private static final GColor BACKGROUND_COLOR = new GColor(BACKGROUND_COLOR_ID);// Color applied to a token to indicate warning/error- private final static Color ERROR_COLOR = new GColor("color.fg.decompiler.comment");+ private final static Color ERROR_COLOR = new GColor("color.fg.decompiler.error");final static String FONT_MSG = "Display.Font";public final static String DEFAULT_FONT_ID = "font.decompiler";diff --git a/Ghidra/Features/ProgramDiff/data/programdiff.theme.properties b/Ghidra/Features/ProgramDiff/data/programdiff.theme.propertiesindex 26beada9ae..9c4434e595 100644--- a/Ghidra/Features/ProgramDiff/data/programdiff.theme.properties+++ b/Ghidra/Features/ProgramDiff/data/programdiff.theme.properties@@ -1,6 +1,5 @@[Defaults]-color.bg.programdiff.highlight = moccasinicon.plugin.programdiff.apply = pencil16.pngicon.plugin.programdiff.apply.next = pencil_arrow16.png@@ -13,4 +12,3 @@ icon.plugin.programdiff.cursor.location = cursor_arrow.gif[Dark Defaults]-color.bg.programdiff.highlight = darkReddiff --git a/Ghidra/Features/ProgramDiff/src/main/java/ghidra/app/plugin/core/diff/ProgramDiffPlugin.java b/Ghidra/Features/ProgramDiff/src/main/java/ghidra/app/plugin/core/diff/ProgramDiffPlugin.javaindex 3d26cbb5c1..85c46325f0 100644--- a/Ghidra/Features/ProgramDiff/src/main/java/ghidra/app/plugin/core/diff/ProgramDiffPlugin.java+++ b/Ghidra/Features/ProgramDiff/src/main/java/ghidra/app/plugin/core/diff/ProgramDiffPlugin.java@@ -98,7 +98,7 @@ public class ProgramDiffPlugin extends ProgramPluginprivate static final String SELECTION_GROUP = "Selection Colors";private static final String DIFF_HIGHLIGHT_COLOR_NAME =SELECTION_GROUP + Options.DELIMITER + "Difference Color";- private GColor diffHighlightColor = new GColor("color.bg.programdiff.highlight");+ private GColor diffHighlightColor = new GColor("color.bg.plugin.programdiff.highlight");private Color cursorHighlightColor = GhidraOptions.DEFAULT_CURSOR_LINE_COLOR;protected static final HelpService help = Help.getHelpService();diff --git a/Ghidra/Features/VersionTracking/data/version.tracking.theme.properties b/Ghidra/Features/VersionTracking/data/version.tracking.theme.propertiesindex 2583530b49..9cafb471f2 100644--- a/Ghidra/Features/VersionTracking/data/version.tracking.theme.properties+++ b/Ghidra/Features/VersionTracking/data/version.tracking.theme.properties@@ -47,7 +47,7 @@ icon.version.tracking.replaced = sync_enabled.pngicon.version.tracking.accept.match = flag.pngicon.version.tracking.add = Plus.png-icon.version.tracking.substract = list-remove.png+icon.version.tracking.subtract = list-remove.pngicon.version.tracking.replace = sync_enabled.pngicon.version.tracking.auto = wizard.pngdiff --git a/Ghidra/Framework/Docking/certification.manifest b/Ghidra/Framework/Docking/certification.manifestindex 80037480e3..f3904887ca 100644--- a/Ghidra/Framework/Docking/certification.manifest+++ b/Ghidra/Framework/Docking/certification.manifest@@ -9,7 +9,6 @@##MODULE IP: Tango Icons - Public DomainModule.manifest||GHIDRA||||END|data/ExtensionPoint.manifest||GHIDRA||||END|-data/docking.palette.theme.properties||GHIDRA||||END|data/docking.theme.properties||GHIDRA||||END|src/main/help/help/TOC_Source.xml||GHIDRA||||END|src/main/help/help/topics/Misc/Welcome_to_Help.htm||GHIDRA||||END|diff --git a/Ghidra/Framework/Docking/data/docking.theme.properties b/Ghidra/Framework/Docking/data/docking.theme.propertiesindex 6d53316e9a..5d20aa07ae 100644--- a/Ghidra/Framework/Docking/data/docking.theme.properties+++ b/Ghidra/Framework/Docking/data/docking.theme.properties@@ -1,30 +1,5 @@[Defaults]--color.bg = white // note: this is the text/widget bg color-color.fg = black-color.fg.error = red-color.bg.error = lightcoral-color.fg.disabled = lightGray-color.bg.uneditable = system.color.bg.application // TODO see if there exists an LaF setting for this-color.bg.filtered = yellow-color.fg.hint = gray--color.fg.messages.hint = color.fg.hint-color.fg.messages.alert = orange-color.fg.messages.error = color.fg.error-color.fg.messages.normal = blue-color.fg.messages.warning = orange---color.bg.help.hint = rgba(100, 100, 255, 100)-color.fg.help.selector.h1 = #000080-color.fg.help.selector.h2 = #984C4C-color.fg.help.selector.h3 = #0000FF-color.fg.help.selector.p.provided.by.plugin = #7F7F7F-color.fg.help.selector.p.related.topic = #800080-color.fg.help.selector.th = #EDF3FE-color.fg.help.selector.code = black-color.fg.help.selector.code.path = #4682B4+color.bg.splashscreen = black@@ -41,27 +16,8 @@ color.fg.dialog.status.warning = color.fg.messages.warningcolor.bg.selection = rgb(180, 255, 180) // pale greencolor.bg.highlight = rgb(255,255,150) // pale yellow-color.bg.tooltip = rgb(255, 255, 230)color.bg.currentline = rgb(232,242,254)-color.cursor.focused = red-color.cursor.unfocused = pink--color.bg.table.grid = gray-color.bg.table.row.drag = color.palette.lavender-color.bg.table.row = color.bg-color.bg.table.row.alt = rgb(237,243,254)-color.fg.table.uneditable.selected = yellow-color.fg.table.uneditable.unselected = lightgray-color.fg.table = color.fg-color.fg.table.unselected = white-color.fg.error.table.unselected = color.fg.error-color.fg.error.table.selected = lightpink--color.bg.tableheader.gradient.start = color.bg-color.bg.tableheader.gradient.end = lightGray-color.bg.tableheader.gradient.start.primary = rgb(205, 227, 244)-color.bg.tableheader.gradient.end.primary = rgb(126, 186, 233)color.bg.textfield.hint.valid = color.bgcolor.bg.textfield.hint.invalid = rgb(255,225,225)@@ -73,8 +29,6 @@ color.bg.tree.drag.no.selection = rgb(204, 204, 255)color.bg.filterfield = color.bg.filteredcolor.fg.filterfield = black-color.bg.selection.help = lightsteelblue-// generic component itemscolor.border.bevel.highlight = lightGraycolor.border.bevel.shadow = gray@@ -90,13 +44,10 @@ color.bg.fieldpanel.selection = color.bg.selectioncolor.bg.fieldpanel.highlight = color.bg.highlightcolor.bg.fieldpanel.selection.and.highlight = green-color.bg.tree = [color]Tree.textBackground-color.bg.tree.selected = [color]Tree.selectionBackground// docking buttonscolor.fg.button = blackicon.folder.new = folder_add.png-icon.subtract = list-remove.pngicon.toggle.expand = expand.gificon.toggle.collapse = collapse.gif@@ -120,9 +71,6 @@ icon.window = application_xp.pngicon.zoom.in = zoom_in.pngicon.zoom.out = zoom_out.png-icon.theme.import = mail-receive.png-icon.theme.export = mail-folder-outbox.png-icon.docking.application.home = www_16.pngicon.docking.application.16 = www_16.pngicon.docking.application.128 = www_128.png@@ -146,7 +94,6 @@ icon.filter.options.not = bullet_delete.pngicon.widget.imagepanel.reset = tag.pngicon.widget.imagepanel.zoom.in = icon.zoom.inicon.widget.imagepanel.zoom.out = icon.zoom.out-icon.widget.imagepanel.zoom.reset = zoom.pngicon.widget.filterpanel.filter.off = filter_off.pngicon.widget.filterpanel.filter.on = filter_on.png@@ -190,23 +137,15 @@ font.splash.status = Serif-BOLD-12font.table.header.number = arial-BOLD-12font.input.hint = monospaced-PLAIN-10+++++++[Dark Defaults]-color.bg = #1c1d1e-color.fg = lightgray-color.fg.error = indianRed-color.fg.disabled = gray-color.bg.filtered = beige-color.fg.hint = darkgray--color.fg.help.selector.h1 = #66AAF4-color.fg.help.selector.h2 = #9999F9-color.fg.help.selector.h3 = #FF99CC-color.fg.help.selector.p.provided.by.plugin = #CCCCCC-color.fg.help.selector.p.related.topic = #800080-color.fg.help.selector.th = #EDF3FE-color.fg.help.selector.code = gray-color.fg.help.selector.code.path = #5BA5E3color.bg.splashscreen = black@@ -223,9 +162,6 @@ color.fg.dialog.status.normal = lightBluecolor.bg.currentline = rgb(40,40,56) // dark bluish gray-color.cursor.focused = indianRed-color.cursor.unfocused = darkGray-color.bg.textfield.hint.invalid = marooncolor.bg.filterfield = color.bg.filtered@@ -236,20 +172,10 @@ color.bg.highlight = #404028 // yellowishcolor.bg.fieldpanel.selection.and.highlight = #344028 // yellow greenish-color.bg.table.row.alt = rgb(45,47,65)-color.fg.table.uneditable.selected = lemonchiffon-color.fg.table.uneditable.unselected = lightgray--color.bg.tableheader.gradient.start = color.bg-color.bg.tableheader.gradient.end = darkGray-color.bg.tableheader.gradient.start.primary = color.bg-color.bg.tableheader.gradient.end.primary = darkBlue// docking buttonscolor.fg.button = darkGraycolor.bg.filechooser.shortcut = system.color.bg.widget-color.bg.tree = color.bg-color.bg.tree.selected = [color]Tree.selectionBackgrounddiff --git a/Ghidra/Framework/Docking/src/main/java/docking/widgets/table/constrainteditor/AbstractColumnConstraintEditor.java b/Ghidra/Framework/Docking/src/main/java/docking/widgets/table/constrainteditor/AbstractColumnConstraintEditor.javaindex 3edcdd670c..ab7150be5a 100644--- a/Ghidra/Framework/Docking/src/main/java/docking/widgets/table/constrainteditor/AbstractColumnConstraintEditor.java+++ b/Ghidra/Framework/Docking/src/main/java/docking/widgets/table/constrainteditor/AbstractColumnConstraintEditor.java@@ -46,7 +46,7 @@ public abstract class AbstractColumnConstraintEditor<T> implements ColumnConstra/** Color indicating a valid value is defined by the editor widget(s) */protected static final Color VALID_INPUT_COLOR = Colors.BACKGROUND;/** Color indicating a invalid value is defined by the editor widget(s) */- protected static final Color INVALID_INPUT_COLOR = new GColor("docking.palette.mistyrose");+ protected static final Color INVALID_INPUT_COLOR = new GColor("color.palette.mistyrose");/*** Constructor.diff --git a/Ghidra/Framework/Generic/src/main/java/generic/json/Json.java b/Ghidra/Framework/Generic/src/main/java/generic/json/Json.javaindex 2da9ce109f..fd6c844e96 100644--- a/Ghidra/Framework/Generic/src/main/java/generic/json/Json.java+++ b/Ghidra/Framework/Generic/src/main/java/generic/json/Json.java@@ -46,7 +46,7 @@ public class Json extends ToStringStyle {this.setArrayEnd("]");this.setFieldSeparator(",\n\t");- this.setFieldNameValueSeparator(":");+ this.setFieldNameValueSeparator(": ");this.setNullText("null");diff --git a/Ghidra/Framework/Graph/data/graph.theme.properties b/Ghidra/Framework/Graph/data/graph.theme.propertiesindex cdfc248a80..012940aa5a 100644--- a/Ghidra/Framework/Graph/data/graph.theme.properties+++ b/Ghidra/Framework/Graph/data/graph.theme.properties@@ -2,7 +2,6 @@# visual graphcolor.bg.visualgraph = color.bg-color.bg.visualgraph.satellite = lightgraycolor.bg.highlight.visualgraph = rgba(255,255,0,155) // somewhat transparent yellowcolor.bg.visualgraph.message = rgb(138, 185, 241) // jordy blue@@ -10,7 +9,6 @@ color.bg.visualgraph.drop.shadow.dark = blackcolor.bg.visualgraph.drop.shadow.light = graycolor.bg.visualgraph.satellite.vertex = #018786-color.fg.visualgraph.message = color.palette.blackcolor.bg.visualgraph.dockingvertex = #03DAC6color.fg.visualgraph.dockingvertex = black@@ -52,7 +50,6 @@ font.graph.component.message = SansSerif-BOLDITALIC-18color.bg.highlight.visualgraph = rgba(120,120,120,155) // light gray with dark bg = dark graycolor.bg.visualgraph.message = rgb(65, 146, 242) // dark blue close to jordy blue-color.fg.visualgraph.message = color.palette.lightgraycolor.bg.visualgraph.drop.shadow.dark = blackcolor.bg.visualgraph.drop.shadow.light = graydiff --git a/Ghidra/Framework/Gui/certification.manifest b/Ghidra/Framework/Gui/certification.manifestindex 555f8f58b3..4f60bcb5df 100644--- a/Ghidra/Framework/Gui/certification.manifest+++ b/Ghidra/Framework/Gui/certification.manifest@@ -6,6 +6,7 @@##MODULE IP: Tango Icons - Public Domain.classpath||GHIDRA||||END|Module.manifest||GHIDRA||||END|+data/gui.palette.theme.properties||GHIDRA||||END|data/gui.theme.properties||GHIDRA||||END|src/main/java/ghidra/framework/options/package.html||GHIDRA||||END|src/main/java/ghidra/util/layout/package.html||GHIDRA||||END|diff --git a/Ghidra/Framework/Docking/data/docking.palette.theme.properties b/Ghidra/Framework/Gui/data/gui.palette.theme.propertiessimilarity index 100%rename from Ghidra/Framework/Docking/data/docking.palette.theme.propertiesrename to Ghidra/Framework/Gui/data/gui.palette.theme.propertiesdiff --git a/Ghidra/Framework/Gui/data/gui.theme.properties b/Ghidra/Framework/Gui/data/gui.theme.propertiesindex bf24e7d5be..29647c4ed3 100644--- a/Ghidra/Framework/Gui/data/gui.theme.properties+++ b/Ghidra/Framework/Gui/data/gui.theme.properties@@ -1,9 +1,44 @@[Defaults]+color.bg = white // note: this is the text/widget bg color+color.fg = black++color.cursor.focused = red+color.cursor.unfocused = pink++color.fg.error = red+color.bg.error = lightcoral+color.fg.disabled = lightGray+color.bg.uneditable = system.color.bg.application // TODO see if there exists an LaF setting for this+color.bg.filtered = yellow+color.fg.hint = gray++color.bg.tooltip = rgb(255, 255, 230)++color.fg.messages.hint = color.fg.hint+color.fg.messages.alert = orange+color.fg.messages.error = color.fg.error+color.fg.messages.normal = blue+color.fg.messages.warning = orange++color.bg.table.grid = gray+color.bg.table.row.drag = color.palette.lavender+color.bg.table.row = color.bg+color.bg.table.row.alt = rgb(237,243,254)+color.fg.table.uneditable.selected = yellow+color.fg.table.uneditable.unselected = lightgray+color.fg.table = color.fg+color.fg.table.unselected = white+color.fg.error.table.unselected = color.fg.error+color.fg.error.table.selected = lightpink++color.bg.tree = [color]Tree.textBackground+color.bg.tree.selected = [color]Tree.selectionBackground+// Fontsfont.standard = [font]Panel.fontfont.bold = font.standard[bold]-font.italics = font.standard[italic]+font.italic = font.standard[italic]font.bold.italic = font.standard[bold][italic]font.monospaced = monospaced-PLAIN-12@@ -19,6 +54,7 @@ icon.empty.20 = EmptyIcon.gificon.help = help-browser.pngicon.add = Plus2.png+icon.subtract = list-remove.pngicon.copy = page_white_copy.pngicon.cut = edit-cut.pngicon.paste = page_paste.png@@ -66,4 +102,24 @@ icon.arrow.up.left = viewmagfit.png[rotate(275)]-[Dark Defaults]\ No newline at end of file+++[Dark Defaults]++color.fg = lightgray+color.bg = #1c1d1e++color.fg.error = indianRed+color.fg.disabled = gray+color.bg.filtered = beige+color.fg.hint = darkgray++color.cursor.focused = indianRed+color.cursor.unfocused = darkGray++color.bg.table.row.alt = rgb(45,47,65)+color.fg.table.uneditable.selected = lemonchiffon+color.fg.table.uneditable.unselected = lightgray++color.bg.tree = color.bg+color.bg.tree.selected = [color]Tree.selectionBackgrounddiff --git a/Ghidra/Framework/Gui/src/main/java/generic/theme/AbstractThemeReader.java b/Ghidra/Framework/Gui/src/main/java/generic/theme/AbstractThemeReader.javaindex 763f606358..62f2eda453 100644--- a/Ghidra/Framework/Gui/src/main/java/generic/theme/AbstractThemeReader.java+++ b/Ghidra/Framework/Gui/src/main/java/generic/theme/AbstractThemeReader.java@@ -309,7 +309,7 @@ public abstract class AbstractThemeReader {return;}if (properties.containsKey(key)) {- error(lineNumber, "Duplicate key found in this file!: " + key + "\"");+ error(lineNumber, "Duplicate key found in this file!: \"" + key + "\"");return;}properties.put(key, value);diff --git a/Ghidra/Framework/Help/certification.manifest b/Ghidra/Framework/Help/certification.manifestindex aa0e9a25b3..caf9bb0393 100644--- a/Ghidra/Framework/Help/certification.manifest+++ b/Ghidra/Framework/Help/certification.manifest@@ -4,6 +4,7 @@##MODULE IP: Oxygen Icons - LGPL 3.0Module.manifest||GHIDRA||||END|build.files/buildLocalHelp.xml||GHIDRA||||END|+data/help.theme.properties||GHIDRA||||END|src/main/resources/help/shared/arrow.gif||GHIDRA||||END|src/main/resources/help/shared/close16.gif||GHIDRA||||END|src/main/resources/help/shared/note.png||Oxygen Icons - LGPL 3.0|||Oxygen icon theme (dual license; LGPL or CC-SA-3.0)|END|diff --git a/Ghidra/Framework/Help/data/help.theme.properties b/Ghidra/Framework/Help/data/help.theme.propertiesnew file mode 100644index 0000000000..c08c5946d8--- /dev/null+++ b/Ghidra/Framework/Help/data/help.theme.properties@@ -0,0 +1,27 @@+[Defaults]+++color.bg.help.hint = rgba(100, 100, 255, 100)+color.fg.help.selector.h1 = #000080+color.fg.help.selector.h2 = #984C4C+color.fg.help.selector.h3 = #0000FF+color.fg.help.selector.p.provided.by.plugin = #7F7F7F+color.fg.help.selector.p.related.topic = #800080+color.fg.help.selector.th = #EDF3FE+color.fg.help.selector.code = black+color.fg.help.selector.code.path = #4682B4+++++[Dark Defaults]+++color.fg.help.selector.h1 = #66AAF4+color.fg.help.selector.h2 = #9999F9+color.fg.help.selector.h3 = #FF99CC+color.fg.help.selector.p.provided.by.plugin = #CCCCCC+color.fg.help.selector.p.related.topic = #800080+color.fg.help.selector.th = #EDF3FE+color.fg.help.selector.code = gray+color.fg.help.selector.code.path = #5BA5E3\ No newline at end of filediff --git a/Ghidra/Framework/Help/src/main/java/help/GHelpHTMLEditorKit.java b/Ghidra/Framework/Help/src/main/java/help/GHelpHTMLEditorKit.javaindex 982b4543ac..dba8dcf869 100644--- a/Ghidra/Framework/Help/src/main/java/help/GHelpHTMLEditorKit.java+++ b/Ghidra/Framework/Help/src/main/java/help/GHelpHTMLEditorKit.java@@ -21,8 +21,8 @@ import java.beans.PropertyChangeEvent;import java.beans.PropertyChangeListener;import java.io.*;import java.net.*;-import java.util.Collection;-import java.util.List;+import java.util.*;+import java.util.Map;import java.util.regex.Matcher;import java.util.regex.Pattern;@@ -34,8 +34,7 @@ import javax.swing.text.html.*;import javax.swing.text.html.HTML.Tag;import generic.jar.ResourceFile;-import generic.theme.GIcon;-import generic.theme.Gui;+import generic.theme.*;import ghidra.framework.Application;import ghidra.framework.preferences.Preferences;import ghidra.util.Msg;@@ -63,6 +62,25 @@ public class GHelpHTMLEditorKit extends HTMLEditorKit {private static final String HELP_WINDOW_ZOOM_FACTOR = "HELP.WINDOW.FONT.SIZE.MODIFIER";private static int fontSizeModifier;+ /**+ * A mapping of known style sheet colors to convert from the values in the style sheet to colors+ * defined in the system theme.+ */+ private static final Map<String, GColor> colorsById = new HashMap<>();+ static {+ colorsById.put("h1", new GColor("color.fg.help.selector.h1"));+ colorsById.put("h2", new GColor("color.fg.help.selector.h2"));+ colorsById.put("h3", new GColor("color.fg.help.selector.h3"));+ colorsById.put("p.providedbyplugin",+ new GColor("color.fg.help.selector.p.provided.by.plugin"));+ colorsById.put("p.relatedtopic",+ new GColor("color.fg.help.selector.p.related.topic"));+ colorsById.put("th", new GColor("color.fg.help.selector.th"));+ colorsById.put("code", new GColor("color.fg.help.selector.code"));+ colorsById.put("code.path", new GColor("color.fg.help.selector.code.path"));+ }+ private static final Pattern COLOR_PATTERN = Pattern.compile("(color:\\s*#{0,1}\\w+;)");+private HyperlinkListener[] delegateListeners = null;private HyperlinkListener resolverHyperlinkListener;@@ -279,11 +297,19 @@ public class GHelpHTMLEditorKit extends HTMLEditorKit {return null;}- StringBuffer buffy = new StringBuffer();+ StringBuilder buffy = new StringBuilder();try {List<String> lines = FileUtilities.getLines(url);for (String line : lines) {- changePixels(line, fontSizeModifier, buffy);++ StringBuilder lineBuilder = new StringBuilder();+ changePixels(line, fontSizeModifier, lineBuilder);++ String updatedLine = lineBuilder.toString();+ lineBuilder.delete(0, lineBuilder.length());+ changeColor(updatedLine, lineBuilder);++ buffy.append(lineBuilder.toString());buffy.append('\n');}}@@ -296,7 +322,31 @@ public class GHelpHTMLEditorKit extends HTMLEditorKit {return reader;}- private void changePixels(String line, int amount, StringBuffer buffy) {+ private void changeColor(String line, StringBuilder buffy) {++ int blockStart = line.indexOf("{");+ if (blockStart == -1) {+ buffy.append(line);+ return;+ }++ String cssSelector = line.substring(0, blockStart).trim();+ cssSelector = cssSelector.toLowerCase(); // normalize+ GColor gColor = colorsById.get(cssSelector);+ if (gColor == null) {+ buffy.append(line);+ return;+ }++ Matcher matcher = COLOR_PATTERN.matcher(line);+ if (matcher.find()) {+ matcher.appendReplacement(buffy, "color: " + gColor.toHexString() + ";");+ }++ matcher.appendTail(buffy);+ }++ private void changePixels(String line, int amount, StringBuilder buffy) {Matcher matcher = FONT_SIZE_PATTERN.matcher(line);while (matcher.find()) {diff --git a/Ghidra/Framework/Project/data/project.theme.properties b/Ghidra/Framework/Project/data/project.theme.propertiesindex 319a1f5e79..ed7ab2209b 100644--- a/Ghidra/Framework/Project/data/project.theme.properties+++ b/Ghidra/Framework/Project/data/project.theme.properties@@ -23,8 +23,6 @@ color.fg.pluginpanel.details.developer =mediumVioletRedcolor.fg.pluginpanel.details.dependency = greencolor.fg.pluginpanel.details.novalue = lightGray-color.border.pluginpanel = darkGray-color.fg.plugin.installer.table.has.dependents = redcolor.fg.plugin.installer.table.has.dependents.selected = pinkdiff --git a/Ghidra/Framework/Project/src/main/java/ghidra/framework/main/logviewer/ui/FVToolBar.java b/Ghidra/Framework/Project/src/main/java/ghidra/framework/main/logviewer/ui/FVToolBar.javaindex 2730b6f429..3c4244988d 100644--- a/Ghidra/Framework/Project/src/main/java/ghidra/framework/main/logviewer/ui/FVToolBar.java+++ b/Ghidra/Framework/Project/src/main/java/ghidra/framework/main/logviewer/ui/FVToolBar.java@@ -78,7 +78,7 @@ public class FVToolBar extends JToolBar {private class ScrollLockAction extends AbstractAction {public ScrollLockAction() {- super("FVScrollLockAction", new GIcon("icon.version.control.dialog.add"));+ super("FVScrollLockAction", new GIcon("icon.logviewer.toolbar.scroll.lock"));putValue(SHORT_DESCRIPTION, "Scroll Lock");}