mirror of
https://github.com/RGBCube/ThemeNix
synced 2025-07-27 08:27:45 +00:00
Show hex color in visualize
This commit is contained in:
parent
67f9d39170
commit
aaaa3ad6a5
1 changed files with 3 additions and 2 deletions
|
@ -21,9 +21,10 @@ def main [
|
|||
| reject name author
|
||||
| transpose key value
|
||||
| each {|it|
|
||||
let color = { bg: ("#" + $it.value) }
|
||||
let color_hex = "#" + $it.value
|
||||
let color = { bg: $color_hex }
|
||||
|
||||
echo $"($it.key): (ansi $color) (ansi reset)"
|
||||
echo $"($it.key) ($color_hex): (ansi $color) (ansi reset)"
|
||||
}
|
||||
|
||||
$"\n($theme.name) by ($theme.author)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue