Colorpicker Default Value

Posted on
Sun Dec 13, 2020 11:25 am
DaveL17 offline
User avatar
Posts: 5900
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Colorpicker Default Value

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

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sun Dec 13, 2020 6:37 pm
matt (support) offline
Site Admin
User avatar
Posts: 20539
Joined: Jan 27, 2003
Location: Texas

Re: Colorpicker Default Value

We'll get this fixed in the next version. Thanks for the report. 8)

Image

Posted on
Sun Dec 13, 2020 6:45 pm
DaveL17 offline
User avatar
Posts: 5900
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Colorpicker Default Value

Thanks Matt. :D

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Wed Dec 23, 2020 4:56 pm
matt (support) offline
Site Admin
User avatar
Posts: 20539
Joined: Jan 27, 2003
Location: Texas

Re: Colorpicker Default Value

Indigo 7.5 is now available and includes support for the color picker defaultValues.

Image

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests