testsAndMisc/python_pkg/app_icons/__init__.py
Krzysztof kuhy Rudnicki 27f44cad4b Add shared launcher-icon generator for the Flutter apps
Every Flutter app still shipped the stock Flutter "beach" launcher icon, and
none had an adaptive-icon descriptor at all. Rather than hand-drawing five
one-off icons, define the family once and let each app contribute only an
accent colour and a glyph.

The family: a charcoal #1B1D21 field carrying one glyph in that app's own
theme seed colour, at a single stroke weight. Glyphs are optically centred
automatically - render.centre_offset rasterises a glyph alone, measures its
ink box, and translates (never scales) the fragment, so a row of icons lines
up while every icon keeps the exact family stroke weight.

safe_box_overflow warns when a glyph exceeds the 560px adaptive-icon safe
box; it caught three real overflows that a launcher mask would have clipped.

The registry points dufs_client at ~/dufs-cloud/app: ~/dufs_client was a
stale, remote-less checkout with an identical package name, since deleted.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-19 16:55:48 +02:00

11 lines
430 B
Python

"""Shared launcher-icon generator for kuhy's Flutter/Dart apps.
Every app icon in the family is built from the same template: a charcoal
rounded field with a single accent-coloured glyph, optically centred on the
canvas so a row of icons lines up. See :mod:`python_pkg.app_icons.style` for
the numbers that define the family and :mod:`python_pkg.app_icons.glyphs` for
the per-app artwork.
"""
from __future__ import annotations