video enrichment: fix accent rendering (was invalid rgba) + colors + TVDB invert
Root cause both buttons looked black: --ve-accent was space-separated (1 180 228) but used in rgba(var(--ve-accent), a) -> invalid 'rgba(1 180 228, a)' so the color silently failed. Switched --ve-accent to comma-separated (matching music's --accent-rgb) and fixed all fallbacks -> the accent + glow now render. - TMDB: vibey light blue (56,189,248); TVDB: purple (168,85,247). - TVDB brand mark inverted everywhere (dashboard button, modal rail, settings frame) so the dark logo reads on the dark UI.
This commit is contained in:
parent
798721d724
commit
924d4ce8a6
3 changed files with 23 additions and 17 deletions
|
|
@ -438,7 +438,7 @@
|
|||
/api/video/enrichment, wired by video-enrichment.js).
|
||||
Click toggles pause/resume; spins while running. -->
|
||||
<div class="header-actions">
|
||||
<div class="video-enrich-container" style="--ve-accent: 1 180 228;">
|
||||
<div class="video-enrich-container" style="--ve-accent: 56, 189, 248;">
|
||||
<button class="video-enrich-button" type="button" data-video-enrich="tmdb" title="TMDB Enrichment">
|
||||
<img class="video-enrich-logo" src="https://www.themoviedb.org/assets/2/v4/logos/v2/blue_square_2-d537fb228cf3ded904ef09b136fe3fec72548ebc1fea3fbbd1ad9e36364db38b.svg" alt="TMDB">
|
||||
<span class="video-enrich-spinner" aria-hidden="true"></span>
|
||||
|
|
@ -454,7 +454,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="video-enrich-container" style="--ve-accent: 108 211 145;">
|
||||
<div class="video-enrich-container" style="--ve-accent: 168, 85, 247;">
|
||||
<button class="video-enrich-button" type="button" data-video-enrich="tvdb" title="TVDB Enrichment">
|
||||
<img class="video-enrich-logo" src="https://www.svgrepo.com/show/443500/brand-tvdb.svg" alt="TVDB">
|
||||
<span class="video-enrich-spinner" aria-hidden="true"></span>
|
||||
|
|
@ -4871,7 +4871,7 @@
|
|||
<div class="api-service-frame stg-service" data-video-service="tvdb">
|
||||
<div class="stg-service-header" onclick="toggleStgService(this)">
|
||||
<span class="stg-service-dot" style="color: #6cd391;"></span>
|
||||
<img class="video-svc-logo" src="https://www.svgrepo.com/show/443500/brand-tvdb.svg" alt="">
|
||||
<img class="video-svc-logo video-svc-logo--tvdb" src="https://www.svgrepo.com/show/443500/brand-tvdb.svg" alt="">
|
||||
<h4 class="service-title">TVDB</h4>
|
||||
<span class="stg-service-chevron">›</span>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@
|
|||
var cov = pct == null ? '' :
|
||||
'<span class="em-rail-cov"><span class="em-rail-cov-fill" style="width:' + pct + '%"></span></span>';
|
||||
return '<button class="em-worker-row" data-em-select="' + w.id + '">' +
|
||||
'<span class="em-worker-icon"><img class="vem-logo" src="' + LOGOS[w.id] + '" alt=""></span>' +
|
||||
'<span class="em-worker-icon"><img class="vem-logo vem-logo--' + w.id + '" src="' + LOGOS[w.id] + '" alt=""></span>' +
|
||||
'<span class="em-worker-meta"><span class="em-worker-name">' + esc(w.name) + '</span>' +
|
||||
'<span class="em-worker-sub">' + esc(railSub(s)) + '</span>' + cov + '</span>' +
|
||||
'<span class="em-dot em-dot--' + info.cls + '" title="' + info.label + '"></span></button>';
|
||||
|
|
|
|||
|
|
@ -157,26 +157,26 @@ body[data-side="video"] .dashboard-header-sweep {
|
|||
width: 46px;
|
||||
height: 46px;
|
||||
border-radius: 50%;
|
||||
border: 1.5px solid rgba(var(--ve-accent, 88 101 242), 0.25);
|
||||
border: 1.5px solid rgba(var(--ve-accent, 88, 101, 242), 0.25);
|
||||
background: rgba(18, 18, 22, 0.85);
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 4px 16px rgba(var(--ve-accent, 88 101 242), 0.2),
|
||||
box-shadow: 0 4px 16px rgba(var(--ve-accent, 88, 101, 242), 0.2),
|
||||
0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
.video-enrich-button:hover {
|
||||
transform: scale(1.05);
|
||||
border-color: rgba(var(--ve-accent, 88 101 242), 0.4);
|
||||
box-shadow: 0 6px 20px rgba(var(--ve-accent, 88 101 242), 0.3),
|
||||
border-color: rgba(var(--ve-accent, 88, 101, 242), 0.4);
|
||||
box-shadow: 0 6px 20px rgba(var(--ve-accent, 88, 101, 242), 0.3),
|
||||
0 3px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
|
||||
}
|
||||
.video-enrich-button.active,
|
||||
.video-enrich-button.complete {
|
||||
border-color: rgba(var(--ve-accent, 88 101 242), 0.5);
|
||||
box-shadow: 0 6px 24px rgba(var(--ve-accent, 88 101 242), 0.4),
|
||||
border-color: rgba(var(--ve-accent, 88, 101, 242), 0.5);
|
||||
box-shadow: 0 6px 24px rgba(var(--ve-accent, 88, 101, 242), 0.4),
|
||||
0 3px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
|
||||
}
|
||||
.video-enrich-button.paused { opacity: 0.6; }
|
||||
|
|
@ -192,13 +192,17 @@ body[data-side="video"] .dashboard-header-sweep {
|
|||
transition: opacity 0.3s ease;
|
||||
}
|
||||
.video-enrich-button:hover .video-enrich-logo { opacity: 1; }
|
||||
/* The TVDB brand mark is dark — invert it so it reads on the dark UI. */
|
||||
.video-enrich-button[data-video-enrich="tvdb"] .video-enrich-logo {
|
||||
filter: invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
|
||||
}
|
||||
.video-enrich-spinner {
|
||||
position: absolute;
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
border: 3px solid transparent;
|
||||
border-top-color: rgba(var(--ve-accent, 88 101 242), 0.8);
|
||||
border-right-color: rgba(var(--ve-accent, 88 101 242), 0.5);
|
||||
border-top-color: rgba(var(--ve-accent, 88, 101, 242), 0.8);
|
||||
border-right-color: rgba(var(--ve-accent, 88, 101, 242), 0.5);
|
||||
border-radius: 50%;
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease;
|
||||
|
|
@ -210,13 +214,13 @@ body[data-side="video"] .dashboard-header-sweep {
|
|||
/* Tint the reused .tooltip-content with the service accent (music's default is
|
||||
MusicBrainz purple; each service overrides — so we do the same per video svc). */
|
||||
.video-enrich-tooltip .tooltip-content {
|
||||
border-color: rgba(var(--ve-accent, 88 101 242), 0.3);
|
||||
border-color: rgba(var(--ve-accent, 88, 101, 242), 0.3);
|
||||
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
|
||||
0 6px 20px rgba(var(--ve-accent, 88 101 242), 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
||||
0 6px 20px rgba(var(--ve-accent, 88, 101, 242), 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
.video-enrich-tooltip .tooltip-header { color: rgba(var(--ve-accent, 88 101 242), 0.95); }
|
||||
.video-enrich-tooltip .tooltip-content::before { border-bottom-color: rgba(var(--ve-accent, 88 101 242), 0.3); }
|
||||
.video-enrich-tooltip [data-video-enrich-status] { color: rgb(var(--ve-accent, 88 101 242)); font-weight: 600; }
|
||||
.video-enrich-tooltip .tooltip-header { color: rgba(var(--ve-accent, 88, 101, 242), 0.95); }
|
||||
.video-enrich-tooltip .tooltip-content::before { border-bottom-color: rgba(var(--ve-accent, 88, 101, 242), 0.3); }
|
||||
.video-enrich-tooltip [data-video-enrich-status] { color: rgb(var(--ve-accent, 88, 101, 242)); font-weight: 600; }
|
||||
|
||||
/* Positioning wrapper only — the content reuses music's shared .tooltip-content
|
||||
/ .tooltip-header / .tooltip-body styling, so it looks identical to the music
|
||||
|
|
@ -257,10 +261,12 @@ body[data-side="video"] .dashboard-header-sweep {
|
|||
.video-manage-workers-icon img { width: 22px; height: 22px; display: block; }
|
||||
/* Service logo in the settings API-config frame headers (TMDB/TVDB). */
|
||||
.video-svc-logo { width: 18px; height: 18px; object-fit: contain; margin-right: 2px; }
|
||||
.video-svc-logo--tvdb { filter: invert(1); }
|
||||
|
||||
/* ── Video Manage-Workers modal: only the bits not covered by music's global
|
||||
.em-* classes, ALL scoped to #vem-overlay so music is never affected. ───── */
|
||||
#vem-overlay .vem-logo { width: 22px; height: 22px; object-fit: contain; }
|
||||
#vem-overlay .vem-logo--tvdb { filter: invert(1); }
|
||||
#vem-overlay .vem-icon {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
|
|
|
|||
Loading…
Reference in a new issue