From cf89bc6a24a1e300afc01f8633d81cc7111e7da7 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 24 Feb 2017 18:48:02 -0500 Subject: translate new dye names to old for 89-color palette check --- init.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/init.lua b/init.lua index f23693c..08f79b6 100644 --- a/init.lua +++ b/init.lua @@ -472,6 +472,18 @@ function unifieddyes.getpaletteidx(color, palette_type) return (hues_extended[color] + shades_extended[shade]*24), hues_extended[color] end else -- it's the 89-color palette + + -- If using this palette, translate new color names back to old. + + if shade == "" then + if color == "spring" then + color = "aqua" + elseif color == "azure" then + color = "skyblue" + elseif color == "rose" then + color = "redviolet" + end + end if hues[color] and shades[shade] then return (hues[color] * 8 + shades[shade]), hues[color] end -- cgit v1.2.3