From 9ca695b1fe080d46cd93e4793773eaea5e5b9299 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Wed, 23 Jun 2021 01:14:41 +0200 Subject: [PATCH] IDEA-269021 reusing named colors doesn't work if there is no icons section GitOrigin-RevId: 8530a7ca91f511c4c0eb2ded0f0e66c450d495e6 --- platform/platform-impl/src/com/intellij/ide/ui/UITheme.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/ide/ui/UITheme.java b/platform/platform-impl/src/com/intellij/ide/ui/UITheme.java index 1afbf7741b42..ffebd0c58ccc 100644 --- a/platform/platform-impl/src/com/intellij/ide/ui/UITheme.java +++ b/platform/platform-impl/src/com/intellij/ide/ui/UITheme.java @@ -141,12 +141,12 @@ public final class UITheme { theme.providerClassLoader = provider; } + initializeNamedColors(theme); + if (theme.icons == null || theme.icons.isEmpty()) { return theme; } - initializeNamedColors(theme); - theme.patcher = new IconPathPatcher() { @Nullable @Override