GP-3768 - Function Call Graph - fixed exception when using 'Start Fully

Zoomed In'; fixed button painting in Dark Theme
This commit is contained in:
dragonmacher 2023-08-22 12:55:44 -04:00
parent f0973adeac
commit 73b491bb63
2 changed files with 12 additions and 0 deletions

View file

@ -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();

View file

@ -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();