Rename style previews

This commit is contained in:
Christian Muehlhaeuser 2019-11-28 09:07:08 +01:00
parent f1ee1e5c46
commit 2a3ea0ed0b
7 changed files with 4 additions and 4 deletions

View file

@ -36,7 +36,7 @@ You can supply a JSON stylesheet with the `-s` flag:
## Example Output
![Gold Dark Style](https://github.com/charmbracelet/gold/raw/master/cmd/gold/styles/gold_dark.png)
![Gold Dark Style](https://github.com/charmbracelet/gold/raw/master/cmd/gold/styles/dark.png)
Check out the [Gold Style Gallery](https://github.com/charmbracelet/gold/blob/master/cmd/gold/styles/README.md)!

View file

@ -2,7 +2,7 @@
for style in ./styles/*.json; do
echo "Generating screenshot for ${style}"
filename="gold_`basename -s .json ${style}`.png"
filename="`basename -s .json ${style}`.png"
light=""
if [[ $style == *"light"* ]]; then

View file

@ -4,10 +4,10 @@
`gold -s dark`
![Gold Dark Style](https://github.com/charmbracelet/gold/raw/master/cmd/gold/styles/gold_dark.png)
![Gold Dark Style](https://github.com/charmbracelet/gold/raw/master/cmd/gold/styles/dark.png)
## Light
`gold -s light`
![Gold Light Style](https://github.com/charmbracelet/gold/raw/master/cmd/gold/styles/gold_light.png)
![Gold Light Style](https://github.com/charmbracelet/gold/raw/master/cmd/gold/styles/light.png)

BIN
styles/dark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

BIN
styles/light.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB