mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-16 17:57:43 +00:00
Merge pull request #6874 from kellykelly3/7364-clipped-joption-dialog-icon
7364 - Created new icons to fix JOption clip issue
This commit is contained in:
commit
e5ee00ddaa
@ -24,6 +24,7 @@ import java.util.Map;
|
|||||||
import java.util.TreeMap;
|
import java.util.TreeMap;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import javax.swing.BorderFactory;
|
import javax.swing.BorderFactory;
|
||||||
|
import javax.swing.ImageIcon;
|
||||||
import javax.swing.SwingUtilities;
|
import javax.swing.SwingUtilities;
|
||||||
import javax.swing.UIManager;
|
import javax.swing.UIManager;
|
||||||
import javax.swing.UIManager.LookAndFeelInfo;
|
import javax.swing.UIManager.LookAndFeelInfo;
|
||||||
@ -75,6 +76,16 @@ public class Installer extends ModuleInstall {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void setLookAndFeel() {
|
private void setLookAndFeel() {
|
||||||
|
|
||||||
|
ImageIcon questionIcon = new ImageIcon(getClass().getResource("/org/sleuthkit/autopsy/images/question_32.png"));
|
||||||
|
ImageIcon warningIcon = new ImageIcon(getClass().getResource("/org/sleuthkit/autopsy/images/warning_32.png"));
|
||||||
|
ImageIcon informationIcon = new ImageIcon(getClass().getResource("/org/sleuthkit/autopsy/images/information_32.png"));
|
||||||
|
ImageIcon errorIcon = new ImageIcon(getClass().getResource("/org/sleuthkit/autopsy/images/error_32.png"));
|
||||||
|
UIManager.put("OptionPane.errorIcon", errorIcon);
|
||||||
|
UIManager.put("OptionPane.warningIcon", warningIcon);
|
||||||
|
UIManager.put("OptionPane.questionIcon", questionIcon);
|
||||||
|
UIManager.put("OptionPane.informationIcon", informationIcon);
|
||||||
|
|
||||||
if (System.getProperty("os.name").toLowerCase().contains("mac")) { //NON-NLS
|
if (System.getProperty("os.name").toLowerCase().contains("mac")) { //NON-NLS
|
||||||
setUnixLookAndFeel();
|
setUnixLookAndFeel();
|
||||||
setModuleSettings("false");
|
setModuleSettings("false");
|
||||||
|
BIN
Core/src/org/sleuthkit/autopsy/images/error_32.png
Executable file
BIN
Core/src/org/sleuthkit/autopsy/images/error_32.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
BIN
Core/src/org/sleuthkit/autopsy/images/information_32.png
Executable file
BIN
Core/src/org/sleuthkit/autopsy/images/information_32.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
BIN
Core/src/org/sleuthkit/autopsy/images/question_32.png
Executable file
BIN
Core/src/org/sleuthkit/autopsy/images/question_32.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
BIN
Core/src/org/sleuthkit/autopsy/images/warning_32.png
Executable file
BIN
Core/src/org/sleuthkit/autopsy/images/warning_32.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
Loading…
x
Reference in New Issue
Block a user