Skip to content

Commit

Permalink
Added ansible icon on tool action
Browse files Browse the repository at this point in the history
  • Loading branch information
sadv1r committed May 14, 2020
1 parent 6a04618 commit afa5dbb
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/main/java/icons/AnsibleVaultEditorIcons.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package icons;

import com.intellij.openapi.util.IconLoader;

import javax.swing.*;

public interface AnsibleVaultEditorIcons {
Icon ANSIBLE_ICON = IconLoader.getIcon("/icons/ansible.svg");
}
3 changes: 2 additions & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
<!-- Add your actions here -->
<action id="ru.sadv1r.idea.plugin.ansible.vault.editor.VaultModifyAction"
class="ru.sadv1r.idea.plugin.ansible.vault.editor.VaultModifyAction"
text="Ansible Vault Editor">
text="Ansible Vault Editor"
icon="AnsibleVaultEditorIcons.ANSIBLE_ICON">
<add-to-group group-id="ToolsMenu" anchor="first"/>
</action>
</actions>
Expand Down
27 changes: 27 additions & 0 deletions src/main/resources/icons/ansible.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit afa5dbb

Please sign in to comment.