GP-1981 Refactored Gui to use ThemeManager

This commit is contained in:
ghidragon 2022-11-07 16:52:28 -05:00
parent a92a27e9f1
commit edfb5a0877
78 changed files with 1902 additions and 1230 deletions

View file

@ -21,7 +21,7 @@ import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.*;
import generic.theme.Gui;
import generic.theme.ApplicationThemeManager;
import ghidra.framework.Application;
import ghidra.framework.ApplicationConfiguration;
import help.validator.*;
@ -69,7 +69,7 @@ public class GHelpBuilder {
ApplicationConfiguration config = new ApplicationConfiguration() {
@Override
protected void initializeApplication() {
Gui.initialize();
ApplicationThemeManager.initialize();
}
@Override

View file

@ -25,7 +25,7 @@ import java.nio.file.Paths;
import org.junit.Test;
import generic.theme.Gui;
import generic.theme.ApplicationThemeManager;
import ghidra.GhidraTestApplicationLayout;
import ghidra.framework.ApplicationConfiguration;
import utility.application.ApplicationLayout;
@ -101,7 +101,7 @@ public class HelpBuildUtilsTest extends AbstractHelpTest {
@Test
public void testLocateReferences_Icons() throws URISyntaxException {
Gui.initialize();
ApplicationThemeManager.initialize();
Path sourceFile = Paths.get(HTML_FILE_PATH);
String reference = "Icons.REFRESH_ICON"; // see Icons class
ImageLocation location = HelpBuildUtils.locateImageReference(sourceFile, reference);