Merge remote-tracking branch 'origin/patch'

This commit is contained in:
Ryan Kurtz
2023-08-23 08:20:10 -04:00
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();