Generate screenshots for all themes
1
.gitignore
vendored
@@ -18,4 +18,3 @@
|
|||||||
|
|
||||||
/_build
|
/_build
|
||||||
.vscode
|
.vscode
|
||||||
screenshots/
|
|
@@ -154,7 +154,7 @@ from the root of the repository.
|
|||||||
To generate screenshots in a variety of common sizes, build unl0kr and then run
|
To generate screenshots in a variety of common sizes, build unl0kr and then run
|
||||||
|
|
||||||
```
|
```
|
||||||
$ sudo ./generate-screenshots _build/unl0kr
|
$ sudo ./regenerate-screenshots _build/unl0kr
|
||||||
```
|
```
|
||||||
|
|
||||||
where `_build/unl0kr` is the location of the unl0kr binary. Note that you may have to adapt some of the settings inside the script depending on the device you're using to generate the screenshots.
|
where `_build/unl0kr` is the location of the unl0kr binary. Note that you may have to adapt some of the settings inside the script depending on the device you're using to generate the screenshots.
|
||||||
|
@@ -7,6 +7,14 @@ fb_format=rgba
|
|||||||
|
|
||||||
unl0kr=$1
|
unl0kr=$1
|
||||||
outdir=screenshots
|
outdir=screenshots
|
||||||
|
config=unl0kr-screenshots.conf
|
||||||
|
|
||||||
|
themes=(
|
||||||
|
breezy-light
|
||||||
|
breezy-dark
|
||||||
|
pmos-light
|
||||||
|
pmos-dark
|
||||||
|
)
|
||||||
|
|
||||||
resolutions=(
|
resolutions=(
|
||||||
# Nokia N900
|
# Nokia N900
|
||||||
@@ -26,7 +34,7 @@ resolutions=(
|
|||||||
1920x1080
|
1920x1080
|
||||||
)
|
)
|
||||||
|
|
||||||
if [[ ! -x $unl0kr ]]; then
|
if [[ ! -f $unl0kr || ! -x $unl0kr ]]; then
|
||||||
echo "Error: Could not find unl0kr executable at $unl0kr" 1>&2
|
echo "Error: Could not find unl0kr executable at $unl0kr" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -34,12 +42,42 @@ fi
|
|||||||
exec 1>/dev/null
|
exec 1>/dev/null
|
||||||
exec 2>/dev/null
|
exec 2>/dev/null
|
||||||
|
|
||||||
|
function write_config() {
|
||||||
|
cat << EOF > $config
|
||||||
|
[general]
|
||||||
|
animations=true
|
||||||
|
|
||||||
|
[keyboard]
|
||||||
|
autohide=false
|
||||||
|
layout=de
|
||||||
|
popovers=true
|
||||||
|
|
||||||
|
[textarea]
|
||||||
|
obscured=true
|
||||||
|
|
||||||
|
[theme]
|
||||||
|
default=$1
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
function nuke_config() {
|
||||||
|
rm -f $config
|
||||||
|
}
|
||||||
|
|
||||||
|
trap "nuke_config" EXIT
|
||||||
|
|
||||||
rm -rf "$outdir"
|
rm -rf "$outdir"
|
||||||
mkdir "$outdir"
|
mkdir "$outdir"
|
||||||
|
|
||||||
|
readme="# Unl0kr themes"$'\n'
|
||||||
|
|
||||||
|
for theme in ${themes[@]}; do
|
||||||
|
write_config $theme
|
||||||
|
|
||||||
|
readme="$readme"$'\n'"## $theme"$'\n\n'
|
||||||
|
|
||||||
for res in ${resolutions[@]}; do
|
for res in ${resolutions[@]}; do
|
||||||
for theme in light dark; do
|
CRYPTTAB_SOURCE=/dev/sda1 $unl0kr -g $res -c unl0kr-screenshots.conf &
|
||||||
CRYPTTAB_SOURCE=/dev/sda1 $unl0kr -g $res -c unl0kr-screenshots.conf -C unl0kr-screenshots-$theme.conf &
|
|
||||||
pid=$!
|
pid=$!
|
||||||
|
|
||||||
sleep 2
|
sleep 2
|
||||||
@@ -48,5 +86,9 @@ for res in ${resolutions[@]}; do
|
|||||||
convert -size $fb_res -depth $fb_depth $fb_format:"$outdir/$res" -crop $res+0+0 "$outdir/$theme-$res.png"
|
convert -size $fb_res -depth $fb_depth $fb_format:"$outdir/$res" -crop $res+0+0 "$outdir/$theme-$res.png"
|
||||||
rm "$outdir/$res"
|
rm "$outdir/$res"
|
||||||
kill -9 $pid
|
kill -9 $pid
|
||||||
|
|
||||||
|
readme="$readme<img src=\"$theme-$res.png\" alt=\"$res\" height=\"300\"/>"$'\n'
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo -n "$readme" > "$outdir/README.md"
|
49
screenshots/README.md
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
# Unl0kr themes
|
||||||
|
|
||||||
|
## breezy-light
|
||||||
|
|
||||||
|
<img src="breezy-light-480x800.png" alt="480x800" height="300"/>
|
||||||
|
<img src="breezy-light-800x480.png" alt="800x480" height="300"/>
|
||||||
|
<img src="breezy-light-540x960.png" alt="540x960" height="300"/>
|
||||||
|
<img src="breezy-light-960x540.png" alt="960x540" height="300"/>
|
||||||
|
<img src="breezy-light-768x1024.png" alt="768x1024" height="300"/>
|
||||||
|
<img src="breezy-light-1024x768.png" alt="1024x768" height="300"/>
|
||||||
|
<img src="breezy-light-1280x800.png" alt="1280x800" height="300"/>
|
||||||
|
<img src="breezy-light-1440x720.png" alt="1440x720" height="300"/>
|
||||||
|
<img src="breezy-light-1920x1080.png" alt="1920x1080" height="300"/>
|
||||||
|
|
||||||
|
## breezy-dark
|
||||||
|
|
||||||
|
<img src="breezy-dark-480x800.png" alt="480x800" height="300"/>
|
||||||
|
<img src="breezy-dark-800x480.png" alt="800x480" height="300"/>
|
||||||
|
<img src="breezy-dark-540x960.png" alt="540x960" height="300"/>
|
||||||
|
<img src="breezy-dark-960x540.png" alt="960x540" height="300"/>
|
||||||
|
<img src="breezy-dark-768x1024.png" alt="768x1024" height="300"/>
|
||||||
|
<img src="breezy-dark-1024x768.png" alt="1024x768" height="300"/>
|
||||||
|
<img src="breezy-dark-1280x800.png" alt="1280x800" height="300"/>
|
||||||
|
<img src="breezy-dark-1440x720.png" alt="1440x720" height="300"/>
|
||||||
|
<img src="breezy-dark-1920x1080.png" alt="1920x1080" height="300"/>
|
||||||
|
|
||||||
|
## pmos-light
|
||||||
|
|
||||||
|
<img src="pmos-light-480x800.png" alt="480x800" height="300"/>
|
||||||
|
<img src="pmos-light-800x480.png" alt="800x480" height="300"/>
|
||||||
|
<img src="pmos-light-540x960.png" alt="540x960" height="300"/>
|
||||||
|
<img src="pmos-light-960x540.png" alt="960x540" height="300"/>
|
||||||
|
<img src="pmos-light-768x1024.png" alt="768x1024" height="300"/>
|
||||||
|
<img src="pmos-light-1024x768.png" alt="1024x768" height="300"/>
|
||||||
|
<img src="pmos-light-1280x800.png" alt="1280x800" height="300"/>
|
||||||
|
<img src="pmos-light-1440x720.png" alt="1440x720" height="300"/>
|
||||||
|
<img src="pmos-light-1920x1080.png" alt="1920x1080" height="300"/>
|
||||||
|
|
||||||
|
## pmos-dark
|
||||||
|
|
||||||
|
<img src="pmos-dark-480x800.png" alt="480x800" height="300"/>
|
||||||
|
<img src="pmos-dark-800x480.png" alt="800x480" height="300"/>
|
||||||
|
<img src="pmos-dark-540x960.png" alt="540x960" height="300"/>
|
||||||
|
<img src="pmos-dark-960x540.png" alt="960x540" height="300"/>
|
||||||
|
<img src="pmos-dark-768x1024.png" alt="768x1024" height="300"/>
|
||||||
|
<img src="pmos-dark-1024x768.png" alt="1024x768" height="300"/>
|
||||||
|
<img src="pmos-dark-1280x800.png" alt="1280x800" height="300"/>
|
||||||
|
<img src="pmos-dark-1440x720.png" alt="1440x720" height="300"/>
|
||||||
|
<img src="pmos-dark-1920x1080.png" alt="1920x1080" height="300"/>
|
BIN
screenshots/breezy-dark-1024x768.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
screenshots/breezy-dark-1280x800.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
screenshots/breezy-dark-1440x720.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
screenshots/breezy-dark-1920x1080.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
screenshots/breezy-dark-480x800.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
screenshots/breezy-dark-540x960.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
screenshots/breezy-dark-768x1024.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
screenshots/breezy-dark-800x480.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
screenshots/breezy-dark-960x540.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
screenshots/breezy-light-1024x768.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
screenshots/breezy-light-1280x800.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
screenshots/breezy-light-1440x720.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
screenshots/breezy-light-1920x1080.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
screenshots/breezy-light-480x800.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
screenshots/breezy-light-540x960.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
screenshots/breezy-light-768x1024.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
screenshots/breezy-light-800x480.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
screenshots/breezy-light-960x540.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
screenshots/pmos-dark-1024x768.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
screenshots/pmos-dark-1280x800.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
screenshots/pmos-dark-1440x720.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
screenshots/pmos-dark-1920x1080.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
screenshots/pmos-dark-480x800.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
screenshots/pmos-dark-540x960.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
screenshots/pmos-dark-768x1024.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
screenshots/pmos-dark-800x480.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
screenshots/pmos-dark-960x540.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
screenshots/pmos-light-1024x768.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
screenshots/pmos-light-1280x800.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
screenshots/pmos-light-1440x720.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
screenshots/pmos-light-1920x1080.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
screenshots/pmos-light-480x800.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
screenshots/pmos-light-540x960.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
screenshots/pmos-light-768x1024.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
screenshots/pmos-light-800x480.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
screenshots/pmos-light-960x540.png
Normal file
After Width: | Height: | Size: 11 KiB |
@@ -1,2 +0,0 @@
|
|||||||
[theme]
|
|
||||||
default=breezy-dark
|
|
@@ -1,2 +0,0 @@
|
|||||||
[theme]
|
|
||||||
default=breezy-light
|
|
@@ -1,10 +0,0 @@
|
|||||||
[general]
|
|
||||||
animations=true
|
|
||||||
|
|
||||||
[keyboard]
|
|
||||||
autohide=false
|
|
||||||
layout=de
|
|
||||||
popovers=true
|
|
||||||
|
|
||||||
[textarea]
|
|
||||||
obscured=true
|
|