docs: color properties must use css syntax

This commit is contained in:
jean-emmanuel 2025-10-09 21:23:33 +02:00
parent d3870d74f2
commit 1f1b56607b
3 changed files with 6 additions and 6 deletions

View file

@ -74,10 +74,10 @@ class Widget extends EventEmitter {
expand: {type: 'boolean|number', value: false, help: 'If parent\'s layout is `vertical` or `horizontal`, set this to `true` to stretch the widget to use available space automatically.'},
},
style: {
colorText: {type: 'string', value: 'auto', help: 'Text color. Set to "auto" to inherit from parent widget.'},
colorWidget: {type: 'string', value: 'auto', help: 'Widget\'s default accent color. Set to "auto" to inherit from parent widget.'},
colorStroke: {type: 'string', value: 'auto', help: 'Stroke color. Set to "auto" to use `colorWidget`.'},
colorFill: {type: 'string', value: 'auto', help: 'Fill color. Set to "auto" to use `colorWidget`.'},
colorText: {type: 'string', value: 'auto', help: 'Text color. Set to "auto" to inherit from parent widget. Must be a valid css color.'},
colorWidget: {type: 'string', value: 'auto', help: 'Widget\'s default accent color. Set to "auto" to inherit from parent widget. Must be a valid css color.'},
colorStroke: {type: 'string', value: 'auto', help: 'Stroke color. Set to "auto" to use `colorWidget`. Must be a valid css color.'},
colorFill: {type: 'string', value: 'auto', help: 'Fill color. Set to "auto" to use `colorWidget`. Must be a valid css color.'},
alphaStroke: {type: 'number', value: 'auto', help: 'Stroke color opacity.'},
alphaFillOff: {type: 'number', value: 'auto', help: 'Fill color opacity (off).'},
alphaFillOn: {type: 'number', value: 'auto', help: 'Fill color opacity (on).'},

View file

@ -17,7 +17,7 @@ class Fader extends Slider {
_separator_fader_style: 'Fader style',
design: {type: 'string', value: 'default', choices: ['default', 'round', 'compact'], help: 'Design style'},
knobSize: {type: 'number', value: 'auto', help: 'Fader knob size'},
colorKnob: {type: 'string', value: 'auto', help: 'Fader knob color'},
colorKnob: {type: 'string', value: 'auto', help: 'Fader knob color. Must be a valid css color.'},
horizontal: {type: 'boolean', value: false, help: 'Set to `true` to display the fader horizontally'},
pips: {type: 'boolean', value: false, help: 'Set to `true` to show range breakpoints (ignored if `design` is `compact`)'},
dashed: {type: 'boolean|array', value: false, help: 'Set to `true` to display a dashed gauge. Can be set as an `array` of two numbers : `[dash_size, gap_size]`'},

View file

@ -19,7 +19,7 @@ class Knob extends Slider {
'Design style',
'Note: "solid" design uses "colorStroke" for the central knob color.'
]},
colorKnob: {type: 'string', value: 'auto', help: 'Knob color'},
colorKnob: {type: 'string', value: 'auto', help: 'Knob color. Must be a valid css color.'},
pips: {type: 'boolean', value: false, help: 'Set to `true` to show the scale\'s breakpoints'},
dashed: {type: 'boolean|array', value: false, help: 'Set to `true` to display a dashed gauge. Can be set as an `array` of two numbers : `[dash_size, gap_size]`'},
angle: {type: 'number', value: 270, help: 'Defines the angle\'s width of the knob, in degrees'},