Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate all screenshots again #67

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ _Note_: preview will be generated using [ANSI Escape Sequences][3]

### Atom One Light ([download](<https://raw.githubusercontent.com/lysyi3m/macos-terminal-themes/master/themes/Atom One Light.terminal>))

![Screenshot](screenshots/atomonelight.png)
![Screenshot](screenshots/atom_one_light.png)

### ayu ([download](<https://raw.githubusercontent.com/lysyi3m/macos-terminal-themes/master/themes/ayu.terminal>))

Expand Down Expand Up @@ -434,7 +434,7 @@ _Note_: preview will be generated using [ANSI Escape Sequences][3]

### Monokai Pro (Filter Spectrum) ([download](<https://raw.githubusercontent.com/lysyi3m/macos-terminal-themes/master/themes/Monokai Pro (Filter Spectrum).terminal>))

![Screenshot](screenshots/monokai_pro__filter_spectrum_.terminal.png)
![Screenshot](screenshots/monokai_pro__filter_spectrum_.png)

### Monokai Soda ([download](<https://raw.githubusercontent.com/lysyi3m/macos-terminal-themes/master/themes/Monokai Soda.terminal>))

Expand Down Expand Up @@ -585,7 +585,7 @@ _Note_: preview will be generated using [ANSI Escape Sequences][3]

### Solarized Dark (patched) ([download](<https://raw.githubusercontent.com/lysyi3m/macos-terminal-themes/master/themes/Solarized Dark (patched).terminal>))

![Screenshot](screenshots/solarized_dark___patched.png)
![Screenshot](screenshots/solarized_dark__patched_.png)

### Solarized Dark Higher Contrast ([download](<https://raw.githubusercontent.com/lysyi3m/macos-terminal-themes/master/themes/Solarized Dark Higher Contrast.terminal>))

