testsAndMisc/python_pkg/app_icons/_apps_more.py
Krzysztof kuhy Rudnicki 35b497b409
Some checks failed
dependency freshness / dependencies on newest stable (push) Has been cancelled
md-naming / markdown naming convention (push) Has been cancelled
Pre-commit checks / pre-commit (${{ matrix.group }}) (mypy, mypy) (push) Has been cancelled
Pre-commit checks / pre-commit (${{ matrix.group }}) (pylint, pylint) (push) Has been cancelled
Pre-commit checks / pre-commit (${{ matrix.group }}) (rest, ) (push) Has been cancelled
Pre-commit checks / pre-commit (${{ matrix.group }}) (shellcheck, shellcheck) (push) Has been cancelled
Python tests / test (push) Has been cancelled
repo-contract / repo contract (push) Has been cancelled
Shell tests / shell-tests (push) Has been cancelled
Shell tests / lib-tests (push) Has been cancelled
Shell tests / arch-tests (push) Has been cancelled
app_icons: fit every glyph to one ink circle, launcher-name rules
- fit.py: centre each glyph and scale it so its furthest ink sits at
  INK_RADIUS = 340px, compensating the unscaled stroke width
- style.py: INK_RADIUS plus INK_RADIUS_DP for vector-drawable consumers
- labels.py/_label_widths.py: LABELS registry; names start with a
  capital, ASCII letters only, <= 10 chars, <= 522 wide in the Pixel
  launcher font
- drop centre_offset, safe_box_overflow and the CLI safe-box warning
- add prompt-bubble (sufler) and camera (macro_cam) glyphs and apps

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012kQ5PCKqBHAkAVkPSvp6dk
2026-10-23 14:35:00 +02:00

56 lines
1.5 KiB
Python

"""Later registry entries, split out of :mod:`apps` for the 250-line cap.
Which file an entry lives in carries no meaning; :data:`apps.APPS` merges both.
"""
from __future__ import annotations
from pathlib import Path
from typing import Final
from python_pkg.app_icons._app_icon import AppIcon
_HOME = Path.home()
MORE_APPS: Final[tuple[AppIcon, ...]] = (
AppIcon(
key="tutor",
repo=_HOME / "src/tutor/app",
accent="#B8862E",
glyph="lightbulb",
icon_name="tutor",
# Desktop is the web build in a Chrome --app window, as for todo
# and home_inventory, whose desktop entries use the hicolor set.
linux=True,
),
AppIcon(
key="tunedeck",
repo=_HOME / "src/tunedeck",
accent="#B8862E",
glyph="headphones",
icon_name="tunedeck",
# Desktop is a web build behind a local wrapper in a Chrome --app
# window (see the repo's SPEC.md), so it gets the hicolor set too.
linux=True,
),
AppIcon(
key="sufler",
repo=_HOME / "src/sufler",
accent="#B8862E",
glyph="prompt-bubble",
icon_name="sufler",
# packaging/sufler.desktop (Icon=sufler) installs the hicolor set
# from packaging/icons via the PKGBUILD.
linux=True,
),
AppIcon(
key="macro_cam",
repo=_HOME / "src/macro-cam",
accent="#B8862E",
glyph="camera",
icon_name="macro-cam",
# Android only: no linux/ target and no desktop entry.
linux=False,
),
)