Color Mode Black & White¶
If you want to enable the color mode black & white
additionally to color
and gray
, search for the Color
property
in the Panel Configuration and extend it by
the setting for gray
as shown in the below code snippet:
...
"Color": {
"type": "string",
"fillBy": "Capabilities/ColorDefault",
"default": "bw",
"description": "Color",
"widget": "toggle",
"oneOf": [
{
"enum": [
"color"
],
"description": "color",
"icon": "format_color_fill"
},
{
"enum": [
"gray"
],
"description": "gray"
},
{
"enum": [
"bw"
],
"description": "bw",
"icon": "format_color_reset"
}
],
"visibleIf": {
"Capabilities/Color": [
true
]
}
},
...