mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-12-28 19:01:08 +02:00
Thumbnails of new and deleted sheets were grey, not green/red.
- scripts/gitsch2ppm: make placeholder for unchanged sheets taller - scripts/gitsch2ppm: when making thumbnails, set the color after processing $THUMB_OPTS, so that it isn't overridden.
This commit is contained in:
parent
45935dc753
commit
daa45012a4
@ -157,7 +157,7 @@ if [ -z "$head" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ppmmake '#e0e0e0' 5 20 | pnmtopng >"$out"/unchanged.png
|
||||
ppmmake '#e0e0e0' 5 30 | pnmtopng >"$out"/unchanged.png
|
||||
|
||||
index="$out/index.html"
|
||||
{
|
||||
@ -210,12 +210,12 @@ for n in `cd "$dir" && git rev-list $first..HEAD~1` $first; do
|
||||
elif [ -f "$a" ]; then
|
||||
s="$s<TD>"
|
||||
pngdiff cat "$diff" -f -c 1,0,0 "$a" "$a" || exit
|
||||
pngdiff shrink "$thumb" -f -c 1,0,0 $THUMB_OPTS "$fat_a" "$fat_a" \
|
||||
pngdiff shrink "$thumb" -f $THUMB_OPTS -c 1,0,0 "$fat_a" "$fat_a" \
|
||||
|| exit
|
||||
elif [ -f "$b" ]; then
|
||||
s="$s<TD>"
|
||||
pngdiff cat "$diff" -f -c 0,1,0 "$b" "$b" || exit
|
||||
pngdiff shrink "$thumb" -f -c 0,1,0 $THUMB_OPTS "$fat_b" "$fat_b" \
|
||||
pngdiff shrink "$thumb" -f $THUMB_OPTS -c 0,1,0 "$fat_b" "$fat_b" \
|
||||
|| exit
|
||||
else
|
||||
s="$s<TD>"
|
||||
|
Loading…
Reference in New Issue
Block a user