GP-9181 - Theming - Base Module

This commit is contained in:
dragonmacher 2022-09-15 17:44:01 -04:00 committed by ghidragon
parent 2dade60b3e
commit 4eb3d8fd86
113 changed files with 1092 additions and 1099 deletions

View file

@ -32,6 +32,7 @@ import org.xml.sax.SAXException;
import docking.widgets.OptionDialog;
import docking.widgets.filechooser.GhidraFileChooser;
import docking.widgets.table.*;
import generic.theme.GThemeDefaults.Colors.Palette;
import ghidra.framework.preferences.Preferences;
import ghidra.framework.store.LockException;
import ghidra.program.database.ProgramDB;
@ -232,7 +233,7 @@ public class SpecExtensionPanel extends JPanel {
CompilerElement compilerElement = tableModel.getRowObject(row);
if (compilerElement.status == Status.EXTENSION_ERROR) {
setBackground(Color.pink);
setBackground(Palette.PINK);
}
return this;

View file

@ -28,6 +28,7 @@ import org.apache.commons.lang3.StringUtils;
import docking.framework.DockingApplicationConfiguration;
import docking.widgets.label.GDLabel;
import generic.theme.GThemeDefaults.Colors.Messages;
import ghidra.GhidraApplicationLayout;
import ghidra.GhidraLaunchable;
import ghidra.framework.Application;
@ -818,7 +819,7 @@ public class DataTypeArchiveTransformer implements GhidraLaunchable {
statusLabel.setToolTipText(inProgressMessage);
filePanel.transform(monitor);
File destinationFile = filePanel.getDestinationFile();
statusLabel.setForeground(Color.blue);
statusLabel.setForeground(Messages.NORMAL);
String message = "Transformation successfully created " +
destinationFile.getAbsolutePath() + ".";
statusLabel.setText(message);
@ -830,7 +831,7 @@ public class DataTypeArchiveTransformer implements GhidraLaunchable {
statusLabel.setToolTipText(cancelMessage);
}
catch (Exception exc) {
statusLabel.setForeground(Color.red);
statusLabel.setForeground(Messages.ERROR);
statusLabel.setText(exc.getMessage());
statusLabel.setToolTipText(exc.getMessage());
exc.printStackTrace();