From 909ea32f227d4b7e5d1548717fd754133eba0257 Mon Sep 17 00:00:00 2001 From: weisj Date: Wed, 20 May 2020 07:34:23 +0200 Subject: [PATCH] adjusted warning message. --- .../github/weisj/darklaf/icons/IconColorMapper.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/property-loader/src/main/java/com/github/weisj/darklaf/icons/IconColorMapper.java b/property-loader/src/main/java/com/github/weisj/darklaf/icons/IconColorMapper.java index 98f29373..2fba833c 100644 --- a/property-loader/src/main/java/com/github/weisj/darklaf/icons/IconColorMapper.java +++ b/property-loader/src/main/java/com/github/weisj/darklaf/icons/IconColorMapper.java @@ -87,16 +87,16 @@ public final class IconColorMapper { } } - private static Color resolveColor(final String key, final String[] fallbacks, final Color fallbackColor, - final UIDefaults defaults) { + private static Color resolveColor(final String key, final String[] fallbacks, + final Color fallbackColor, final UIDefaults defaults) { Color color = defaults.getColor(key); for (int i = 0; i < fallbacks.length && color == null; i++) { color = defaults.getColor(fallbacks[i]); } if (color == null) { color = fallbackColor; - LOGGER.warning("Could not load color with id'" + key + "' fallbacks" + Arrays.toString(fallbacks) - + " Using color " + fallbackColor + " instead."); + LOGGER.warning("Could not load color with id '" + key + "' fallbacks" + Arrays.toString(fallbacks) + + ". Using color '" + fallbackColor + "' instead."); } return color; } @@ -129,8 +129,9 @@ public final class IconColorMapper { return 1; } - private static Pair createColor(final Color c, final String name, final float opacity) - throws SVGElementException { + private static Pair createColor(final Color c, + final String name, + final float opacity) throws SVGElementException { LinearGradient grad = new LinearGradient(); grad.addAttribute("id", AnimationElement.AT_XML, name); return new Pair<>(grad, () -> {