Skip to content

fix: ka icon — dark background so letters are actually visible#9

Merged
konnatoad merged 4 commits into
mainfrom
fix/ka-icon
May 25, 2026
Merged

fix: ka icon — dark background so letters are actually visible#9
konnatoad merged 4 commits into
mainfrom
fix/ka-icon

Conversation

@konnatoad

Copy link
Copy Markdown
Owner

Problem

The icon background and the letter fill were both in the same accent-blue family. At 16–32 px (Windows taskbar), they blended into a featureless blue square — no letters visible.

Fix

  • Background → dark blue-black rgb(12, 12, 18)
  • Letters → accent blue rgb(99, 155, 255)
  • Canvas size → 64 × 64 px (was 48 × 48)
  • a-bowl opening angle tightened to 0.42 rad so the bowl reads clearly as "a" at small sizes

konna and others added 4 commits May 25, 2026 03:12
Background was the same accent blue as the letters — at small sizes
(16-32 px taskbar) the icon rendered as a featureless blue square.

Switch to dark bg (rgb 12,12,18) with accent-blue letters (99,155,255),
bump canvas to 64 px, and tighten the opening angle on the a-bowl
so both glyphs read cleanly at all Windows icon sizes.
…parent interior

Both smoothstep calls had edge0/edge1 reversed:
- smoothstep(0.7, -0.7, bg_d) returned 0 inside the rounded rect
  (transparent) and 1 outside (opaque corners) — completely backwards.
- smoothstep(sw+0.7, sw-0.7, dist) returned 0 on stroke centers and 1
  far from strokes — letters were invisible on the background.

Result was a blank white square in every Windows context.

Fix: smoothstep(-0.7, 0.7, bg_d) and smoothstep(sw-0.7, sw+0.7, dist)
in both icon.rs and build.rs. Also switch build.rs exe icon to the same
dark-bg + accent-blue style, and add 24/64 px to the ico size table.
Previous ka_alpha had sw=11.5% of size causing the 'a' bowl's stroke
extent to overlap the K arm by ~3px at 64px and worse at smaller sizes.
Letters visually merged into an unreadable blob.

New design uses sw=6.2% with analytically verified 2px gap at 64px and
flush-but-non-overlapping at 32px. The 'a' uses a simpler open-circle
bowl (angle < 0.28 rad opening) + full-height stem tangent to the bowl.
@konnatoad konnatoad merged commit 8d884ae into main May 25, 2026
@konnatoad konnatoad deleted the fix/ka-icon branch May 25, 2026 00:40
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