Files
plugins/packages/day-card/package.json
T
yetone 3632d53be7 day-card 0.3.2: an app's picture icon prints in greys, not as a black block
ZacharyZhang on X: Cindy's logo printed as a black rounded square. Its
icon is a full-colour illustration on a rounded tile with clear corners.
drawIcon took anything under 80% solid and without a light ground for a
mark and filled its shape with the ink, so the whole tile went black.
mlx-serve (a jellyfish on a dark tile) and mothx (a glyph on a pink
disc) did the same.

Now an icon that fills its own box (a square, rounded or not, or a disc:
at least 75% of its bounding box, and the box at least 40% of the icon)
is a tile. A tile with no light ground prints in greys from its own
darkest tone (3rd percentile) to its lightest (97th), ink to paper; a
tile of one flat tone still takes the old near-white threshold. Marks and
pictures on a light ground print as before.

Run: a harness drew 18 icons (magpie's PNG agent icons, several colour
SVG logos and the bundled Amp mark) with the old and new drawIcon at 18px
x3 in Chromium and WebKit (Playwright 1.62.0, wsl-run on magpie-desktop),
no page errors. Changed: cindy, mlx-serve, mothx now show their picture;
atomcode is a grey tile instead of a black one. Every other icon is the
same as before. bun test packages/day-card: 18 pass, 0 fail.
Not tried: the real magpie app's webviews; crush's pixel heart still
prints as a ragged silhouette, as before.
2026-11-12 14:18:17 +08:00

20 lines
900 B
JSON

{
"name": "@magpie-community/page-day-card",
"version": "0.3.2",
"description": "A page in magpie's window that draws a day, week, month or all of your AI usage as a card: tokens, cost, each agent and its models, your streak and your average day. Copy it as a picture or save it as a PNG",
"files": ["page", "README.md", "NOTICE"],
"keywords": ["magpie", "magpie-page", "usage", "tokens", "cost", "card"],
"license": "MIT",
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/day-card" },
"engines": { "magpie": ">=0.1.3427" },
"magpie": {
"page": {
"title": "Day card",
"titles": { "zh": "每日用量卡", "zh-TW": "每日用量卡", "ja": "1日の使用量カード", "de": "Tageskarte" },
"file": "page/index.html",
"icon": "page/icon.svg"
},
"permissions": ["usage:day"]
}
}