From ae9114707e83adebb64510d32021bc4fc8f4f7e7 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Wed, 21 Oct 2020 21:51:17 +0200 Subject: [PATCH] IDEA-251940 Some icons became brighter GitOrigin-RevId: eea245fc4684b48d9be912f00ee17ac1ee9efa3c --- .../util/ui/src/com/intellij/openapi/util/IconLoader.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/util/ui/src/com/intellij/openapi/util/IconLoader.java b/platform/util/ui/src/com/intellij/openapi/util/IconLoader.java index bf23ff50d894..aeacf6eb0b99 100644 --- a/platform/util/ui/src/com/intellij/openapi/util/IconLoader.java +++ b/platform/util/ui/src/com/intellij/openapi/util/IconLoader.java @@ -846,7 +846,9 @@ public final class IconLoader { ImageIcon icon = scaledIconCache.getOrScaleIcon(1f); if (icon != null) { - this.realIcon = icon.getIconWidth() < 50 && icon.getIconHeight() < 50 ? icon : new SoftReference<>(icon); + if (!SVGLoader.isSelectionContext()) { + this.realIcon = icon.getIconWidth() < 50 && icon.getIconHeight() < 50 ? icon : new SoftReference<>(icon); + } return icon; } }