From af1302b0d222ca1a14f462f790b74d181b07168c Mon Sep 17 00:00:00 2001 From: chylex <contact@chylex.com> Date: Mon, 11 Dec 2023 17:22:27 +0100 Subject: [PATCH] Fix icon grabber skipping fixed size icons --- .../com/chylex/intellij/coloredicons/GrabIcons.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/helpers/com/chylex/intellij/coloredicons/GrabIcons.java b/helpers/com/chylex/intellij/coloredicons/GrabIcons.java index 3d25201..27b563f 100644 --- a/helpers/com/chylex/intellij/coloredicons/GrabIcons.java +++ b/helpers/com/chylex/intellij/coloredicons/GrabIcons.java @@ -26,7 +26,10 @@ abstract class GrabIcons { private static final List<String> EXPECTED_OLD_UI_VIEW_BOXES_LOWERCASE = List.of( "viewbox=\"0 0 12 12\"", "viewbox=\"0 0 13 13\"", - "viewbox=\"0 0 16 16\"" + "viewbox=\"0 0 16 16\"", + "width=\"12\" height=\"12\"", + "width=\"13\" height=\"13\"", + "width=\"16\" height=\"16\"" ); private static final List<String> EXPECTED_OLD_UI_COLORS_LOWERCASE = List.of( @@ -37,7 +40,10 @@ abstract class GrabIcons { private static final List<String> EXPECTED_NEW_UI_VIEW_BOXES_LOWERCASE = List.of( "viewbox=\"0 0 14 14\"", "viewbox=\"0 0 16 16\"", - "viewbox=\"0 0 20 20\"" + "viewbox=\"0 0 20 20\"", + "width=\"14\" height=\"14\"", + "width=\"16\" height=\"16\"", + "width=\"20\" height=\"20\"" ); private static final List<String> EXPECTED_NEW_UI_COLORS_LOWERCASE = List.of(