Browse Source

Merge pull request #15 from AlexFalappa/feature/optionpane-icons

Better icons for JOptionPane
master
Konstantin Bulenkov 8 years ago committed by GitHub
parent
commit
8c22b56181
  1. 4
      src/com/bulenkov/darcula/DarculaLaf.java
  2. BIN
      src/com/bulenkov/darcula/icons/option_pane_error.png
  3. BIN
      src/com/bulenkov/darcula/icons/option_pane_error@2x.png
  4. BIN
      src/com/bulenkov/darcula/icons/option_pane_info.png
  5. BIN
      src/com/bulenkov/darcula/icons/option_pane_info@2x.png
  6. BIN
      src/com/bulenkov/darcula/icons/option_pane_question.png
  7. BIN
      src/com/bulenkov/darcula/icons/option_pane_question@2x.png
  8. BIN
      src/com/bulenkov/darcula/icons/option_pane_warning.png
  9. BIN
      src/com/bulenkov/darcula/icons/option_pane_warning@2x.png

4
src/com/bulenkov/darcula/DarculaLaf.java

@ -99,6 +99,10 @@ public final class DarculaLaf extends BasicLookAndFeel {
defaults.put("CheckBoxMenuItem.checkIcon", EmptyIcon.create(16));
defaults.put("RadioButtonMenuItem.checkIcon", EmptyIcon.create(16));
defaults.put("InternalFrame.icon", new IconUIResource(IconLoader.getIcon("/com/bulenkov/darcula/icons/internalFrame.png")));
defaults.put("OptionPane.informationIcon", new IconUIResource(IconLoader.getIcon("/com/bulenkov/darcula/icons/option_pane_info.png")));
defaults.put("OptionPane.questionIcon", new IconUIResource(IconLoader.getIcon("/com/bulenkov/darcula/icons/option_pane_question.png")));
defaults.put("OptionPane.warningIcon", new IconUIResource(IconLoader.getIcon("/com/bulenkov/darcula/icons/option_pane_warning.png")));
defaults.put("OptionPane.errorIcon", new IconUIResource(IconLoader.getIcon("/com/bulenkov/darcula/icons/option_pane_error.png")));
return defaults;
}
catch (Exception ignore) {

BIN
src/com/bulenkov/darcula/icons/option_pane_error.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
src/com/bulenkov/darcula/icons/option_pane_error@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
src/com/bulenkov/darcula/icons/option_pane_info.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
src/com/bulenkov/darcula/icons/option_pane_info@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
src/com/bulenkov/darcula/icons/option_pane_question.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
src/com/bulenkov/darcula/icons/option_pane_question@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
src/com/bulenkov/darcula/icons/option_pane_warning.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
src/com/bulenkov/darcula/icons/option_pane_warning@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Loading…
Cancel
Save