1
Fork 0
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:
RGBCube 2023-12-04 10:02:06 +03:00
parent 67f9d39170
commit aaaa3ad6a5
No known key found for this signature in database

View file

@ -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)"