Ghidra is a software reverse engineering (SRE) framework
Changed "Fit to Window" action to use new icon instead for refresh icon
ghidravore96b0fd984dc9
diff --git a/Ghidra/Features/GraphServices/certification.manifest b/Ghidra/Features/GraphServices/certification.manifestindex 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 DomainModule.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 icosrc/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.pngindex 9f7643a338..38e16becc3 100644Binary 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 differdiff --git a/Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultDisplayGraphIcons.java b/Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultDisplayGraphIcons.javaindex 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.javaindex 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.pngnew file mode 100644index 0000000000..ffdabd4e97Binary files /dev/null and b/Ghidra/Features/GraphServices/src/main/resources/images/view-fullscreen.png differ