Ver Fonte

coloring: 移除进度条颜色主题参数(进度条已删除)

guoziyun há 3 semanas atrás
pai
commit
ea7957496b

+ 0 - 1
platform/server/src/services/configGenerator.ts

@@ -69,7 +69,6 @@ export function generateAdConfig(input: GenerateInput): string {
   lines.push(`  bgGradient: ${JSON.stringify(input.theme.bgGradient || "linear-gradient(160deg, #fff9f2 0%, #ffeedd 100%)")},`);
   lines.push(`  ctaGradient: ${JSON.stringify(input.theme.ctaGradient || "linear-gradient(135deg, #ff5f1f 0%, #ffb300 100%)")},`);
   lines.push(`  ctaText: ${JSON.stringify(input.theme.ctaText || "PLAY NOW")},`);
-  lines.push(`  progressColor: ${JSON.stringify(input.theme.progressColor || "#07ce07")},`);
   lines.push(`  frameColor: ${JSON.stringify(input.theme.frameColor || "#edce9b")},`);
   lines.push(`  frameLineWidth: ${JSON.stringify(Number(input.theme.frameLineWidth) || 16)},`);
   lines.push("};");

+ 0 - 1
templates/coloring/manifest.json

@@ -19,7 +19,6 @@
       { "key": "bgGradient",    "label": "背景渐变",      "type": "css-gradient", "default": "linear-gradient(160deg, #fff9f2 0%, #ffeedd 100%)" },
       { "key": "ctaGradient",   "label": "CTA 按钮渐变",  "type": "css-gradient", "default": "linear-gradient(135deg, #ff5f1f 0%, #ffb300 100%)" },
       { "key": "ctaText",       "label": "CTA 按钮文案",  "type": "text",         "default": "PLAY NOW", "maxLength": 30 },
-      { "key": "progressColor", "label": "进度条颜色",     "type": "color",        "default": "#07ce07" },
       { "key": "frameColor",    "label": "完成相框颜色",   "type": "color",        "default": "#edce9b" },
       { "key": "frameLineWidth","label": "完成相框线宽",   "type": "number",       "default": 16, "min": 4, "max": 40 }
     ]

+ 0 - 1
templates/coloring/src/filler/ad-config.ts

@@ -40,7 +40,6 @@ export const adTheme = {
   bgGradient: "linear-gradient(160deg, #fff9f2 0%, #ffeedd 100%)",
   ctaGradient: "linear-gradient(135deg, #ff5f1f 0%, #ffb300 100%)",
   ctaText: "PLAY NOW",
-  progressColor: "#07ce07",
   frameColor: "#edce9b",
   frameLineWidth: 16,
 };

+ 0 - 2
templates/coloring/src/filler/index.ts

@@ -51,8 +51,6 @@ async function init() {
   const root = document.documentElement;
   root.style.setProperty("--ad-bg-gradient", adTheme.bgGradient);
   root.style.setProperty("--ad-cta-gradient", adTheme.ctaGradient);
-  root.style.setProperty("--ad-progress-color", adTheme.progressColor);
-
   // 直接应用 CTA 文案和样式
   const ctaBtn = document.getElementById("cta-btn");
   if (ctaBtn) {