Interface ChartSettingsColorPairInput

Two colours on one labelled row, with an optional switch in front of them:

[x] Borders   [up] [down]

key identifies the row and is not itself a value. The value keys are up.key, down.key and enabled.key, each an ordinary flat key of ChartSettingsValues, so a host patches this row exactly the way it patches a plain colour and nothing about read/apply has to know the widget exists.

enabled is absent when the pair has no visibility flag behind it (a candle body is always drawn), which is the difference between a row whose checkbox does something and one whose checkbox would be a lie.

interface ChartSettingsColorPairInput {
    down: { default: string; key: string; label: string };
    enabled?: { default: boolean; key: string };
    group?: string;
    key: string;
    label: string;
    tooltip?: string;
    type: "colorPair";
    up: { default: string; key: string; label: string };
}

Properties

down: { default: string; key: string; label: string }
enabled?: { default: boolean; key: string }
group?: string
key: string
label: string
tooltip?: string

Help text for the row, on the same terms as IndicatorInput['tooltip'].

type: "colorPair"
up: { default: string; key: string; label: string }