Draw the tray icon from the real mark, and hand macOS a template #8
No reviewers
Labels
No labels
⏳in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Grey.ooo/someones.computer_tray!8
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/theme-aware-icon"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #576.
The icon was a placeholder, and a fixed-colour one. Menu bars are themed and mostly monochrome — every other item up there is a template image that inverts with the bar — so a coloured mark sat in that row looking like a sticker.
What changed
Both icons are rendered from the brand's solo mark, the form docs/brand.md reserves for the sub-32px band a tray icon lives in, with the geometry copied from
templates/_mark.html.twigin the platform repo:icon.pngicon-template.pngSetTemplateIcon(template, regular)picks per platform: macOS takes the template and redraws it in the bar's own colour, black on light and white on dark; Linux and Windows fall through to the coloured one, since StatusNotifierItem hosts do not recolour and the Windows tray's light/dark setting is a per-user registry value rather than something the icon is asked to follow.hack/icons/render.shrasterises from an image rather than expecting librsvg on PATH — same reasoning ashack/lint.sh: nobody installs anything, and two people regenerating get identical bytes.Deliberately not here
go build,go vet,go test,hack/lint.shandhack/coverage.shall clean; captures regenerated.