mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-24 03:09:36 +08: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:
@@ -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();
|
||||
|
||||
|
||||
+6
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user