mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 02:09:44 +02:00
GP-3768 - Function Call Graph - fixed exception when using 'Start Fully
Zoomed In'; fixed button painting in Dark Theme
This commit is contained in:
parent
f0973adeac
commit
73b491bb63
2 changed files with 12 additions and 0 deletions
|
@ -319,6 +319,12 @@ public class FcgVertex extends AbstractVisualVertex implements VertexShapeProvid
|
|||
toggleInsButton.setBackground(Palette.NO_COLOR);
|
||||
toggleOutsButton.setBackground(Palette.NO_COLOR);
|
||||
|
||||
// This is needed for Flat Dark theme to work correctly, due to the fact that it wants to
|
||||
// paint its parent background when the button is opaque. The parent background will get
|
||||
// painted over any items that lie between the button and the parent.
|
||||
toggleInsButton.setOpaque(false);
|
||||
toggleOutsButton.setOpaque(false);
|
||||
|
||||
Rectangle parentBounds = vertexImageLabel.getBounds();
|
||||
Dimension size = toggleInsButton.getPreferredSize();
|
||||
|
||||
|
|
|
@ -53,6 +53,12 @@ public class FcgComponent extends GraphComponent<FcgVertex, FcgEdge, FunctionCal
|
|||
build();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setGraph(FunctionCallGraph g) {
|
||||
this.fcGraph = g;
|
||||
super.setGraph(g);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected FcgVertex getInitialVertex() {
|
||||
return fcGraph.getSource();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue