This repository has been archived by the owner on Feb 1, 2022. It is now read-only.
generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix external documentation link * Update Hover
- Loading branch information
1 parent
1cf7a11
commit bf50a9c
Showing
7 changed files
with
83 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 51 additions & 12 deletions
63
src/main/kotlin/com/github/intheclouddan/intellijpluginld/Icons.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,59 @@ | ||
package com.github.intheclouddan.intellijpluginld | ||
|
||
import com.intellij.openapi.util.IconLoader | ||
import com.intellij.util.ImageLoader | ||
import com.intellij.util.ui.JBImageIcon | ||
|
||
class LDIcons { | ||
companion object { | ||
val DEFAULT_VARIATION = IconLoader.getIcon("/icons/variationDefault.svg") | ||
val DESCRIPTION = IconLoader.getIcon("/icons/description.svg") | ||
val FLAG = IconLoader.getIcon("/icons/flag.svg") | ||
val FLAG_KEY = IconLoader.getIcon("/icons/flagKey.svg") | ||
val OFF_VARIATION = IconLoader.getIcon("/icons/offVariation.svg") | ||
val PREREQUISITE = IconLoader.getIcon("/icons/prereq.svg") | ||
val RULES = IconLoader.getIcon("/icons/rules.svg") | ||
val TAGS = IconLoader.getIcon("/icons/tags.svg") | ||
val TARGETS = IconLoader.getIcon("/icons/targets.svg") | ||
val TOGGLE_OFF = IconLoader.getIcon("/icons/toggleoff.svg") | ||
val TOGGLE_ON = IconLoader.getIcon("/icons/toggleon.svg") | ||
val VARIATION = IconLoader.getIcon("/icons/variation.svg") | ||
@JvmField | ||
val DEFAULT_VARIATION = IconLoader.getIcon("/icons/variationDefault.svg", javaClass) | ||
|
||
@JvmField | ||
val DESCRIPTION = IconLoader.getIcon("/icons/description.svg", javaClass) | ||
|
||
@JvmField | ||
val FLAG = IconLoader.getIcon(LDIconsPath.FLAG, javaClass) | ||
|
||
@JvmField | ||
val FLAG_KEY = IconLoader.getIcon("/icons/flagKey.svg", javaClass) | ||
|
||
@JvmField | ||
val OFF_VARIATION = IconLoader.getIcon("/icons/offVariation.svg", javaClass) | ||
|
||
@JvmField | ||
val PREREQUISITE = IconLoader.getIcon("/icons/prereq.svg", javaClass) | ||
|
||
@JvmField | ||
val RULES = IconLoader.getIcon("/icons/rules.svg", javaClass) | ||
|
||
@JvmField | ||
val TAGS = IconLoader.getIcon("/icons/tags.svg", javaClass) | ||
|
||
@JvmField | ||
val TARGETS = IconLoader.getIcon("/icons/targets.svg", javaClass) | ||
|
||
@JvmField | ||
val TOGGLE_OFF = IconLoader.getIcon("/icons/toggleoff.svg", javaClass) | ||
|
||
@JvmField | ||
val TOGGLE_ON = IconLoader.getIcon("/icons/toggleon.svg", javaClass) | ||
|
||
@JvmField | ||
val VARIATION = IconLoader.getIcon("/icons/variation.svg", javaClass) | ||
|
||
|
||
fun imageLoader(path: String): JBImageIcon { | ||
val image = ImageLoader.loadFromResource(path); | ||
return JBImageIcon(image!!); | ||
} | ||
} | ||
} | ||
|
||
class LDIconsPath { | ||
companion object { | ||
val FLAG = "/icons/flag.svg" | ||
val TOGGLE_OFF = "/icons/toggleoff.svg" | ||
val TOGGLE_ON = "/icons/toggleon.svg" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters