diff --git a/Ghidra/Features/GraphServices/certification.manifest b/Ghidra/Features/GraphServices/certification.manifest index 72a20ab72f..37be0115f7 100644 --- a/Ghidra/Features/GraphServices/certification.manifest +++ b/Ghidra/Features/GraphServices/certification.manifest @@ -5,6 +5,7 @@ ##MODULE IP: LGPL 2.1 ##MODULE IP: MIT ##MODULE IP: Oxygen Icons - LGPL 3.0 +##MODULE IP: Tango Icons - Public Domain Module.manifest||GHIDRA||||END| build.gradle||GHIDRA||||END| src/main/help/help/TOC_Source.xml||GHIDRA||||END| @@ -21,4 +22,5 @@ src/main/resources/images/project-open.png||Oxygen Icons - LGPL 3.0|||Oxygen ico src/main/resources/images/redspheregraph.png||GHIDRA||||END| src/main/resources/images/sat2.png||GHIDRA||||END| src/main/resources/images/tree.png||GHIDRA||||END| +src/main/resources/images/view-fullscreen.png||Tango Icons - Public Domain|||tango icon set|END| src/main/resources/jungrapht.properties||GHIDRA||||END| diff --git a/Ghidra/Features/GraphServices/src/main/help/help/topics/GraphServices/images/DefaultGraphDisplay.png b/Ghidra/Features/GraphServices/src/main/help/help/topics/GraphServices/images/DefaultGraphDisplay.png index 9f7643a338..38e16becc3 100644 Binary files a/Ghidra/Features/GraphServices/src/main/help/help/topics/GraphServices/images/DefaultGraphDisplay.png and b/Ghidra/Features/GraphServices/src/main/help/help/topics/GraphServices/images/DefaultGraphDisplay.png differ diff --git a/Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultDisplayGraphIcons.java b/Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultDisplayGraphIcons.java index 57be87f7ad..8072f37859 100644 --- a/Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultDisplayGraphIcons.java +++ b/Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultDisplayGraphIcons.java @@ -33,5 +33,6 @@ final class DefaultDisplayGraphIcons { public static final Icon LAYOUT_ALGORITHM_ICON = Icons.get("images/katomic.png"); public static final Icon LASSO_ICON = Icons.get("images/Lasso.png"); public static final Icon FILTER_ICON = Icons.CONFIGURE_FILTER_ICON; + public static final Icon FIT_TO_WINDOW = Icons.get("images/view-fullscreen.png"); } diff --git a/Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultGraphDisplay.java b/Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultGraphDisplay.java index f665f710c0..c5747d3f34 100644 --- a/Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultGraphDisplay.java +++ b/Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultGraphDisplay.java @@ -304,8 +304,8 @@ public class DefaultGraphDisplay implements GraphDisplay { // create an icon button to reset the view transformations to identity (scaled to layout) new ActionBuilder("Reset View", ACTION_OWNER) - .description("Reset all view transforms to center graph in display") - .toolBarIcon(Icons.REFRESH_ICON) + .description("Fit Graph to Window") + .toolBarIcon(DefaultDisplayGraphIcons.FIT_TO_WINDOW) .onAction(context -> viewer.scaleToLayout()) .buildAndInstallLocal(componentProvider); diff --git a/Ghidra/Features/GraphServices/src/main/resources/images/view-fullscreen.png b/Ghidra/Features/GraphServices/src/main/resources/images/view-fullscreen.png new file mode 100644 index 0000000000..ffdabd4e97 Binary files /dev/null and b/Ghidra/Features/GraphServices/src/main/resources/images/view-fullscreen.png differ