Compare commits

...

2 Commits

Author SHA1 Message Date
chylex 435dbd2d84
Release version 1.5.1 2023-12-13 10:07:01 +01:00
chylex 277ef4a835
Fix crash when New UI status is not yet initialized 2023-12-13 10:06:37 +01:00
3 changed files with 7 additions and 3 deletions

View File

@ -6,7 +6,7 @@ plugins {
}
group = "com.chylex.intellij.coloredicons"
version = "1.5"
version = "1.5.1"
repositories {
mavenCentral()

View File

@ -9,6 +9,10 @@
</description>
<change-notes><![CDATA[
<b>Version 1.5.1</b>
<ul>
<li>Fixed a random exception while loading the plugin</li>
</ul>
<b>Version 1.5</b>
<ul>
<li>Fixed tool window icons for 2023.3</li>

View File

@ -2,7 +2,7 @@ package com.chylex.intellij.coloredicons;
import com.chylex.intellij.coloredicons.sets.OldUI;
import com.intellij.openapi.util.IconLoader;
import com.intellij.openapi.util.IconPathPatcher;
import com.intellij.ui.NewUiValue;
import com.intellij.ui.NewUI;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Collections;
@ -13,7 +13,7 @@ public class IconPatcher extends IconPathPatcher {
private final Map<String, String> iconPaths;
public IconPatcher() {
iconPaths = NewUiValue.isEnabled() ? Collections.emptyMap() : OldUI.getIconPaths();
iconPaths = NewUI.isEnabled() ? Collections.emptyMap() : OldUI.getIconPaths();
IconLoader.installPathPatcher(this);
}