|
|
|
@ -6,7 +6,6 @@ import com.formdev.flatlaf.FlatLaf;
|
|
|
|
|
import com.fr.base.extension.FileExtension; |
|
|
|
|
import com.fr.general.IOUtils; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.nx.app.web.out.widget.utils.CollectionUtils; |
|
|
|
|
import com.fr.third.errorprone.annotations.Immutable; |
|
|
|
|
import org.jetbrains.annotations.NotNull; |
|
|
|
|
import org.jetbrains.annotations.Nullable; |
|
|
|
@ -167,28 +166,6 @@ public class IconManager {
|
|
|
|
|
return id + "_" + dimension.width + "_" + dimension.height + "_" + type; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 批量添加图标集 |
|
|
|
|
* |
|
|
|
|
* @param sets 图标集 |
|
|
|
|
*/ |
|
|
|
|
public static void addSet(@NotNull List<IconSet> sets) { |
|
|
|
|
if (CollectionUtils.isEmpty(sets)) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
sets.forEach(IconManager::addSet); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 删除指定 id 图标集 |
|
|
|
|
* |
|
|
|
|
* @param id 图标集ID |
|
|
|
|
*/ |
|
|
|
|
public static void removeSet(@NotNull String id) { |
|
|
|
|
ICON_SETS.removeIf(iconSet -> id.equals(iconSet.getId())); |
|
|
|
|
clearCache(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 是否SVG图标格式 |
|
|
|
|
* |
|
|
|
|