mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-25 21:51:47 +00:00
GP-3397 - minor theme fixes
This commit is contained in:
parent
b3616a6831
commit
b953998f7d
@ -35,10 +35,8 @@ color.fg.interpreterconsole.error = color.fg.error
|
||||
color.bg.markerservice = color.bg
|
||||
|
||||
color.bg.search.highlight = color.bg.highlight
|
||||
color.bg.search.current.line.highlight = color.palette.yellow
|
||||
color.bg.search.highlight.current.line = color.palette.yellow
|
||||
|
||||
color.bg.analysis.options.not.default.enablement = color.palette.lightgray
|
||||
color.bg.analysis.options.not.default.enablement.selected = color.palette.gray
|
||||
color.fg.analysis.options.prototype = color.palette.crimson
|
||||
color.fg.analysis.options.prototype.selected = color.palette.lightcoral
|
||||
|
||||
|
@ -19,8 +19,7 @@ import java.awt.Color;
|
||||
import java.awt.Component;
|
||||
import java.util.List;
|
||||
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.JTable;
|
||||
import javax.swing.*;
|
||||
|
||||
import docking.widgets.table.*;
|
||||
import generic.theme.GColor;
|
||||
@ -40,9 +39,6 @@ public class AnalysisEnablementTableModel
|
||||
//@formatter:off
|
||||
private static Color FG_COLOR_PROTOTYPE = new GColor("color.fg.analysis.options.prototype");
|
||||
private static Color FG_COLOR_PROTOTYPE_SELECTED = new GColor("color.fg.analysis.options.prototype.selected");
|
||||
|
||||
private static Color BG_COLOR_NOT_DEFAULT_ENABLEMENT = new GColor("color.bg.analysis.options.not.default.enablement");
|
||||
private static Color BG_COLOR_NOT_DEFAULT_ENABLEMENT_SELECTED = new GColor("color.bg.analysis.options.not.default.enablement.selected");
|
||||
//@formatter:on
|
||||
|
||||
private List<AnalyzerEnablementState> analyzerStates;
|
||||
@ -115,7 +111,7 @@ public class AnalysisEnablementTableModel
|
||||
|
||||
//==================================================================================================
|
||||
// Inner Classes
|
||||
//==================================================================================================
|
||||
//==================================================================================================
|
||||
|
||||
private class AnalyzerEnabledColumn
|
||||
extends AbstractDynamicTableColumn<AnalyzerEnablementState, Boolean, Object> {
|
||||
@ -179,15 +175,9 @@ public class AnalysisEnablementTableModel
|
||||
}
|
||||
|
||||
// not the default enablement
|
||||
if (isSelected) {
|
||||
component.setBackground(BG_COLOR_NOT_DEFAULT_ENABLEMENT_SELECTED);
|
||||
}
|
||||
else {
|
||||
component.setBackground(BG_COLOR_NOT_DEFAULT_ENABLEMENT);
|
||||
}
|
||||
|
||||
JLabel label = (JLabel) component;
|
||||
label.setText("*");
|
||||
setToolTip(component, "This option differs from the default");
|
||||
|
||||
return component;
|
||||
}
|
||||
|
||||
@ -222,13 +212,6 @@ public class AnalysisEnablementTableModel
|
||||
|
||||
// not the default enablement
|
||||
component.setForeground(Palette.BLACK);
|
||||
if (data.isSelected()) {
|
||||
component.setBackground(BG_COLOR_NOT_DEFAULT_ENABLEMENT_SELECTED);
|
||||
}
|
||||
else {
|
||||
component.setBackground(BG_COLOR_NOT_DEFAULT_ENABLEMENT);
|
||||
}
|
||||
|
||||
setToolTip(component, "This option differs from the default");
|
||||
return component;
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ color.bg.decompiler.current.variable = color.palette.highlight.transparent.yello
|
||||
|
||||
color.bg.decompiler.highlights.default = color.palette.highlight.transparent.yellow
|
||||
color.bg.decompiler.highlights.special = color.palette.crimson
|
||||
color.bg.decompiler.highlights.search = color.palette.slateblue
|
||||
color.bg.decompiler.highlights.find = color.palette.slateblue
|
||||
|
||||
color.bg.decompiler.pcode.dfg.vertex.default = color.palette.red
|
||||
color.bg.decompiler.pcode.dfg.vertex.selected = color.palette.lightcoral
|
||||
|
@ -366,9 +366,7 @@ public class DecompileOptions {
|
||||
private final static GColor HIGHLIGHT_DEFAULT_COLOR = new GColor("color.fg.decompiler");
|
||||
|
||||
private static final String SEARCH_HIGHLIGHT_MSG = "Display.Color for Highlighting Find Matches";
|
||||
private static final GColor SEARCH_HIGHLIGHT_COLOR = new GColor("color.bg.decompiler.highlights.search");
|
||||
|
||||
|
||||
private static final GColor SEARCH_HIGHLIGHT_COLOR = new GColor("color.bg.decompiler.highlights.find");
|
||||
//@formatter:on
|
||||
|
||||
private static final String BACKGROUND_COLOR_MSG = "Display.Background Color";
|
||||
@ -906,7 +904,7 @@ public class DecompileOptions {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return color used on tokens that need to warn of an error or other unusual conditions
|
||||
* @return color used on tokens that need to warn of an error or other unusual conditions
|
||||
*/
|
||||
public Color getErrorColor() {
|
||||
return ERROR_COLOR;
|
||||
|
Loading…
Reference in New Issue
Block a user