Commit Graph

4 Commits (main)

Author SHA1 Message Date
mula.liu 706ff6fb26 fix(icons): orange ground and white mark, as the product has always been
Reported: "你改的标注应用图标不对啊,我之前是橙底、白线的风格(参考 squid 的
图标)."

The previous commit inverted the figure/ground relationship. Chasing
consistency with the alpha-only tray mark, the app tile went to espresso
with a warm mark — technically consistent geometry, and it passed every
contrast check I ran, but those checks were pointed at the wrong axis.
Consistency has two of them here, geometry and light/dark, and the one a
returning user actually recognises is "orange tile".

Now the app icon is literally the tray mark with a colour turned on:
`#FF6B35` ground, which is the orange this project's own master already
carried, and `#FFF4EA` mark, the cream the app's panels are drawn on. The
plus stays a punched hole showing the ground rather than a third colour,
so both icons are one drawing on two different grounds. Two colours also
removes the failure mode the last version needed a rule to defend.

Tray PNG is byte-identical again; the .ico ladder (16/24/32/48/64/256) and
.icns entry set are unchanged, and every tracked PNG still matches its
committed dimensions.

Co-Authored-By: Codex <noreply@openai.com>
2026-11-19 21:49:05 +08:00
mula.liu 8a4c9d2b0d feat(icons): one mark, drawn twice — tinted for the shell, coloured for the dock
Reported: "应用的图标问题,要和当前的单色图标保持一致设计" — and clarified:
consistency of *design*, but colour in the panel and the system.

So consistency comes from geometry and filling rules, not from the palette.
`scripts/build-icons.py` now defines the ring once (OUTER/INNER/HUB/GAP/
PLUS_ARM/PLUS_BAR) and emits both marks from it: the tray keeps the alpha-only
flat form because the shell tints it, and the app icon keeps the same figure
in three flat colours drawn from the UI itself — `#FFB25C` wedges and the
`#f04f24` accent the app's own buttons use, on an espresso tile that is also
what shows through the plus punched out of the hub.

What the old icon actually got wrong was not that it was colourful. It was a
gradient tile with a radial shine, a drop shadow and six pastel wedge tints,
which is a different visual language from a crisp flat mark no matter what
hue it wears. Hence the rule: at most three flat colours, and no gradient,
gloss, shadow or per-wedge tint.

The menu-bar icon is byte-for-byte unchanged; the generator reproduces the
committed PNG exactly, so this commit alters only the coloured surfaces. The
hub-inside-a-lighter-ring orientation is deliberately not inverted, because
flipping which end of the mark is dark would read to existing users as a
different product rather than a redraw.

`tauri icon` regenerates the whole tracked set, and the .icns entry set and
.ico size ladder come out identical to the committed ones, so nothing in the
packaging contracts moves.

Co-Authored-By: Codex <noreply@openai.com>
2026-11-19 21:27:01 +08:00
mula.liu 287b3af09d fix(tray): let the system draw a black/white mark, not the colour wheel
Reported: "收到系统小图标时采用黑/白单色图标." The tray was handed
`app.default_window_icon()`, the 512 px gradient wheel, and `tray-icon`
scales whatever it is given to 18 pt: on the menu bar and in the Windows
notification area that is a blob, not a mark.

The new icon is drawn flat and alpha-only by `scripts/build-tray-icon.py`,
in the shape of the ring the app itself paints so the two read as one
product, and `icon_as_template` lets macOS tint it black or white per the
menu bar. Windows has no tinting to ask of, so it gets the same glyph at a
size it can actually render.

Co-Authored-By: Codex <noreply@openai.com>
2026-11-19 17:45:07 +08:00
Shift 0eb75595c6 baseline: capture workspace state (bug fixes in progress) 2026-10-21 08:54:54 +08:00