mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
GP-1981 Theme help and module conversions
This commit is contained in:
parent
4eb3d8fd86
commit
9a0d7892da
120 changed files with 1540 additions and 2846 deletions
|
@ -25,6 +25,8 @@ import docking.*;
|
|||
import docking.action.DockingAction;
|
||||
import docking.action.MenuData;
|
||||
import docking.widgets.table.GFilterTable;
|
||||
import generic.theme.GColor;
|
||||
import generic.theme.GThemeDefaults.Colors;
|
||||
import ghidra.bitpatterns.info.*;
|
||||
import ghidra.util.HelpLocation;
|
||||
import ghidra.util.bytesearch.DittedBitSequence;
|
||||
|
@ -35,6 +37,8 @@ import resources.ResourceManager;
|
|||
*/
|
||||
public abstract class ByteSequenceAnalyzerProvider extends DialogComponentProvider {
|
||||
|
||||
private static final Color BG_DISABLED = new GColor("color.bg.uneditable");
|
||||
|
||||
protected ByteSequenceTableModel byteSequenceTable;
|
||||
protected FunctionBitPatternsExplorerPlugin plugin;
|
||||
protected JPanel mainPanel;
|
||||
|
@ -175,9 +179,9 @@ public abstract class ByteSequenceAnalyzerProvider extends DialogComponentProvid
|
|||
}
|
||||
mergedSeqTextField.setText(merged.getHexString());
|
||||
bitsOfCheckField.setText(Integer.toString(merged.getNumFixedBits()));
|
||||
mergedSeqTextField.setBackground(Color.WHITE);
|
||||
bitsOfCheckField.setBackground(Color.WHITE);
|
||||
noteField.setBackground(Color.WHITE);
|
||||
mergedSeqTextField.setBackground(Colors.BACKGROUND);
|
||||
bitsOfCheckField.setBackground(Colors.BACKGROUND);
|
||||
noteField.setBackground(Colors.BACKGROUND);
|
||||
mergedToSend = true;
|
||||
}
|
||||
|
||||
|
@ -211,9 +215,9 @@ public abstract class ByteSequenceAnalyzerProvider extends DialogComponentProvid
|
|||
mergedInfo.setNote(note);
|
||||
plugin.addPattern(mergedInfo);
|
||||
plugin.updateClipboard();
|
||||
mergedSeqTextField.setBackground(Color.lightGray);
|
||||
bitsOfCheckField.setBackground(Color.LIGHT_GRAY);
|
||||
noteField.setBackground(Color.LIGHT_GRAY);
|
||||
mergedSeqTextField.setBackground(BG_DISABLED);
|
||||
bitsOfCheckField.setBackground(BG_DISABLED);
|
||||
noteField.setBackground(BG_DISABLED);
|
||||
mergedToSend = false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue