mirror of
https://github.com/RGBCube/ThemeNix
synced 2025-07-27 16:37:46 +00:00
Format
This commit is contained in:
parent
f542cc71cf
commit
58c0eb5480
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ def theme-to-nix [
|
||||||
theme: record # The theme to convert to Nix.
|
theme: record # The theme to convert to Nix.
|
||||||
] {
|
] {
|
||||||
$theme
|
$theme
|
||||||
| items { |key, value|
|
| items {|key, value|
|
||||||
let key = match $key {
|
let key = match $key {
|
||||||
"scheme" => "name "
|
"scheme" => "name "
|
||||||
_ => $key
|
_ => $key
|
||||||
|
|
|
@ -16,7 +16,7 @@ def main [
|
||||||
$theme
|
$theme
|
||||||
| reject name author
|
| reject name author
|
||||||
| transpose key value
|
| transpose key value
|
||||||
| each { |it|
|
| each {|it|
|
||||||
let color = { bg: ("#" + $it.value) }
|
let color = { bg: ("#" + $it.value) }
|
||||||
|
|
||||||
echo $"($it.key): (ansi $color) (ansi reset)"
|
echo $"($it.key): (ansi $color) (ansi reset)"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue