diff --git a/CHANGELOG.md b/CHANGELOG.md index ee8e244..0bdd698 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes are listed here. Versions follow [Semantic Versioning](https://semver.org/). +## [Unreleased] + +- A new icon — a penguin in a crown — on the desktop, Android and the website. + ## [1.0.2] — 2026-10-24 - Android: the update card on the main screen has a × that stops the offers (with "Undo"; diff --git a/androidApp/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp b/androidApp/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp index 15982ac..9548278 100644 Binary files a/androidApp/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp and b/androidApp/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp differ diff --git a/androidApp/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp b/androidApp/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp index d04ad37..53fad10 100644 Binary files a/androidApp/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp and b/androidApp/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp differ diff --git a/androidApp/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp b/androidApp/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp index 4c4dbb8..b7a79cb 100644 Binary files a/androidApp/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp and b/androidApp/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp differ diff --git a/androidApp/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp b/androidApp/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp index 8db2b68..2591fdf 100644 Binary files a/androidApp/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp and b/androidApp/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp differ diff --git a/androidApp/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp b/androidApp/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp index 7dc4077..a3ce542 100644 Binary files a/androidApp/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp and b/androidApp/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp differ diff --git a/androidApp/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp b/androidApp/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp index cfd6fd3..fba761a 100644 Binary files a/androidApp/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp and b/androidApp/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp differ diff --git a/androidApp/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp b/androidApp/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp index aa8ef7e..52a6030 100644 Binary files a/androidApp/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp and b/androidApp/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp differ diff --git a/androidApp/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp b/androidApp/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp index 12f1447..86383ab 100644 Binary files a/androidApp/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp and b/androidApp/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp differ diff --git a/androidApp/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp b/androidApp/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp index e3d20ca..72d64e0 100644 Binary files a/androidApp/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp and b/androidApp/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp differ diff --git a/androidApp/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp b/androidApp/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp index cbce5a0..6a139b9 100644 Binary files a/androidApp/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp and b/androidApp/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp differ diff --git a/apps/desktop/assets/icon-256.png b/apps/desktop/assets/icon-256.png index f57a3c8..ee11d19 100644 Binary files a/apps/desktop/assets/icon-256.png and b/apps/desktop/assets/icon-256.png differ diff --git a/packaging/icons/hicolor/128x128/apps/io.github.vrubelroman.chessPenguin.png b/packaging/icons/hicolor/128x128/apps/io.github.vrubelroman.chessPenguin.png index 10e5626..0210536 100644 Binary files a/packaging/icons/hicolor/128x128/apps/io.github.vrubelroman.chessPenguin.png and b/packaging/icons/hicolor/128x128/apps/io.github.vrubelroman.chessPenguin.png differ diff --git a/packaging/icons/hicolor/16x16/apps/io.github.vrubelroman.chessPenguin.png b/packaging/icons/hicolor/16x16/apps/io.github.vrubelroman.chessPenguin.png index 03ed6d4..e2be9b0 100644 Binary files a/packaging/icons/hicolor/16x16/apps/io.github.vrubelroman.chessPenguin.png and b/packaging/icons/hicolor/16x16/apps/io.github.vrubelroman.chessPenguin.png differ diff --git a/packaging/icons/hicolor/24x24/apps/io.github.vrubelroman.chessPenguin.png b/packaging/icons/hicolor/24x24/apps/io.github.vrubelroman.chessPenguin.png index c78a0e9..a8e559a 100644 Binary files a/packaging/icons/hicolor/24x24/apps/io.github.vrubelroman.chessPenguin.png and b/packaging/icons/hicolor/24x24/apps/io.github.vrubelroman.chessPenguin.png differ diff --git a/packaging/icons/hicolor/256x256/apps/io.github.vrubelroman.chessPenguin.png b/packaging/icons/hicolor/256x256/apps/io.github.vrubelroman.chessPenguin.png index f57a3c8..ee11d19 100644 Binary files a/packaging/icons/hicolor/256x256/apps/io.github.vrubelroman.chessPenguin.png and b/packaging/icons/hicolor/256x256/apps/io.github.vrubelroman.chessPenguin.png differ diff --git a/packaging/icons/hicolor/32x32/apps/io.github.vrubelroman.chessPenguin.png b/packaging/icons/hicolor/32x32/apps/io.github.vrubelroman.chessPenguin.png index 8ec2d3c..528bb53 100644 Binary files a/packaging/icons/hicolor/32x32/apps/io.github.vrubelroman.chessPenguin.png and b/packaging/icons/hicolor/32x32/apps/io.github.vrubelroman.chessPenguin.png differ diff --git a/packaging/icons/hicolor/48x48/apps/io.github.vrubelroman.chessPenguin.png b/packaging/icons/hicolor/48x48/apps/io.github.vrubelroman.chessPenguin.png index 7aa4ede..c987484 100644 Binary files a/packaging/icons/hicolor/48x48/apps/io.github.vrubelroman.chessPenguin.png and b/packaging/icons/hicolor/48x48/apps/io.github.vrubelroman.chessPenguin.png differ diff --git a/packaging/icons/hicolor/512x512/apps/io.github.vrubelroman.chessPenguin.png b/packaging/icons/hicolor/512x512/apps/io.github.vrubelroman.chessPenguin.png index 8b5bb9a..0803d1f 100644 Binary files a/packaging/icons/hicolor/512x512/apps/io.github.vrubelroman.chessPenguin.png and b/packaging/icons/hicolor/512x512/apps/io.github.vrubelroman.chessPenguin.png differ diff --git a/packaging/icons/hicolor/64x64/apps/io.github.vrubelroman.chessPenguin.png b/packaging/icons/hicolor/64x64/apps/io.github.vrubelroman.chessPenguin.png index e710942..5f6b451 100644 Binary files a/packaging/icons/hicolor/64x64/apps/io.github.vrubelroman.chessPenguin.png and b/packaging/icons/hicolor/64x64/apps/io.github.vrubelroman.chessPenguin.png differ diff --git a/packaging/icons/make-icons.sh b/packaging/icons/make-icons.sh new file mode 100755 index 0000000..1256acd --- /dev/null +++ b/packaging/icons/make-icons.sh @@ -0,0 +1,55 @@ +#!/bin/sh +# Makes every icon of ChessPenguin from one picture (default icons/icon2.png): the Linux +# hicolor PNGs (also the macOS .icns and the packages take them), the window icon, the +# Windows .ico, the Android launcher icon (adaptive foreground and monochrome) and the +# site's icons. Needs ImageMagick 7 (`magick`). Run from the repository's root: +# packaging/icons/make-icons.sh [picture.png] +# The site's link preview (website/static/og-image.png) is made by website/shots/derive.py +# from the site's icon. +set -eu +src="${1:-icons/icon2.png}" +app_id=io.github.vrubelroman.chessPenguin +tmp="$(mktemp -d)" +trap 'rm -rf "$tmp"' EXIT + +# The picture without its empty border, centred on a square with a small margin. +magick "$src" -trim +repage -resize 940x940 -background none -gravity center \ + -extent 1024x1024 "$tmp/master.png" + +for s in 16 24 32 48 64 128 256 512; do + magick "$tmp/master.png" -filter Lanczos -resize "${s}x${s}" \ + "packaging/icons/hicolor/${s}x${s}/apps/${app_id}.png" +done +cp "packaging/icons/hicolor/256x256/apps/${app_id}.png" apps/desktop/assets/icon-256.png +magick "$tmp/master.png" -define icon:auto-resize=256,128,64,48,32,16 \ + packaging/windows/chesspenguin.ico + +# Android: the foreground of the adaptive icon is 108 dp, of which a circle of 66 dp is +# always seen: the picture fills 62 % of it. The monochrome one (themed icons) is one +# solid colour: everything but the white of the belly and face, which is cut out, so the +# face stays readable. +res=androidApp/app/src/main/res +magick "$tmp/master.png" -resize 635x635 -background none -gravity center \ + -extent 1024x1024 "$tmp/fg.png" +magick "$tmp/fg.png" -alpha extract -threshold 50% "$tmp/shape.png" +magick "$tmp/fg.png" -alpha off -colorspace Gray -threshold 78% -negate "$tmp/dark.png" +magick "$tmp/shape.png" "$tmp/dark.png" -compose Multiply -composite "$tmp/mono-alpha.png" +magick -size 1024x1024 xc:white "$tmp/mono-alpha.png" -alpha off \ + -compose CopyOpacity -composite "$tmp/mono.png" +for d in mdpi:108 hdpi:162 xhdpi:216 xxhdpi:324 xxxhdpi:432; do + dir="${d%%:*}"; px="${d#*:}" + magick "$tmp/fg.png" -filter Lanczos -resize "${px}x${px}" -quality 95 \ + "$res/mipmap-$dir/ic_launcher_foreground.webp" + magick "$tmp/mono.png" -filter Lanczos -resize "${px}x${px}" -quality 95 \ + "$res/mipmap-$dir/ic_launcher_monochrome.webp" +done + +# The site: tab icons, the header logo, the home screen icon of iOS (opaque, as iOS +# fills a transparent one with black). +img=website/static/img +for s in 16 32 64; do + magick "$tmp/master.png" -filter Lanczos -resize "${s}x${s}" "$img/icon-$s.png" +done +magick "$tmp/master.png" -resize 150x150 -background '#EAF2F9' -gravity center \ + -extent 180x180 -alpha remove "$img/icon-180.png" +echo "icons made from $src" diff --git a/packaging/windows/chesspenguin.ico b/packaging/windows/chesspenguin.ico index effb9b4..96ed9b5 100644 Binary files a/packaging/windows/chesspenguin.ico and b/packaging/windows/chesspenguin.ico differ diff --git a/website/shots/derive.py b/website/shots/derive.py index c7bde73..fb47175 100644 --- a/website/shots/derive.py +++ b/website/shots/derive.py @@ -53,12 +53,14 @@ def og_image(): for x in range(w): d.line([(x, 0), (x, h)], fill=max(0, min(255, int(255 * (1 - (x - 380) / 360))))) img.paste((22, 23, 24), mask=shade) - icon = Image.open(os.path.join(STATIC, "img", "icon-180.png")).convert("RGBA").resize((128, 128), Image.LANCZOS) + # The transparent icon (the site's 180 px one has a background for iOS). + icon_path = os.path.join(os.path.dirname(STATIC), "..", "packaging", "icons", "hicolor", "256x256", "apps", "io.github.vrubelroman.chessPenguin.png") + icon = Image.open(icon_path).convert("RGBA").resize((128, 128), Image.LANCZOS) img.paste(icon, (64, 120), icon) d = ImageDraw.Draw(img) d.text((64, 280), "ChessPenguin", font=font(True, 64), fill=(232, 232, 232)) d.text((64, 370), "Free chess database software", font=font(False, 34), fill=(163, 167, 173)) - d.text((64, 416), "for Windows, macOS and Linux", font=font(False, 34), fill=(163, 167, 173)) + d.text((64, 416), "for Windows, macOS, Linux and Android", font=font(False, 34), fill=(163, 167, 173)) img.save(os.path.join(STATIC, "og-image.png"), "PNG", optimize=True) print("og-image.png") diff --git a/website/static/img/icon-16.png b/website/static/img/icon-16.png index 03ed6d4..3fd23ab 100644 Binary files a/website/static/img/icon-16.png and b/website/static/img/icon-16.png differ diff --git a/website/static/img/icon-180.png b/website/static/img/icon-180.png index 7f18b49..b07ad32 100644 Binary files a/website/static/img/icon-180.png and b/website/static/img/icon-180.png differ diff --git a/website/static/img/icon-32.png b/website/static/img/icon-32.png index 8ec2d3c..f48b91b 100644 Binary files a/website/static/img/icon-32.png and b/website/static/img/icon-32.png differ diff --git a/website/static/img/icon-64.png b/website/static/img/icon-64.png index e710942..24d8e1e 100644 Binary files a/website/static/img/icon-64.png and b/website/static/img/icon-64.png differ diff --git a/website/static/og-image.png b/website/static/og-image.png index 261d5e8..448a486 100644 Binary files a/website/static/og-image.png and b/website/static/og-image.png differ