This website requires JavaScript.
Explore
Help
Sign In
okooooooo
/
magpie
Watch
1
Star
0
Fork
0
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
181eefdc319d643ab577b27d004fd01ec61be134
magpie
/
internal
/
settings
T
History
yetone
77a545e691
gui: the Update button can be skipped for a version or turned off (Wang Hsiaohi on Discord) — the purple ↑ Update in the panel's header showed whenever a version was out, with nothing to hide it. A × on hover (or a right-click) hides it until a newer version, and Settings → About has an Update button On/Off row with Show again for a skipped version. Only the button hides: magpie still downloads and installs on quit, and Settings → Version still offers the restart. TestUpdateSkip, TestSettingsSaveKeepsWhatItDoesNotSend and update-hide.test.cjs (Chromium, WebKit, en/zh, panel and window) fail without the change.
2026-10-01 11:46:38 +08:00
..
migrate.go
Rename dial to magpie, with a magpie for a logo
2026-09-23 23:55:11 +08:00
settings_test.go
usage: a notification when a window is nearly used up or a balance runs low (
#368
) — Settings has Usage alert (off, or a share of 1–100%, 80 by default) and Low balance alert (off, or an amount, 5 by default), and magpie quota alert sets them from the command line. Each subscription or plan window, other than one set aside, is told once a run when it reaches the share, and a balance once until topped up past the amount again; what was said is kept, so a restart doesn't say it again, and a failed or stale reading neither alerts nor clears. The system's notifications are started only when first needed, so a Mac build that can't have them or a Linux desktop without a daemon still starts, and Settings says when they are refused or unavailable; a click opens the Usage page. TestDueAlerts and friends, TestAlertText and usage-alert.test.cjs fail without the change.
2026-10-01 04:16:28 +08:00
settings.go
gui: the Update button can be skipped for a version or turned off (Wang Hsiaohi on Discord) — the purple ↑ Update in the panel's header showed whenever a version was out, with nothing to hide it. A × on hover (or a right-click) hides it until a newer version, and Settings → About has an Update button On/Off row with Show again for a skipped version. Only the button hides: magpie still downloads and installs on quit, and Settings → Version still offers the restart. TestUpdateSkip, TestSettingsSaveKeepsWhatItDoesNotSend and update-hide.test.cjs (Chromium, WebKit, en/zh, panel and window) fail without the change.
2026-10-01 11:46:38 +08:00
trayusages_test.go
tray: the menu bar shows several subscriptions' usage side by side (KevinXC on Discord) — Settings → Usage in the menu bar picked one card; its menu now ticks any number (kept open while ticking, saved once when it closes, Off unticks all, a ticked card that has gone stays listed to untick) and the pill says "3 subscriptions". settings.TrayUsages keeps them in order; a file with only the older trayUsage shows that one, and trayUsage is still written as the first for an older magpie. On the Mac the bird and a cell per card are drawn as one image by AppKit on the status item's button: the card's logo (a black glyph tinted in the menu bar's text colour, a coloured one as it is, the name's letter in a ring when there is none) and its two windows stacked, "42%" over "18%", in the bar's colour light or dark and sharp at any scale; the bird's flap goes through it. Arc flags run into numbers (Codex's logo) are spaced out for AppKit's SVG reader. A row longer than 10 characters (a plan's balance read from its page) is cut with an ellipsis in the bar and whole in the tooltip. Windows and Linux show the cards as text, " | " between them. TestTrayUsageCells, TestSVGArcFlags, TestTrayImage (darwin, renders 0-3 cards light and dark at 2x), TestTrayUsagesMigrate and tray-usages.test.cjs (Chromium, WebKit, en/zh) are new. go vet, go build (darwin GUI), go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./..., go test ./internal/gui pass; tray-usages, settings-groups, panel-*, click-scroll, old-webkit pass. Not seen in a live menu bar.
2026-09-30 19:45:44 +08:00