Files
DemonGatanjieu-Anomalous_Mo…/web/styles/22-model-download.css
T
DemonGatanjieuandClaude Opus 5.5 7b363bdac8 Light theme: follow ComfyUI, dark, light or Abyssal Scarlet
Settings -> Appearance -> Theme (and the ComfyUI setting
Anomalous.ModelBrowser.Theme, which replaces the Abyssal Scarlet switch)
picks Follow ComfyUI (default), Dark, Light or Abyssal Scarlet. Following
ComfyUI watches the dark-theme class ComfyUI sets on <html> for a dark
palette and repaints at once; an older Abyssal switch reads as Abyssal.

The light theme is html.amb-theme-light with its own --amb-* values. Hard
coded colors were turned into tokens whose dark values are the colors they
replace (checked: every stylesheet resolves to the same dark values):
rgba(var(--amb-ink-rgb), a) for tints, status shades, tooltip, float,
dialog, sunken, scrim and note tokens. Older rules and inline styles that
wrote a dark color now write var(--amb-lt-<role>, <that color>); the
--amb-lt-* tokens exist only in the light theme. Inside the plugin's
windows ComfyUI's palette variables (--bg-color, --fg-color ...) follow the
plugin's theme when the two differ. Surfaces over images stay dark, and the
image viewer gets the dark tokens back. The ready banner on a recipe reads
green instead of pink. Stylesheet cache versions are bumped.

Checked on a test ComfyUI in light and dark: home, models, gallery and its
viewer, workflows and a recipe's tabs, combos and a combo, prompts and the
docked drawer, voices, audio library, settings, scan, Model Check, current
node and its model picker, a model's detail with notes, share, save
recipe, update guide, versions, GPT-SoVITS settings and the prompt dialog;
light with a dark ComfyUI, and Abyssal Scarlet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 17:27:02 +08:00

183 lines
4.0 KiB
CSS

/* Model Check's downloads: the row's button and progress, and the dialog (ui_model_download.js). */
.anomalous-download-slot:empty { display: none; }
.anomalous-download-slot,
.anomalous-download-status {
display: inline-flex;
align-items: center;
flex-wrap: wrap;
gap: 6px;
}
.anomalous-download-text {
color: var(--amb-text-muted);
font-size: 12px;
line-height: 1.4;
}
.anomalous-download-text.is-bad { color: var(--amb-danger-text); }
.anomalous-download-bar {
position: relative;
width: 56px;
height: 5px;
border-radius: 999px;
background: var(--amb-border);
overflow: hidden;
}
.anomalous-download-bar::after {
content: "";
position: absolute;
inset: 0 auto 0 0;
width: var(--amb-download-done, 0%);
background: var(--amb-link);
transition: width 0.4s ease;
}
.anomalous-download-overlay {
position: fixed;
inset: 0;
z-index: 1000001;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
box-sizing: border-box;
background: var(--amb-lt-scrim, rgba(0, 0, 0, 0.6));
backdrop-filter: blur(4px);
}
.anomalous-download-dialog {
display: flex;
flex-direction: column;
gap: 14px;
width: min(620px, 100%);
max-height: 90vh;
padding: 22px 24px;
box-sizing: border-box;
overflow-y: auto;
border: 1px solid var(--amb-border-strong);
border-radius: 16px;
background: var(--amb-bg-panel, #24252b);
color: var(--amb-text-main);
box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.anomalous-download-title {
margin: 0;
font-size: 1.15rem;
}
.anomalous-download-items {
display: flex;
flex-direction: column;
gap: 10px;
}
.anomalous-download-item {
display: flex;
flex-direction: column;
gap: 6px;
padding: 12px;
border: 1px solid var(--amb-border);
border-radius: 10px;
background: var(--amb-bg-card);
}
.anomalous-download-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 10px;
min-width: 0;
}
.anomalous-download-name {
min-width: 0;
overflow-wrap: anywhere;
}
.anomalous-download-facts,
.anomalous-download-model {
flex-shrink: 0;
color: var(--amb-text-muted);
font-size: 12px;
}
.anomalous-download-model { flex-shrink: 1; }
.anomalous-download-where {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
font-size: 12.5px;
}
.anomalous-download-label { color: var(--amb-text-soft, var(--amb-text-muted)); }
.anomalous-download-root,
.anomalous-download-rel,
.anomalous-download-folder {
min-width: 0;
padding: 5px 8px;
border: 1px solid var(--amb-border-strong);
border-radius: 8px;
background: var(--amb-bg-input, rgba(0, 0, 0, 0.25));
color: var(--amb-text-main);
font: inherit;
font-size: 12.5px;
}
.anomalous-download-root { max-width: 100%; }
.anomalous-download-rel { flex: 1 1 240px; }
.anomalous-download-folder { width: 220px; }
.anomalous-download-folder.is-bad { border-color: var(--amb-danger-text); }
.anomalous-download-path {
color: var(--amb-text-dim, var(--amb-text-muted));
font-size: 11.5px;
overflow-wrap: anywhere;
}
.anomalous-download-note {
color: var(--amb-text-muted);
font-size: 12px;
line-height: 1.5;
}
.anomalous-download-note.is-warn { color: var(--amb-warn-text); }
.anomalous-download-note.is-bad { color: var(--amb-danger-text); }
.anomalous-download-space {
color: var(--amb-text-muted);
font-size: 12.5px;
}
.anomalous-download-space.is-bad { color: var(--amb-danger-text); }
.anomalous-download-rules {
align-self: flex-start;
padding: 0;
border: none;
background: none;
color: var(--amb-link);
font-size: 12px;
cursor: pointer;
}
.anomalous-download-rules:hover { text-decoration: underline; }
.anomalous-download-footer {
display: flex;
justify-content: flex-end;
gap: 10px;
}
@media (max-width: 520px) {
.anomalous-download-head { flex-direction: column; gap: 2px; }
.anomalous-download-dialog { padding: 16px; }
}