From 90a65b3d65b23202fe3d612ff156e80f5ac65888 Mon Sep 17 00:00:00 2001 From: Tammo ter Hark Date: Thu, 26 Nov 2026 21:09:06 +0100 Subject: [PATCH] chore(variants): add bodybackgroundcolor to build.php chooser migration (row 149) Missed in the row-149 commit: the legacy-hex -> mode "other" + custom migration list now also covers bodybackgroundcolor, matching aColorChooserKeys in options.js/options.twig. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- variants/build.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/variants/build.php b/variants/build.php index 2d0c03f..4b26108 100644 --- a/variants/build.php +++ b/variants/build.php @@ -268,13 +268,13 @@ foreach ($logoPositions as $pos) { } } -// --- Row 115/135 migration: the color-chooser options (navbarfontcolor, +// --- Row 115/135/149 migration: the color-chooser options (navbarfontcolor, // headerbackgroundcolor, progressbarcolor, progressbarbackgroundcolor, -// progressbarfontcolor) became mode dropdowns (default|defaultbackgroundcolor| +// progressbarfontcolor, bodybackgroundcolor) became mode dropdowns (default|defaultbackgroundcolor| // color1|color2|color3|other) with a custom colorpicker child. A legacy HEX // value in the json means "custom color": map it to mode "other" and move the hex // into the custom child, so the variant default stays valid for the dropdown. -$colorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor']; +$colorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor']; foreach ($colorChooserKeys as $ck) { if (isset($definition['options'][$ck]) && is_string($definition['options'][$ck])