Skip to content

Commit b239cde

Browse files
Undinyopox
authored andcommitted
UI: update icons for macros
1 parent 68af1bd commit b239cde

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

src/main/kotlin/org/rust/ide/icons/RsIcons.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ object RsIcons {
5555
val TYPE_ALIAS = load("/icons/nodes/typeAlias.svg")
5656
val IMPL = load("/icons/nodes/impl.svg")
5757
val FUNCTION = load("/icons/nodes/function.svg")
58-
val MACRO = AllIcons.General.ExclMark
58+
val MACRO = load("/icons/nodes/macro.svg")
59+
val MACRO2 = load("/icons/nodes/macro2.0.svg")
5960

6061
private val GLOBAL_BINDING = load("/icons/nodes/constant.svg")
6162
val CONSTANT = GLOBAL_BINDING.addFinalMark()

src/main/kotlin/org/rust/lang/core/psi/ext/RsMacro2.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ abstract class RsMacro2ImplMixin : RsStubbedNamedElementImpl<RsMacro2Stub>,
2525

2626
constructor(stub: RsMacro2Stub, elementType: IStubElementType<*, *>) : super(stub, elementType)
2727

28-
override fun getIcon(flags: Int): Icon = iconWithVisibility(flags, RsIcons.MACRO)
28+
override fun getIcon(flags: Int): Icon = iconWithVisibility(flags, RsIcons.MACRO2)
2929

3030
override val crateRelativePath: String? get() = RsPsiImplUtil.crateRelativePath(this)
3131

Lines changed: 5 additions & 0 deletions
Loading
Lines changed: 5 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)