From e85a07aad9c55aa25576810dbf193caaa1f1b75c Mon Sep 17 00:00:00 2001
From: romkatv <roman.perepelitsa@gmail.com>
Date: Fri, 11 Oct 2019 16:53:50 +0200
Subject: bug fix: normalize colors

---
 internal/p10k.zsh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'internal')

diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 0f63b76c..67316cc3 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -387,9 +387,9 @@ _p9k_get_icon() {
 
 _p9k_translate_color() {
   if [[ $1 == <-> ]]; then                  # decimal color code: 255
-    _p9k_ret=$1
+    _p9k_ret=${(l.3..0.)1}
   elif [[ $1 == '#'[[:xdigit:]]## ]]; then  # hexademical color code: #ffffff
-    _p9k_ret=$1
+    _p9k_ret=${(L)1}
   else                                      # named color: red
     # Strip prifixes if there are any.
     _p9k_ret=$__p9k_colors[${${${1#bg-}#fg-}#br}]
-- 
cgit v1.2.3