Skip to content

Commit

Permalink
Update icon to include dark variant
Browse files Browse the repository at this point in the history
  • Loading branch information
JojOatXGME committed Apr 14, 2024
1 parent 7dc749a commit 736f766
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

### Changed

- Icon of `*.nix` files is now using SVG format
- Icon of `*.nix` files got a separate variant for dark backgrounds
- Update Grammar-Kit: 2021.1.2 -> 2022.3.2
- Update JetBrains' fork of JFlex: 1.7.0-1 -> 1.9.2

Expand Down
3 changes: 2 additions & 1 deletion NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ License Notice

src/main/resources/META-INF/pluginIcon.svg
src/main/resources/META-INF/pluginIcon_dark.svg
src/main/resources/icons/nixos-icon.png
src/main/resources/icons/nixSnowflake.svg
src/main/resources/icons/nixSnowflake_dark.svg
9 changes: 8 additions & 1 deletion src/main/java/org/nixos/idea/icon/NixIcons.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,12 @@
import javax.swing.*;

public class NixIcons {
public static final Icon FILE = IconLoader.getIcon("/icons/nixos-icon.png", NixIcons.class);

// Documentation
// -> https://plugins.jetbrains.com/docs/intellij/icons.html
// Design Guide
// -> https://jetbrains.design/intellij/principles/icons/

private static final Icon SNOWFLAKE = IconLoader.getIcon("/icons/nixSnowflake.svg", NixIcons.class);
public static final Icon FILE = SNOWFLAKE;
}
2 changes: 2 additions & 0 deletions src/main/resources/icons/nixSnowflake.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/main/resources/icons/nixSnowflake_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/main/resources/icons/nixos-icon.png
Binary file not shown.

0 comments on commit 736f766

Please sign in to comment.