Expand Down
Binary file modified screenshots/3024_day.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/3024_night.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/adventuretime.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/afterglow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/alabaster.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/alienblood.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/alucard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/argonaut.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/arthur.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/ateliersulphurpool.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/atom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/atom_one_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed screenshots/atomonelight.png
Binary file not shown.
Binary file modified screenshots/ayu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/ayu_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/ayu_mirage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/batman.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/belafonte_day.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/belafonte_night.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/bifrost.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/birdsofparadise.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/blazer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/borland.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/bright_lights.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/broadcast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/brogrammer.png
Binary file modified screenshots/c64.png
Binary file modified screenshots/chalice.png
Binary file modified screenshots/chalice_dark.png
Binary file modified screenshots/chalk.png
Binary file modified screenshots/chalkboard.png
Binary file modified screenshots/ciapre.png
Binary file modified screenshots/clrs.png
Binary file modified screenshots/cobalt2.png
Binary file modified screenshots/cobalt_neon.png
Binary file modified screenshots/crayonponyfish.png
Binary file modified screenshots/dark_pastel.png
Binary file modified screenshots/darkside.png
Binary file modified screenshots/desert.png
Binary file modified screenshots/dimmedmonokai.png
Binary file modified screenshots/dotgov.png
Binary file modified screenshots/dracula.png
Binary file modified screenshots/dumbledore.png
Binary file modified screenshots/duotone_dark.png
Binary file modified screenshots/earthsong.png
Binary file modified screenshots/elemental.png
Binary file modified screenshots/encom.png
Binary file modified screenshots/espresso.png
Binary file modified screenshots/espresso_libre.png
Binary file modified screenshots/fideloper.png
Binary file modified screenshots/fishtank.png
Binary file modified screenshots/flat.png
Binary file modified screenshots/flatland.png
Binary file modified screenshots/floraverse.png
Binary file modified screenshots/frontenddelight.png
Binary file modified screenshots/funforrest.png
Binary file modified screenshots/galaxy.png
Binary file modified screenshots/github.png
Binary file modified screenshots/glacier.png
Binary file modified screenshots/goabase.png
Binary file modified screenshots/grape.png
Binary file modified screenshots/grass.png
Binary file modified screenshots/gruvbox.png
Binary file modified screenshots/hardcore.png
Binary file modified screenshots/harper.png
Binary file modified screenshots/highway.png
Binary file modified screenshots/hipster_green.png
Binary file modified screenshots/homebrew.png
Binary file modified screenshots/hurtado.png
Binary file modified screenshots/hybrid.png
Binary file modified screenshots/ic_green_ppl.png
Binary file modified screenshots/ic_orange_ppl.png
Binary file modified screenshots/idletoes.png
Binary file modified screenshots/ir_black.png
Binary file modified screenshots/jackie_brown.png
Binary file modified screenshots/japanesque.png
Binary file modified screenshots/jellybeans.png
Binary file modified screenshots/jetbrains_darcula.png
Binary file modified screenshots/kibble.png
Binary file modified screenshots/later_this_evening.png
Binary file modified screenshots/lavandula.png
Binary file modified screenshots/liquidcarbon.png
Binary file modified screenshots/liquidcarbontransparent.png
Binary file modified screenshots/liquidcarbontransparentinverse.png
Binary file modified screenshots/man_page.png
Binary file modified screenshots/mariana.png
Binary file modified screenshots/material.png
Binary file modified screenshots/materialdark.png
Binary file modified screenshots/mathias.png
Binary file modified screenshots/medallion.png
Binary file modified screenshots/misterioso.png
Binary file modified screenshots/molokai.png
Binary file modified screenshots/monalisa.png
Binary file added screenshots/monokai_pro__filter_spectrum_.png
Diff not rendered.
Binary file modified screenshots/monokai_soda.png
Binary file modified screenshots/n0tch2k.png
Binary file modified screenshots/neopolitan.png
Binary file modified screenshots/neutron.png
Binary file modified screenshots/night_owl.png
Binary file modified screenshots/nightlion_v1.png
Binary file modified screenshots/nightlion_v2.png
Binary file modified screenshots/nova.png
Binary file modified screenshots/novel.png
Binary file modified screenshots/obsidian.png
Binary file modified screenshots/ocean.png
Binary file modified screenshots/oceanicmaterial.png
Binary file modified screenshots/ollie.png
Binary file modified screenshots/parasio_dark.png
Binary file modified screenshots/paulmillr.png
Binary file modified screenshots/pencildark.png
Binary file modified screenshots/pencillight.png
Binary file modified screenshots/piatto_light.png
Binary file modified screenshots/pnevma.png
Binary file modified screenshots/pro.png
Binary file modified screenshots/red_alert.png
Binary file modified screenshots/red_sands.png
Binary file modified screenshots/relaxed.png
Binary file modified screenshots/renault_style.png
Binary file modified screenshots/renault_style_light.png
Binary file modified screenshots/rippedcasts.png
Binary file modified screenshots/royal.png
Binary file modified screenshots/seafoam_pastel.png
Binary file modified screenshots/seashells.png
Binary file modified screenshots/seti.png
Binary file modified screenshots/shaman.png
Binary file modified screenshots/slate.png
Binary file modified screenshots/smyck.png
Binary file modified screenshots/snazzy.png
Binary file modified screenshots/softserver.png
Binary file modified screenshots/solarized_darcula.png
Binary file modified screenshots/solarized_dark.png
Binary file removed screenshots/solarized_dark___patched.png
Diff not rendered.
Binary file added screenshots/solarized_dark__patched_.png
Binary file modified screenshots/solarized_dark_higher_contrast.png
Binary file modified screenshots/solarized_light.png
Binary file modified screenshots/source_code_x.png
Binary file modified screenshots/spacedust.png
Binary file modified screenshots/spacegray.png
Binary file modified screenshots/spacegray_eighties.png
Binary file modified screenshots/spacegray_eighties_dull.png
Binary file modified screenshots/spiderman.png
Binary file modified screenshots/spring.png
Binary file modified screenshots/square.png
Binary file modified screenshots/sundried.png
Binary file modified screenshots/symfonic.png
Binary file modified screenshots/tango_dark.png
Binary file modified screenshots/tango_light.png
Binary file modified screenshots/teerb.png
Binary file modified screenshots/thayer_bright.png
Binary file modified screenshots/the_hulk.png
Binary file modified screenshots/tomorrow.png
Binary file modified screenshots/tomorrow_night.png
Binary file modified screenshots/tomorrow_night_blue.png
Binary file modified screenshots/tomorrow_night_bright.png
Binary file modified screenshots/tomorrow_night_eighties.png
Binary file modified screenshots/toychest.png
Binary file modified screenshots/treehouse.png
Binary file modified screenshots/twilight.png
Binary file modified screenshots/ubuntu.png
Binary file modified screenshots/unikitty.png
Binary file modified screenshots/urple.png
Binary file modified screenshots/vaughn.png
Binary file modified screenshots/vibrantink.png
Binary file modified screenshots/vs_code_dark_plus.png
Binary file modified screenshots/vs_code_light_plus.png
Binary file modified screenshots/warmneon.png
Binary file modified screenshots/wez.png
Binary file modified screenshots/wildcherry.png
Binary file modified screenshots/wombat.png
Binary file modified screenshots/wryan.png
Binary file modified screenshots/zenburn.png
2 changes: 2 additions & 0 deletions tools/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
screenshot-in.png
screenshot-out.png
58 changes: 58 additions & 0 deletions tools/enforce_90_columns_50_rows.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?php

