mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
feat(cli): upgrade statusLine with Braille progress bars, instant waiting sync, /statusline flags, and CLI-gated settings
This commit is contained in:
@@ -5704,6 +5704,183 @@ html[data-standalone="true"] .app-shell {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* --- Antigravity CLI 底部状态胶囊专属配置块(仅检测到 CLI 时展示) --- */
|
||||
.cli-statusline-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.cli-statusline-group[hidden],
|
||||
.cli-statusline-detail[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.cli-statusline-detail {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.cli-status-preview {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: nowrap;
|
||||
gap: 0;
|
||||
min-height: 30px;
|
||||
padding: 5px 10px;
|
||||
border-radius: var(--radius-xs);
|
||||
border: 1px solid var(--border-hairline);
|
||||
background: var(--surface-bg);
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--fs-sm);
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1.3;
|
||||
white-space: nowrap;
|
||||
overflow-x: auto;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.cli-preview-multi {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
margin-right: 12px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.cli-preview-multi[hidden],
|
||||
.cli-preview-slot[hidden],
|
||||
.cli-preview-sep[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.cli-preview-dot {
|
||||
color: var(--metric-good);
|
||||
font-size: var(--fs-xs);
|
||||
}
|
||||
|
||||
.cli-preview-sep {
|
||||
margin: 0 7px;
|
||||
color: var(--text-muted);
|
||||
opacity: 0.72;
|
||||
}
|
||||
|
||||
.cli-preview-slot {
|
||||
color: var(--text-primary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.cli-preview-slot.tone-good {
|
||||
color: var(--metric-good);
|
||||
}
|
||||
|
||||
.cli-preview-slot.tone-info {
|
||||
color: var(--metric-info);
|
||||
}
|
||||
|
||||
.cli-preview-slot.tone-accent {
|
||||
color: var(--accent-primary);
|
||||
}
|
||||
|
||||
.cli-preview-slot.tone-muted {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.cli-preview-prefix {
|
||||
color: var(--text-secondary);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.cli-preview-bar-fill {
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.cli-preview-bar-empty {
|
||||
color: var(--text-muted);
|
||||
opacity: 0.65;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.cli-preview-val {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.cli-preview-slot.tone-good .cli-preview-val,
|
||||
.cli-preview-slot.tone-good .cli-preview-bar-fill {
|
||||
color: var(--metric-good);
|
||||
}
|
||||
|
||||
.cli-preview-slot.tone-info .cli-preview-val,
|
||||
.cli-preview-slot.tone-info .cli-preview-bar-fill {
|
||||
color: var(--metric-info);
|
||||
}
|
||||
|
||||
.cli-preview-slot.tone-accent .cli-preview-bar-fill {
|
||||
color: var(--accent-primary);
|
||||
}
|
||||
|
||||
.cli-preview-slot.tone-muted .cli-preview-val {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.cli-status-footer {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.cli-status-footer[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.cli-status-hint.is-warn {
|
||||
color: var(--metric-warn);
|
||||
}
|
||||
|
||||
.cli-status-action-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: calc(24px * var(--ui-font-scale, 1));
|
||||
padding: 2px 10px;
|
||||
border-radius: var(--radius-xs);
|
||||
border: 1px solid var(--accent-primary-border);
|
||||
background: var(--accent-primary-soft);
|
||||
color: var(--accent-primary);
|
||||
font-size: var(--fs-sm);
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
transition:
|
||||
background-color var(--dur-instant) var(--ease-fast),
|
||||
opacity var(--dur-instant) var(--ease-fast);
|
||||
}
|
||||
|
||||
.cli-status-action-btn:hover:not(:disabled) {
|
||||
background: color-mix(in srgb, var(--accent-primary) 20%, transparent);
|
||||
}
|
||||
|
||||
.cli-status-action-btn.is-warn {
|
||||
border-color: color-mix(in srgb, var(--metric-warn) 48%, var(--border-hairline));
|
||||
background: color-mix(in srgb, var(--metric-warn) 14%, transparent);
|
||||
color: var(--metric-warn);
|
||||
}
|
||||
|
||||
.cli-status-action-btn.is-warn:hover:not(:disabled) {
|
||||
background: color-mix(in srgb, var(--metric-warn) 22%, transparent);
|
||||
}
|
||||
|
||||
.cli-status-action-btn:disabled {
|
||||
opacity: 0.65;
|
||||
cursor: wait;
|
||||
}
|
||||
|
||||
.cli-status-action-btn[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* --- src/styles/overlay.css --- */
|
||||
/*
|
||||
* 双栖模式顶栏胶囊与悬浮面板样式表 (overlay.css).
|
||||
|
||||
Reference in New Issue
Block a user