Page 1 of 1

Colorpicker Default Value

PostPosted: Sun Dec 13, 2020 11:25 am
by DaveL17
Someone (including me) may have pointed this out before.

When adding a colorpicker control, the control doesn't seem to pick up the defaultValue from the appropriate xml file (confirmed for both PluginConfig.xml and Devices.xml).

Code: Select all
    <Field id="test" type="colorpicker" defaultValue="00 FF 00">
        <Label>Test:</Label>
    </Field>
My workaround is to add the default color value explicitly to valuesDict in getDeviceConfigUiValues (or whatever) and then the color picker displays the default properly.

Request: have the color picker control pick up the defaultValue from the XML directly. :D

Re: Colorpicker Default Value

PostPosted: Sun Dec 13, 2020 6:37 pm
by matt (support)
We'll get this fixed in the next version. Thanks for the report. 8)

Re: Colorpicker Default Value

PostPosted: Sun Dec 13, 2020 6:45 pm
by DaveL17
Thanks Matt. :D

Re: Colorpicker Default Value

PostPosted: Wed Dec 23, 2020 4:56 pm
by matt (support)
Indigo 7.5 is now available and includes support for the color picker defaultValues.