Files
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

142 lines
2.9 KiB
CSS

/* Settings -> Backup: the export and import dialogs (ui_backup.js). */
.anomalous-backup-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-backup-dialog {
display: flex;
flex-direction: column;
gap: 14px;
width: min(560px, 100%);
max-height: 90vh;
padding: 22px 24px;
box-sizing: border-box;
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-backup-title {
margin: 0;
font-size: 1.1rem;
}
.anomalous-backup-subtitle {
margin: 4px 0 0;
color: var(--amb-text-muted);
font-size: 12.5px;
font-weight: 600;
}
.anomalous-backup-body {
display: flex;
flex-direction: column;
gap: 10px;
min-height: 0;
overflow-y: auto;
}
.anomalous-backup-text {
margin: 0;
font-size: 13px;
line-height: 1.55;
}
.anomalous-backup-note {
margin: 0;
color: var(--amb-text-muted);
font-size: 12px;
line-height: 1.5;
}
.anomalous-backup-note.is-bad { color: var(--amb-danger-text); }
.anomalous-backup-choice {
display: flex;
align-items: flex-start;
gap: 10px;
font-size: 13px;
cursor: pointer;
}
.anomalous-backup-choice input { margin-top: 3px; }
.anomalous-backup-choice-copy {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.anomalous-backup-mode {
display: flex;
flex-direction: column;
gap: 6px;
}
.anomalous-backup-failed {
margin: 0;
padding-left: 18px;
color: var(--amb-text-muted);
font-size: 12px;
word-break: break-all;
}
.anomalous-backup-note.is-warn { color: var(--amb-warn-text); }
.anomalous-backup-missing {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 10px 12px;
border: 1px solid var(--amb-border);
border-radius: 10px;
}
.anomalous-backup-downloads {
display: flex;
flex-direction: column;
gap: 8px;
max-height: 46vh;
overflow-y: auto;
}
.anomalous-backup-download {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
gap: 4px 10px;
align-items: start;
padding: 8px 10px;
border: 1px solid var(--amb-border);
border-radius: 10px;
font-size: 13px;
}
.anomalous-backup-download input { margin-top: 3px; }
.anomalous-backup-download .anomalous-backup-choice-copy strong { overflow-wrap: anywhere; }
.anomalous-backup-download-state { grid-column: 2; }
.anomalous-backup-download-state:empty { display: none; }
.anomalous-backup-footer {
display: flex;
justify-content: flex-end;
gap: 10px;
}
@media (max-width: 560px) {
.anomalous-backup-dialog { padding: 16px; }
}