mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
GP-9181 - Theming - Base Module
This commit is contained in:
parent
2dade60b3e
commit
4eb3d8fd86
113 changed files with 1092 additions and 1099 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue