feat(options): row 221 — align Questions-tab color columns + move slider handle color into the answers section
Request 1: options.js generalizes the Header-tab column alignment (alignHeaderColumns, measured padding-top) to the Questions tab via alignQuestionColumns(): in the 'Question title and body' section columns 2 and 3 are top-aligned with the title text-color chooser in column 1; in 'Answer options and subquestions' column 2 (checkbox color) aligns with the answers text color; in 'Question help' column 2 (help background) aligns with the help font color. Runs on run(), on any shown.bs.tab and on resize (hidden panes measure 0 and no-op). Request 2: the orphaned full-width 'Slider handle color' picker at the bottom of the Questions tab becomes a 6-way color chooser (default color2) with a sliderhandlecolorcustom child, placed in the THIRD column of 'Answer options and subquestions' (aQSlots answers:2). custom_header.twig resolves it via cm() (legacy stored hex passes through). variants/build.php maps legacy hex json values of variants to mode 'other' + custom child; all variants rebuilt (defensie, erasmus) + example config synced. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
756c0ec2d1
commit
e9c0ac5c14
1 changed files with 92 additions and 28 deletions
|
|
@ -310,7 +310,7 @@
|
|||
row 184 / plan P3: answerstextcolor as well; row 186 / plan P4:
|
||||
questionhelpbackgroundcolor as well. Must stay in sync with
|
||||
aColorChooserKeys in options/options.js. #}
|
||||
{% set aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor', 'questionhelpfontcolor', 'questionbordercolor', 'checkboxcolor', 'previousbuttonbackgroundcolor', 'previousbuttontextcolor', 'nextbuttonbackgroundcolor', 'nextbuttontextcolor', 'submitbuttonbackgroundcolor', 'submitbuttontextcolor'] %}
|
||||
{% set aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor', 'questionhelpbackgroundcolor', 'questionhelpfontcolor', 'questionbordercolor', 'checkboxcolor', 'sliderhandlecolor', 'previousbuttonbackgroundcolor', 'previousbuttontextcolor', 'nextbuttonbackgroundcolor', 'nextbuttontextcolor', 'submitbuttonbackgroundcolor', 'submitbuttontextcolor'] %}
|
||||
|
||||
{% set aShowIfValues = { 'questionborder': 'box|top', 'navbarfontcolor': 'other' } %}
|
||||
{# row 197: per-KEY show-value override — the four border radii show ONLY for
|
||||
|
|
@ -366,7 +366,8 @@
|
|||
so related choosers sit next to each other on one row:
|
||||
title: col 1 = font + font color (+custom) + size + options + legacy picker (P2),
|
||||
col 2 = title background chooser (+custom), col 3 = body background chooser (+custom)
|
||||
answers: col 1 = font + font color (+custom), col 2 = checkbox/radiobutton chooser (+custom) (row 195)
|
||||
answers: col 1 = font + font color (+custom), col 2 = checkbox/radiobutton chooser (+custom) (row 195),
|
||||
col 3 = slider handle color chooser (+custom) (row 221)
|
||||
help: col 1 = help font + font color (+custom), col 2 = help background chooser (+custom),
|
||||
col 3 = help text position (row 195)
|
||||
border: col 1 = border type, col 2 = color/style/shadow children, col 3 = the four radii (2x2)
|
||||
|
|
@ -381,6 +382,7 @@
|
|||
'questionbackgroundcolor': 'title:2', 'questionbackgroundcolorcustom': 'title:2',
|
||||
'answersfont': 'answers:0', 'answerstextcolor': 'answers:0', 'answerstextcolorcustom': 'answers:0',
|
||||
'checkboxcolor': 'answers:1', 'checkboxcolorcustom': 'answers:1',
|
||||
'sliderhandlecolor': 'answers:2', 'sliderhandlecolorcustom': 'answers:2',
|
||||
'questionhelpfont': 'help:0', 'questionhelpfontcolor': 'help:0', 'questionhelpfontcolorcustom': 'help:0',
|
||||
'questionhelpbackgroundcolor': 'help:1', 'questionhelpbackgroundcolorcustom': 'help:1',
|
||||
'questionhelptextposition': 'help:2',
|
||||
|
|
|
|||
Loading…
Reference in a new issue