// php tools/enforce_90_columns_50_rows.php

$themes = scandir('themes/');

array_shift($themes); // `.`
array_shift($themes); // `..`

function handle_theme($theme) {
$lines = explode(PHP_EOL, file_get_contents('themes/' . $theme));
$has_columncount = false;
$has_rowcount = false;
$name_line = null;

foreach ($lines as $i => $line) {
if (str_contains($line, '<key>columnCount</key>')) {
echo $lines[$i+1] . PHP_EOL;
$lines[$i+1] = "\t<integer>90</integer>";
$has_columncount = true;
}

if (str_contains($line, '<key>rowCount</key>')) {
echo $lines[$i+1] . PHP_EOL;
$lines[$i+1] = "\t<integer>50</integer>";
$has_rowcount = true;
}

if (str_contains($line, '<key>name</key>')) {
$name_line = $i;
}

// if (str_contains($line, '<key>FontHeightSpacing</key>')) {
// $lines[$i+1] = "\t<real>1</real>"; // e.g. monokai pro (filter spectrum) has custom line heights (breaks the screenshot)
// }

// if (str_contains($line, '<key>Font</key>')) {
// $lines[$i] = "\t<key>Font[DO NOT COMMIT]</key>"; // e.g. gruvbox contains a different font (breaks the screenshot)
// }
}

if ($name_line === null) throw new LogicException();

if (!$has_columncount) {
$lines[$name_line] = "\t<key>columnCount</key>\n\t<integer>90</integer>\n" . $lines[$name_line];
}

if (!$has_rowcount) {
$lines[$name_line+1] = $lines[$name_line+1] . "\n\t<key>rowCount</key>\n\t<integer>50</integer>";
}

file_put_contents('themes/' . $theme, implode(PHP_EOL, $lines));
}

foreach($themes as $theme) {
echo $theme . PHP_EOL;
handle_theme($theme);
}
9 changes: 9 additions & 0 deletions tools/photo_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# usage: bash tools/photo_all.sh (and then copy paste all those lines)

for file in themes/*; do
if [ -f "$file" ]; then
echo "bash tools/photo_one.sh \"$file\""
fi
done
15 changes: 15 additions & 0 deletions tools/photo_one.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

# usage: bash tools/photo_one.sh "themes/Afterglow.terminal"

open "${*}"
osascript tools/preview.scpt
#convert tools/screenshot-in.png -crop 640x340+0+90 tools/screenshot-out.png
convert tools/screenshot-in.png -crop 730x365+0+40 tools/screenshot-out.png

screenshot="${*/themes/screenshots}"
screenshot=$(echo "$screenshot" | tr '[:upper:]' '[:lower:]' | tr ' ' '_' | tr '(' '_' | tr ')' '_')
screenshot="${screenshot/.terminal/.png}"

echo $screenshot
cp tools/screenshot-out.png $screenshot
Binary file added tools/preview.scpt
Binary file not shown.