Skip to content

refactor(logo): rebuild M2 mark in refined brand green from a single source#27

Merged
oahsiao merged 1 commit into
mainfrom
feat/green-m2-logo
Jun 21, 2026
Merged

refactor(logo): rebuild M2 mark in refined brand green from a single source#27
oahsiao merged 1 commit into
mainfrom
feat/green-m2-logo

Conversation

@oahsiao

@oahsiao oahsiao commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Rebuilds the M2 brand mark in a refined, vivid green and regenerates every
logo asset from a single source of truth, so the in-app mark and the Windows
app/installer/taskbar icon are pixel- and color-consistent.

The previous M2_SCOUT.ico was a dull web-green (#008800) and carried stray
opaque white pixels. It is replaced with a clean, single brand green
(#16A34A) across all sizes.

What changed

File Change
scripts/build_logo.py New dependency-free logo builder (Pillow only). Extracts the exact M2 path from the in-app gh-icon SVG in index.html, reproduces the SVG even-odd fill (ring + monogram holes) by XOR-ing each sub-path mask, renders at 4× supersample, and emits SVG + PNG + multi-size ICO. Brand green is defined once (BRAND_GREEN = #16A34A).
LOGO/M2_SCOUT.ico Rebuilt in #16A34A. All 6 sizes (16/32/48/64/128/256), single clean green, no stray white.
LOGO/M2_SCOUT.svg New vector source (green fill, even-odd).
LOGO/M2_SCOUT.png New 256px preview.
src/renderer/css/style.css In-app gh-icon now uses the fixed brand green (#16A34A, hover #22C55E) instead of theme colors, so it always matches the app icon.

Consistency

All three rendered assets (in-app SVG, .ico, .png) derive from the same M2
path and the same green constant. To re-color, run:

python scripts/build_logo.py #RRGGBB

and update the two #16A34A / #22C55E literals in style.css.

Testing

  • python scripts/build_logo.py → builds SVG/PNG/ICO; ICO verified to contain
    all 6 sizes with #16a34a as the only opaque color (no stray white).
  • 32px frame checked for legibility.
  • npm test → 5 pass / 0 fail (includes the gh-icon inline-SVG check).

Notes

  • Brand green chosen: #16A34A (reads well on light and dark taskbars).
    Easy to change via the script + two CSS literals.
  • README.md only references LOGO/M2_SCOUT.ico (path unchanged), so no doc
    edits were needed.

…source

Regenerate every logo asset from one source of truth so the in-app mark and
the Windows app icon are pixel- and color-consistent.

- scripts/build_logo.py: dependency-free (Pillow only) logo builder. Extracts
  the exact M2 path from the in-app gh-icon SVG in index.html, reproduces the
  SVG even-odd fill (ring + monogram holes) by XOR-ing each sub-path mask,
  renders at 4x supersample, and emits SVG + PNG + multi-size ICO. Brand green
  is defined once (BRAND_GREEN = #16A34A) and overridable via CLI arg.
- LOGO/M2_SCOUT.ico: rebuilt in #16A34A. Removes the old dull #008800 and the
  stray white pixels; now a single clean brand green across all 6 sizes.
- LOGO/M2_SCOUT.svg, LOGO/M2_SCOUT.png: new vector source + 256px preview.
- style.css: the in-app gh-icon now uses the fixed brand green (#16A34A, hover
  #22C55E) instead of theme colors, so it always matches the app icon.
@oahsiao oahsiao merged commit e8f80f0 into main Jun 21, 2026
3 checks passed
@oahsiao oahsiao mentioned this pull request Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant