mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-27 01:19:25 +08:00
feat(panel): modularize 3-tab preferences, add model context windows, and optimize telemetry
- Refactor Preferences into decoupled General, Structure, and Other tabs with unified settings schema, factory reset, and trajectory cache rebuild endpoints - Extract standalone widget, metric, and step-table column registries to customize topbar/composer slots, hover popup modules, live overview layout, and step detail columns - Add bilingual zh-CN/en-US i18n dictionaries, theme accent presets, and font scale controls across Shadow DOM overlay and sidebar views - Support per-model host-advertised context window rules across App and IDE transports - Preserve CLEARED step generation timings, memoize per-poll model resolution, optimize LOESS sorted-x fitting, and update bilingual READMEs and test suites
This commit is contained in:
@@ -42,16 +42,30 @@
|
||||
);
|
||||
--border-strong: color-mix(in srgb, var(--border-hairline) 72%, var(--text-primary) 28%);
|
||||
|
||||
/* Typography Hierarchy */
|
||||
/* Typography Hierarchy & Scalable Font Tokens */
|
||||
--ui-font-scale: 1;
|
||||
--fs-2xs: calc(9.5px * var(--ui-font-scale, 1));
|
||||
--fs-xs: calc(10px * var(--ui-font-scale, 1));
|
||||
--fs-sm: calc(10.5px * var(--ui-font-scale, 1));
|
||||
--fs-md: calc(11px * var(--ui-font-scale, 1));
|
||||
--fs-base-sm: calc(11.5px * var(--ui-font-scale, 1));
|
||||
--fs-base: calc(12px * var(--ui-font-scale, 1));
|
||||
--fs-body: calc(12.5px * var(--ui-font-scale, 1));
|
||||
--fs-lg: calc(14.5px * var(--ui-font-scale, 1));
|
||||
--fs-hero: calc(17px * var(--ui-font-scale, 1));
|
||||
|
||||
--text-primary: var(--foreground, var(--vscode-foreground, var(--vscode-editor-foreground, hsl(215 22% 15%))));
|
||||
--text-secondary: var(--muted-foreground, var(--vscode-descriptionForeground, hsl(215 12% 44%)));
|
||||
--text-muted: color-mix(in srgb, var(--text-secondary) 74%, var(--surface-panel) 26%);
|
||||
--text-inverse: var(--surface-panel);
|
||||
--text-inverse: var(--user-accent-contrast, var(--surface-panel));
|
||||
|
||||
/* Semantic Telemetry Accents */
|
||||
--accent-primary: var(
|
||||
--primary,
|
||||
var(--vscode-textLink-foreground, var(--vscode-button-background, hsl(217 82% 51%)))
|
||||
--user-accent-primary,
|
||||
var(
|
||||
--primary,
|
||||
var(--vscode-textLink-foreground, var(--vscode-button-background, hsl(217 82% 51%)))
|
||||
)
|
||||
);
|
||||
--accent-primary-soft: color-mix(in srgb, var(--accent-primary) 13%, transparent);
|
||||
--accent-primary-border: color-mix(in srgb, var(--accent-primary) 38%, var(--border-hairline));
|
||||
|
||||
Reference in New Issue
Block a user