From f29be8cc75bb73881d4e8f7ff15a2a260dbc9c7a Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Wed, 16 Jul 2025 16:03:24 +0200 Subject: [PATCH] docs: update --- resources/docs/docs/widgets/properties-reference.md | 2 ++ src/client/widgets/sliders/fader.js | 1 + 2 files changed, 3 insertions(+) diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md index 9898b64f..9abc2a70 100644 --- a/resources/docs/docs/widgets/properties-reference.md +++ b/resources/docs/docs/widgets/properties-reference.md @@ -884,6 +884,7 @@ | property | type |default | description | | --- | --- | --- | --- | + |
borderRadius#
| `number` | "auto" | Border radius expressed as a number (same for all corners, applies only for compact design). | |
css#
| `string` | "" | CSS rules. See documentation.

Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`

Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` | |
design#
| `string` | "default" | Design style

Choices: `default`, `round`, `compact` | |
knobSize#
| `number` | "auto" | Fader knob size | @@ -985,6 +986,7 @@ | property | type |default | description | | --- | --- | --- | --- | + |
borderRadius#
| `number` | "auto" | Border radius expressed as a number (same for all corners, applies only for compact design). | |
css#
| `string` | "" | CSS rules. See documentation.

Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`

Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` | |
design#
| `string` | "default" | Design style

Choices: `default`, `round`, `compact` | |
knobSize#
| `number` | "auto" | Fader knob size | diff --git a/src/client/widgets/sliders/fader.js b/src/client/widgets/sliders/fader.js index c8658ab5..ed2cc4af 100644 --- a/src/client/widgets/sliders/fader.js +++ b/src/client/widgets/sliders/fader.js @@ -62,6 +62,7 @@ class Fader extends Slider { }) defaults.scripting.onTouch = {type: 'script', value: '', editor:'javascript', help: ['Script executed when the widget is touched and released. See documentation.',]} + defaults.style.borderRadius= {type: 'number', value: 'auto', help: 'Border radius expressed as a number (same for all corners, applies only for compact design).'} return defaults