From 05d46f42e5019eb970f9efef84e5b614b63cf0a2 Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 17 Nov 2026 21:06:02 +0800 Subject: [PATCH] gui: Claude's menu bar cards can show Anthropic's A\ mark (qingnianxiaozhe on X) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit qingnianxiaozhe asked for Anthropic's A\ in the menu bar in place of Claude's logo. Settings › Usage › Menu bar Claude logo (Mac only, shown while logos are on and a ticked card is Claude's, under the magpie icon row) picks Claude's logo (the default, unchanged) or the A\. - settings.TrayAnthropicMark, kept per computer through KeepOwn like the other menu bar choices; settingsapi.Keys saves it; a change wakes the menu bar (onTrayUsage). - trayAnthropic swaps the icon of cells whose card logo is claude-color or a plugin's claudecode-color (trayCell.Logo) for trayAnthropicMark, an SVG drawn here (two paths, no other app's bytes), and marks it mono so mpGlyph paints it in the bar's text colour. Menu bar logos off wins. - The row's code is trayClaudeRow in traywindows.js (lazy). app.js only adds the key to prefsKeep; to stay in TestCoreScriptBudget without a raise, renderTrayUsage's no-card branch moved into trayWindowsRow, which now hides Windows' figure row itself when no card is ticked. - en, zh, zh-TW, ja, de strings; docs/subsystems/gui-shell.md bullet. Tests: TestTrayAnthropicMark (which cells change, input not mutated, plain cells stay plain), TestTrayAnthropicMarkSVG, TestTrayAnthropicMarkSaved (POST as the page does, saved and woken once per change), TestTrayImageAnthropicMark (darwin: renders the real AppKit image light and dark, the logo rect differs, the rest of the image is identical), tray-anthropic-mark.test.cjs (five languages, 900 and 400px, Chromium and WebKit: row, two logos, default Claude, A\ posts true, another setting's save keeps it, back to false, no row with no Claude card / logos off / no card / Win32, no page errors, no sideways scroll). The GUI test waits for the redraw after a save rather than a fixed time: a click on a control drawn before the save lands sends the old value back (any setting, not new here). Broken by hand: trayAnthropicMark taken out of prefsKeep turns the GUI test red ("a save of another setting keeps the A\") in all languages; taken out of settingsapi.Keys turns TestTrayAnthropicMarkSaved red. Run: - mica, at 2fa9295ed (this tree less the doc bullet): go test -timeout 45m -count=1 ./... : 103 ok, exit 0. - mote, at this head's code: gofmt -l clean; go vet ./...; GOOS=linux go vet -tags nogui ./...; GOOS=windows go vet ./... ok; internal/settings, settingsapi, davsync ok; internal/gui -run "Tray|CoreScript|Budget|EveryRoute" ok. - mote GUI, Chromium and WebKit, the 20 files that touch the menu bar rows, Settings search or prefs (tray-*, settings-search, side-effort, searcher-pick, quota-pace, proto-menu-overflow, classify/image-timeout, i18n-*): tray-bird first went red (its row must follow the logos row), so the Claude row sits after the magpie icon row. side-effort is 5/5 red in both engines on origin/main a922e3864 too (#6353). - After rebasing on a922e3864, at this head: gofmt clean; go vet internal/gui, settings; go test -run Tray|CoreScript|Budget|EveryRoute| Settings internal/gui, settings, settingsapi ok; tray-anthropic-mark, tray-bird, tray-logos, tray-windows, tray-usages, settings-search 51/51 in Chromium and 51/51 in WebKit. - i18n-keys: "a plugin's words are its own" red, the same on origin/main (routing's ", with an image" in claude_image_budget_test.go), #6877. - Real AppKit renders of the menu bar image (trayImagePNG, light and dark) looked at: "A\ 42%/18%" reads at 14pt. Not run: the whole GUI suite (mote and mica each had another session's full GUI suite running); the files above are the ones this can reach. Not tried: a screenshot of the live menu bar of a built app. --- docs/subsystems/gui-shell.md | 1 + internal/davsync/davsync_test.go | 4 +- internal/gui/api.go | 4 +- internal/gui/assets/app.css | 1 + internal/gui/assets/app.js | 7 +- internal/gui/assets/i18n.js | 8 + internal/gui/assets/index.html | 4 + internal/gui/assets/traywindows.js | 34 +++- .../gui/tests/tray-anthropic-mark.test.cjs | 181 ++++++++++++++++++ .../gui/trayimage_anthropic_darwin_test.go | 66 +++++++ internal/gui/trayusage.go | 26 +++ internal/gui/trayusage_anthropic_test.go | 129 +++++++++++++ internal/gui/trayusage_tray.go | 2 + internal/settings/settings.go | 6 +- internal/settingsapi/settingsapi.go | 2 +- 15 files changed, 463 insertions(+), 12 deletions(-) create mode 100644 internal/gui/tests/tray-anthropic-mark.test.cjs create mode 100644 internal/gui/trayimage_anthropic_darwin_test.go create mode 100644 internal/gui/trayusage_anthropic_test.go diff --git a/docs/subsystems/gui-shell.md b/docs/subsystems/gui-shell.md index fa5570dc0..2ec16fdf6 100644 --- a/docs/subsystems/gui-shell.md +++ b/docs/subsystems/gui-shell.md @@ -790,6 +790,7 @@ covers it in both engines, every language and a narrow window. - The tray's icon is the bird alone where the bar's other icons are glyphs: the Mac's menu bar takes `tray.png` as a template image, and a Linux bar (StatusNotifierItem `IconPixmap`) gets the same silhouette in one colour on transparency (`trayIconFor`, `linuxTrayIcon` in [`trayglyph.go`](../../internal/gui/trayglyph.go)), so a bar that tints its icons by their alpha tints the bird, not a tile (ylorn on Discord). A bar that doesn't tint shows it light, or dark when the portal's `org.freedesktop.appearance` `color-scheme` prefers light (`traySchemeLight`), and it is drawn again when that changes (`watchTrayScheme`). No `IconName` is set: a host that found a `-symbolic` name and drew it untinted would show a black bird on a dark bar, with no pixmap to fall back on. Windows' tray keeps the app's coloured icon, unless a card is in the menu bar: Windows' notification area shows no text beside an icon, so the icon itself is the first card's figure (Benjaminliang_1 on X; `trayIconFigure`, `trayNumberIcon` in [`traynumber.go`](../../internal/gui/traynumber.go)). It is the first row of the first card whose first row is a percentage, used or left as Allowance display has it, through *Menu bar windows*' pick, its digits alone, drawn in Segoe UI Semibold (Go's bold where the font can't be read) at `SM_CXSMICON`, white on a dark taskbar and near black on a light one, as tall as fits with a pixel above and below, centred by its ink, and three digits narrowed into the square. A balance or magpie's totals are skipped for the next card; with none the icon is the bird. It is drawn again when the figure, the icon size or the taskbar's theme changes (`SystemThemeChanged` wakes the loop); the tooltip still says every card. Settings › *Tray icon number* (`settings.TrayNoNumber`, Windows' alone, on by default) keeps the bird when off. One icon is set for the current theme, not a light and a dark one: Wails' Windows tray shares one handle between them. Linux keeps its label and tooltip; the Mac its cells. See `TestTrayIconFigure`, `TestTrayNumberIcon` and `tray-windows.test.cjs`. With no cards in the menu bar the tooltip is magpie over today's total (`trayIdleTip`: every token, split into input, output and cache as the today card's tooltip is, then the cost and the requests), brought up to date with the cards' refresh; the tray's menu stays Open, the version and Quit. Wails sets the tooltip only on Windows: on Linux `setTrayTip` sets the StatusNotifierItem's `ToolTip` and sends `NewToolTip` ([`traytip_linux.go`](../../internal/gui/traytip_linux.go)), and on the Mac it is the status item's button's `toolTip` (`trayTipNative` in [`trayimage_darwin.go`](../../internal/gui/trayimage_darwin.go); NextCommit on Discord: no hover there showed anything). See `TestTrayIconPerOS`, `TestTrayIdleTip` and `TestMacTrayTipIsSet`. Every tooltip, the idle one, magpie's totals' and each card's (its use or what is left, the pace, when it resets, "as of …"), is in magpie's language, as the tray menu is: `watchTrayUsage` passes `trayLang(settings.Lang, systemLang)` to `trayCardsView`, `trayUsageCards` and `trayIdleTip`, whose words are in `trayWords` beside the menu's, and a change of language in Settings refreshes it at once (`onTrayUsage`). A window's name and an error are the card's own (yi_time on Discord: English on a Windows magpie set to Chinese; `TestTrayTooltipFollowsMagpiesLanguage`). - A window's Pace is a number on its card's reset line (fflake33 on Discord): the share used less the share of the window gone by, in points, "Pace +12%" over an even pace and "−8%" under it, turned with the meter when it shows what is left, amber while more is used than an even pace would have (`quotaPace`, `paceLine`). The window's start is the gateway's, `startsAt` from `provider.WithWindowStarts` (its reset less its span, `QuotaWindow.Bounds`); a window whose span isn't known, with no limit, or a past cycle has none. Settings › *Menu bar pace* (`settings.TrayPace`, off by default, hidden on Windows, whose tray shows no text but the first card's figure as its icon) puts the same number beside each figure in the menu bar and in its tooltip (`trayPace`, `QuotaWindow.Pace`). See `TestWindowPace`, `TestTrayUsagePace` and `quota-pace.test.cjs`. - Settings › *Menu bar windows* (`settings.TrayWindows`, StrikingRaw on X) picks which of a subscription's windows its menu bar card shows, keyed by provider id (every account of it, the in-use `|*` card too) and by window kind, not position: `trayWindowKind` names a window by its span ("5h", "1d", "7d", "month", "15m"), by `name:` its name when the span isn't known. Unset shows every window, as before; a pick none of whose kinds the card still has shows every window again (`trayShownKinds`), never an empty card. Only the bar's rows, the Linux label and Windows' icon figure are filtered; the tooltip still says every window. Every window shown is drawn, not the first two (jen_celeus on X: Antigravity's four windows, two in the bar): a card with more than two has them in columns of two stacked rows, `mpColGap` apart, the shortest windows in the first column, a third alone on its column's top line (`mpRows`, `TestTrayImageColumns`, `TestTrayEveryWindow`); the Linux label lists them all. One row draws in the menu bar's own font (13pt regular), two or more stacked rows in 10pt regular, both with digits of one width (`mpRowFont`, `TestTrayRowFont`; qingnianxiaozhe on X found the old 9.5pt semibold and 11pt medium heavier than Surge's and iStat Menus' figures beside them). The GUI learns the kinds from `trayKind` on `/api/usage/quotas` (`withTrayKinds`; model and aside windows get none). The row lists a pill per ticked subscription with two or more kinds, opening the app's menu (All windows, then each kind), shown on Windows too, where the first card's pick decides the tray icon's figure; its code is in `traywindows.js`, imported when Settings draws ticked cards. Per computer through `KeepOwn`. See `TestTrayWindowsPicked`, `TestTrayWindowsKept` and `tray-windows.test.cjs`. +- Settings › *Menu bar Claude logo* (`settings.TrayAnthropicMark`, the Mac's alone, off by default; qingnianxiaozhe on X) draws Claude's cards in the menu bar with Anthropic's A\ mark in place of Claude's logo. `trayAnthropic` swaps a cell's icon when its card's logo is Claude's (`claude-color`, or a plugin's `claudecode-color`: `trayClaudeLogos`, kept as `trayCell.Logo`) for `trayAnthropicMark`, an SVG magpie draws itself, and marks it mono, so `mpGlyph` paints it in the bar's text colour like the other glyphs. *Menu bar logos* off wins: plain cells get no logo. The row shows on a Mac while logos are on and a ticked card is Claude's (a `claude` provider before the cards are read), two logos to pick from; its code is `trayClaudeRow` in `traywindows.js`. A change wakes the menu bar (`onTrayUsage`). Per computer through `KeepOwn`. See `TestTrayAnthropicMark`, `TestTrayAnthropicMarkSaved`, `TestTrayImageAnthropicMark` and `tray-anthropic-mark.test.cjs`. - In Usage → Allowances, Trends → Cycle offers each account's own recorded cycle menu beside its curve (`quotaCurve`, `quotaRecordedCycles` in [`app.js`](../../internal/gui/assets/app.js)). The longest window (usually weekly) owns the menu; shorter windows are drawn over the selected dates with their own reset breaks. `/api/usage/quotas/history?days=45` supplies all retained readings, including remote cards. Completed cycles come from observed boundaries, not seven-day arithmetic; an early reset ends the previous cycle at the vendor's new start if it fits between readings, otherwise at the first new reading. Each menu option gives its observed duration, so an early reset is not labelled as a full seven days. The selected meters, plot, legend, tooltip and dashed pace use that cycle's last readings, never today's percentages. A window without a reading in the selected interval says so instead of showing a current value. A local account's past cycle asks `/api/usage/quotas/history/holds?provider=&user=&from=&to=` once per selection (`quotaCycleHoldsOf`), which asks no vendor (#2009, NorethSea): `HistoricalWindowHolds` in [`window_holds_history.go`](../../internal/usage/window_holds_history.go) reckons each window's whole at its own last reading in that cycle, from the request log up to that reading, so the 5-hour figure is the cycle's last 5-hour window, never its short windows added up. Its tooltip names that window's start and the reading's time. It shows "Loading…" until the answer comes. A window it can't reckon says "not enough data" with the reason, as a current card does; a reply that comes after another cycle was picked is dropped, and a card's Refresh or an asked read reckons again. Historical meters show the cycle end and sampling time; current account actions, balances and policies are left out until returning to the current view. Accounts are independent, and a selection survives card refreshes in the same page. Trends → 2 days temporarily shows recent readings; Off removes the curves; the tray always shows its current cycle. See `quota-curve.test.cjs` and the [history limits and reset inference](providers-accounts.md#constraints-and-failure-behavior). - The Usage page's cards are packed into columns, never all stretched to a row's height (`packUsage`, #860): each card in that order goes to the leftmost column that ends highest, on 1px grid rows, so short cards stack beside a tall one. Every card is as tall as what it holds, the last in a column too: ikunbots on X had each column's last reach down to the tallest's end, which left a card with no windows (OpenCode Zen) as tall as Claude's beside it, mostly empty, and jen_celeus on X asked for cards as tall as their content. A head with nothing under it keeps no margin below. The page's order (DOM, dragging, Alt+arrows) stays `UsageOrder`. The column count is the most 260px columns that fit, or one fewer when that leaves much less empty room; it is chosen again only when the cards change or the width fits another number of columns, so a card opened or folded stays where it is, even as the scrollbar comes in. See `usage-pack.test.cjs`. - The Providers page has a search box over its list (#1614, `findProviders` in [`app.js`](../../internal/gui/assets/app.js)): the words typed keep the rows, on and off, whose text or data say them all: name, id, preset, addresses, every model's id and name, the account's user and plan and each login's, account names and key names. The Turned off fold stays open while searching; Escape or clearing the box shows every row and the fold as it was. A row that is on reorders by dragging its logo, Alt+↑/↓, Alt+Shift+↑/↓ (top, bottom) or its right-click menu (`openProviderMenu`: Move to top, Move up, Move down, Move to bottom). While searching, a step or a drop moves it among the rows shown (it takes the place of the row it passes, `stepProvider`, `shownToOn`) and the hidden ones keep their order; Move to top and Move to bottom go to the ends of the whole list. Every move saves the whole order through `POST /api/providers/arrange`. See `provider-find.test.cjs` and `provider-order.test.cjs`. diff --git a/internal/davsync/davsync_test.go b/internal/davsync/davsync_test.go index 266b1118e..df1a0b22d 100644 --- a/internal/davsync/davsync_test.go +++ b/internal/davsync/davsync_test.go @@ -191,7 +191,7 @@ func TestSync(t *testing.T) { a, b := newComputer(t), newComputer(t) a.use(t) provider.Save(provider.Provider{ID: "deepseek", Name: "DeepSeek", Chat: "https://api.deepseek.com/v1", Key: "k1"}) - settings.Save(settings.Settings{Theme: "dark", Proxy: "http://127.0.0.1:7890", Window: []int{900, 700}, TrayUsages: []string{"claude|a@b.c"}, TrayUsageEvery: 5, TrayNoLogos: true, TrayNoBird: true, TrayNoNumber: true, TrayPace: true, TrayNoCost: true, TrayWindows: map[string][]string{"claude": {"5h"}}}) + settings.Save(settings.Settings{Theme: "dark", Proxy: "http://127.0.0.1:7890", Window: []int{900, 700}, TrayUsages: []string{"claude|a@b.c"}, TrayUsageEvery: 5, TrayNoLogos: true, TrayAnthropicMark: true, TrayNoBird: true, TrayNoNumber: true, TrayPace: true, TrayNoCost: true, TrayWindows: map[string][]string{"claude": {"5h"}}}) profile.Save("work", profile.Profile{Fields: map[string]string{"claude.model": "x"}}) same := cfg same.Passphrase = cfg.Password @@ -236,7 +236,7 @@ func TestSync(t *testing.T) { } // nor does a's menu bar: what shows beside the icon is b's own (yoooo // on Discord) - if s := settings.Load(); len(s.TrayUsages) != 0 || s.TrayUsage != "" || s.TrayUsageEvery == 5 || s.TrayNoLogos || s.TrayNoBird || s.TrayNoNumber || s.TrayPace || s.TrayNoCost || s.TrayWindows != nil { + if s := settings.Load(); len(s.TrayUsages) != 0 || s.TrayUsage != "" || s.TrayUsageEvery == 5 || s.TrayNoLogos || s.TrayAnthropicMark || s.TrayNoBird || s.TrayNoNumber || s.TrayPace || s.TrayNoCost || s.TrayWindows != nil { t.Fatalf("b's menu bar: %+v", s) } if ps, _ := profile.Load(); len(ps) != 1 { diff --git a/internal/gui/api.go b/internal/gui/api.go index 5adc36f66..7031415ad 100644 --- a/internal/gui/api.go +++ b/internal/gui/api.go @@ -1750,13 +1750,13 @@ func Handler(w Windows, gw *gateway.Server) http.Handler { onDock(in) } // the cards the menu bar shows, any of them (TrayUsage is only the first), - // how often, with their logos or not, beside the bird or not, as + // how often, with their logos or not (Claude's or Anthropic's), beside the bird or not, as // Windows' icon or not, and // with their Pace numbers or not, with magpie's totals' cost or not, // which of each subscription's windows, and the language the tooltip // is in (yi_time), and the currency its totals' cost is in if (!slices.Equal(settings.Load().TrayUsages, cur.TrayUsages) || in.TrayUsageEvery != cur.TrayUsageEvery || - in.TrayNoLogos != cur.TrayNoLogos || in.TrayNoBird != cur.TrayNoBird || in.TrayNoNumber != cur.TrayNoNumber || in.TrayPace != cur.TrayPace || + in.TrayNoLogos != cur.TrayNoLogos || in.TrayAnthropicMark != cur.TrayAnthropicMark || in.TrayNoBird != cur.TrayNoBird || in.TrayNoNumber != cur.TrayNoNumber || in.TrayPace != cur.TrayPace || in.TrayNoCost != cur.TrayNoCost || !maps.EqualFunc(in.TrayWindows, cur.TrayWindows, slices.Equal) || in.Lang != cur.Lang || in.ChineseUnits != cur.ChineseUnits || in.TrayCostIn() != cur.TrayCostIn()) && onTrayUsage != nil { onTrayUsage() diff --git a/internal/gui/assets/app.css b/internal/gui/assets/app.css index 314b7b8fc..158e899ef 100644 --- a/internal/gui/assets/app.css +++ b/internal/gui/assets/app.css @@ -224,6 +224,7 @@ code { font: var(--code-style, normal) var(--code-weight, 400) 11.5px var(--code .row .field .ic-stack .disc > .ic { width: 11px !important; height: 11px !important; } .row .field .ic-stack .disc + .disc { margin-left: -4px; } .ic.generic svg { width: 100%; height: 100%; } +.ic.anthropic-mark svg { width: 100%; height: 100%; display: block; } /* ---- header --------------------------------------------------------------- */ .top { display: flex; align-items: center; gap: 8px; padding: 0 10px 0 14px; height: 46px; flex: none; position: relative; } diff --git a/internal/gui/assets/app.js b/internal/gui/assets/app.js index c9c858c84..e660aa20e 100644 --- a/internal/gui/assets/app.js +++ b/internal/gui/assets/app.js @@ -20818,9 +20818,8 @@ function renderTrayUsage(s, keep) { $("#trayPaceRow").hidden = !ids.length || document.documentElement.classList.contains("win"); $("#trayPaceSegs").replaceChildren(segs([["off", t("Off")], ["on", t("On")]], s.trayPace ? "on" : "off", (v) => savePrefs({ ...keep, trayPace: v === "on" }))); - // a card's windows - if (!ids.length) $("#trayWindowsRow").hidden = $("#trayNumberRow").hidden = true; - else import("./traywindows.js").then(() => trayWindowsRow(s, keep, ids, mac), () => {}); + // a card's windows, Windows' figure and Claude's logo, each gone with no card (traywindows.js) + import("./traywindows.js").then(() => trayWindowsRow(s, keep, ids, mac), () => {}); // and the cost beside magpie's own totals, in their cards and the // tooltip, which every OS shows with or without cards (BussanQ) $("#trayCostSegs").replaceChildren(segs([["off", t("Off")], ["on", t("On")]], s.trayNoCost ? "off" : "on", @@ -22908,7 +22907,7 @@ function prefsKeep(s) { codexWarmAts: warmTimes(s.codexWarmAts, s.codexWarmAt), claudeWarmAts: warmTimes(s.claudeWarmAts, s.claudeWarmAt), workbuddyCheckin: !!s.workbuddyCheckin, traeCheckin: !!s.traeCheckin, minimaxCheckin: !!s.minimaxCheckin, qoderCheckin: !!s.qoderCheckin, checkinAt: s.checkinAt || "", noStats: !!s.noStats, noUsageStats: !!s.noUsageStats, signInLinkOnly: !!s.signInLinkOnly, replyModel: s.replyModel || "", noLoopGuard: !!s.noLoopGuard, claudeLeanPrompt: !!s.claudeLeanPrompt, claudeNoExtraUsage: !!s.claudeNoExtraUsage, claudePrintMode: !!s.claudePrintMode, refusalRetries: s.refusalRetries ?? null, retryAfterCap: s.retryAfterCap ?? null, noUpdatePill: !!s.noUpdatePill, noAutoUpdate: !!s.noAutoUpdate, updateEvery: s.updateEvery || 360, autoRestart: !!s.autoRestart, noAutoDownload: !!s.noAutoDownload, updateChannel: s.updateChannel || "", - trayUsage: s.trayUsage || "", trayUsageEvery: s.trayUsageEvery || 3, trayNoLogos: !!s.trayNoLogos, trayNoBird: !!s.trayNoBird, trayNoNumber: !!s.trayNoNumber, trayPace: !!s.trayPace, trayNoCost: !!s.trayNoCost, trayWindows: s.trayWindows || {}, vision: s.vision || "", visionEffort: s.visionEffort || "", searcherEffort: s.searcherEffort || "", imageGen: s.imageGen || "", videoGen: s.videoGen || "", imageTimeout: s.imageTimeout || 0, classifyTimeout: s.classifyTimeout || 0, searcher: s.searcher || "", searchFirst: s.searchFirst || "", currency: s.currency || "usd", totalCurrency: s.totalCurrency || "", trayCurrency: s.trayCurrency || "", + trayUsage: s.trayUsage || "", trayUsageEvery: s.trayUsageEvery || 3, trayNoLogos: !!s.trayNoLogos, trayAnthropicMark: !!s.trayAnthropicMark, trayNoBird: !!s.trayNoBird, trayNoNumber: !!s.trayNoNumber, trayPace: !!s.trayPace, trayNoCost: !!s.trayNoCost, trayWindows: s.trayWindows || {}, vision: s.vision || "", visionEffort: s.visionEffort || "", searcherEffort: s.searcherEffort || "", imageGen: s.imageGen || "", videoGen: s.videoGen || "", imageTimeout: s.imageTimeout || 0, classifyTimeout: s.classifyTimeout || 0, searcher: s.searcher || "", searchFirst: s.searchFirst || "", currency: s.currency || "usd", totalCurrency: s.totalCurrency || "", trayCurrency: s.trayCurrency || "", chineseUnits: !!s.chineseUnits, dayStart: s.dayStart || 0, usageAlert: s.usageAlert || 0, balanceAlert: s.balanceAlert || 0, resetReminder: s.resetReminder || 0, turnDoneAlert: s.turnDoneAlert || 0, maskAlert: !!s.maskAlert }; } diff --git a/internal/gui/assets/i18n.js b/internal/gui/assets/i18n.js index 13db5daab..9627b6f8b 100644 --- a/internal/gui/assets/i18n.js +++ b/internal/gui/assets/i18n.js @@ -1438,6 +1438,8 @@ const I18N = { "How often the allowances beside the icon are asked for again": "图标旁的额度多久重新获取一次", "Menu bar logos": "菜单栏订阅图标", "Menu bar magpie icon": "菜单栏 magpie 图标", + "Menu bar Claude logo": "菜单栏 Claude 图标", + "Claude's logo, or Anthropic's A\\ mark, before Claude's allowances": "Claude 额度前显示 Claude 的图标,或 Anthropic 的 A\\ 标志", "Pace {n}": "配速 {n}", "{n} more of this window is used than an even pace through it would have used by now: at this rate it runs out before it resets": "比匀速多用了 {n}:按这个速度,会在重置前用完", "{n} less of this window is used than an even pace through it would have used by now: at this rate it lasts until it resets": "比匀速少用了 {n}:按这个速度,能撑到重置", @@ -6831,6 +6833,8 @@ const I18N = { "How often the allowances beside the icon are asked for again": "圖示旁的額度多久重新取得一次", "Menu bar logos": "選單列訂閱圖示", "Menu bar magpie icon": "選單列 magpie 圖示", + "Menu bar Claude logo": "選單列 Claude 圖示", + "Claude's logo, or Anthropic's A\\ mark, before Claude's allowances": "Claude 額度前顯示 Claude 的圖示,或 Anthropic 的 A\\ 標誌", "Pace {n}": "配速 {n}", "{n} more of this window is used than an even pace through it would have used by now: at this rate it runs out before it resets": "比勻速多用了 {n}:照這個速度,會在重置前用完", "{n} less of this window is used than an even pace through it would have used by now: at this rate it lasts until it resets": "比勻速少用了 {n}:照這個速度,能撐到重置", @@ -15787,6 +15791,8 @@ const I18N = { "API · Month": "API · 今月", "Video · 7 days": "動画 · 7 日", "Menu bar magpie icon": "メニューバーの magpie アイコン", + "Menu bar Claude logo": "メニューバーの Claude アイコン", + "Claude's logo, or Anthropic's A\\ mark, before Claude's allowances": "Claude の使用枠の前に Claude のロゴ、または Anthropic の A\\ マークを表示します", "Pace {n}": "ペース {n}", "{n} more of this window is used than an even pace through it would have used by now: at this rate it runs out before it resets": "均等なペースより {n} 多く使っています。このペースだとリセット前に使い切ります", "{n} less of this window is used than an even pace through it would have used by now: at this rate it lasts until it resets": "均等なペースより {n} 少なく使っています。このペースならリセットまで持ちます", @@ -17566,6 +17572,8 @@ const I18N = { "How often the allowances beside the icon are asked for again": "Wie oft die Kontingente neben dem Symbol neu abgefragt werden", "Menu bar logos": "Logos in der Menüleiste", "Menu bar magpie icon": "magpie-Symbol in der Menüleiste", + "Menu bar Claude logo": "Claude-Logo in der Menüleiste", + "Claude's logo, or Anthropic's A\\ mark, before Claude's allowances": "Vor Claudes Kontingenten Claudes Logo oder das A\\-Zeichen von Anthropic", "Pace {n}": "Tempo {n}", "{n} more of this window is used than an even pace through it would have used by now: at this rate it runs out before it resets": "{n} mehr von diesem Fenster verbraucht, als ein gleichmäßiges Tempo bis jetzt verbraucht hätte: So ist es vor dem Zurücksetzen aufgebraucht", "{n} less of this window is used than an even pace through it would have used by now: at this rate it lasts until it resets": "{n} weniger von diesem Fenster verbraucht, als ein gleichmäßiges Tempo bis jetzt verbraucht hätte: So reicht es bis zum Zurücksetzen", diff --git a/internal/gui/assets/index.html b/internal/gui/assets/index.html index 517242d33..1b4f35d9b 100644 --- a/internal/gui/assets/index.html +++ b/internal/gui/assets/index.html @@ -319,6 +319,10 @@
Menu bar magpie icon
magpie's icon before the allowances; off, the allowances alone, and a click on one still opens the panel
+