diff --git a/examples/confirm_exit/screenshot.png b/examples/confirm_exit/screenshot.png index 062cd88e..931f17c9 100644 Binary files a/examples/confirm_exit/screenshot.png and b/examples/confirm_exit/screenshot.png differ diff --git a/examples/custom_3d_glow/screenshot.png b/examples/custom_3d_glow/screenshot.png index cb33155b..cea68ab3 100644 Binary files a/examples/custom_3d_glow/screenshot.png and b/examples/custom_3d_glow/screenshot.png differ diff --git a/examples/custom_font/screenshot.png b/examples/custom_font/screenshot.png index abf60ca1..97132d02 100644 Binary files a/examples/custom_font/screenshot.png and b/examples/custom_font/screenshot.png differ diff --git a/examples/custom_font_style/screenshot.png b/examples/custom_font_style/screenshot.png index 5ab1a298..0a8cdf08 100644 Binary files a/examples/custom_font_style/screenshot.png and b/examples/custom_font_style/screenshot.png differ diff --git a/examples/custom_window_frame/screenshot.png b/examples/custom_window_frame/screenshot.png index 50b5dd28..5fe25c57 100644 Binary files a/examples/custom_window_frame/screenshot.png and b/examples/custom_window_frame/screenshot.png differ diff --git a/examples/file_dialog/screenshot.png b/examples/file_dialog/screenshot.png index f2b59d12..263a8521 100644 Binary files a/examples/file_dialog/screenshot.png and b/examples/file_dialog/screenshot.png differ diff --git a/examples/hello_world/screenshot.png b/examples/hello_world/screenshot.png index 09c7af2f..450f6eea 100644 Binary files a/examples/hello_world/screenshot.png and b/examples/hello_world/screenshot.png differ diff --git a/examples/hello_world_simple/screenshot.png b/examples/hello_world_simple/screenshot.png index 765339d4..450f6eea 100644 Binary files a/examples/hello_world_simple/screenshot.png and b/examples/hello_world_simple/screenshot.png differ diff --git a/examples/keyboard_events/screenshot.png b/examples/keyboard_events/screenshot.png index b8ab1172..e144d870 100644 Binary files a/examples/keyboard_events/screenshot.png and b/examples/keyboard_events/screenshot.png differ diff --git a/examples/puffin_profiler/screenshot.png b/examples/puffin_profiler/screenshot.png index fe974d85..a6939706 100644 Binary files a/examples/puffin_profiler/screenshot.png and b/examples/puffin_profiler/screenshot.png differ diff --git a/examples/retained_image/screenshot.png b/examples/retained_image/screenshot.png index c605558d..9e2234e4 100644 Binary files a/examples/retained_image/screenshot.png and b/examples/retained_image/screenshot.png differ diff --git a/examples/serial_windows/screenshot.png b/examples/serial_windows/screenshot.png index 1f7732c0..6926765b 100644 Binary files a/examples/serial_windows/screenshot.png and b/examples/serial_windows/screenshot.png differ diff --git a/examples/svg/screenshot.png b/examples/svg/screenshot.png index 7b3d6222..1a9664a8 100644 Binary files a/examples/svg/screenshot.png and b/examples/svg/screenshot.png differ diff --git a/examples/user_attention/screenshot.png b/examples/user_attention/screenshot.png index 3387d313..d7ee61cc 100644 Binary files a/examples/user_attention/screenshot.png and b/examples/user_attention/screenshot.png differ diff --git a/scripts/generate_example_screenshots.sh b/scripts/generate_example_screenshots.sh index 39550a0d..4ea23da2 100755 --- a/scripts/generate_example_screenshots.sh +++ b/scripts/generate_example_screenshots.sh @@ -7,7 +7,11 @@ cd "$script_path/.." cd examples for EXAMPLE_NAME in $(ls -1d */ | sed 's/\/$//'); do - if [ ${EXAMPLE_NAME} != "hello_world_par" ]; then - EFRAME_SCREENSHOT_TO="$EXAMPLE_NAME/screenshot.png" cargo run -p $EXAMPLE_NAME + if [ ${EXAMPLE_NAME} != "hello_world_par" ] && [ ${EXAMPLE_NAME} != "screenshot" ]; then + echo "" + echo "Running ${EXAMPLE_NAME}…" + EFRAME_SCREENSHOT_TO="temp.png" cargo run -p ${EXAMPLE_NAME} + pngcrush -rem allb -brute -reduce temp.png "${EXAMPLE_NAME}/screenshot.png" + rm temp.png fi done