faders/meter: add css variable --gauge-opacity to allow setting a fixed gauge opacity for meters and compact faders
This commit is contained in:
parent
c2e9232a90
commit
5ba26e19d7
8 changed files with 24 additions and 5 deletions
|
|
@ -60,7 +60,7 @@ Panels can contains tabs or widgets. These can be absolutely positioned and can
|
|||
- note: this only applies when the panel contains widgets, not tabs
|
||||
|
||||
### `css`
|
||||
```
|
||||
```css
|
||||
--nav-height: number[rem|%];
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ This one works pretty much like the multipush, excepts it looks like a piano key
|
|||
- see push's [`options`](buttons/#push)
|
||||
|
||||
### `css`
|
||||
```
|
||||
```css
|
||||
--color-white:color; /* white keys color */
|
||||
--color-black:color; /* black keys color */
|
||||
```
|
||||
|
|
|
|||
|
|
@ -234,6 +234,13 @@ Meter displays incoming numerical values (via osc) as a gauge level
|
|||
- default: `[]`
|
||||
- usage: when set, the meter's gauge will be filled with a linear color gradient : each item must be a color string. Example: `["blue", "red"]`
|
||||
|
||||
### `css`
|
||||
```css
|
||||
--color-gauge:color;
|
||||
--color-knob:color; /* transparent by default */
|
||||
--color-pips:color;
|
||||
--gauge-opacity:number;
|
||||
```
|
||||
|
||||
## Image
|
||||
|
||||
|
|
|
|||
|
|
@ -103,10 +103,11 @@ range: {
|
|||
- usage: overrides the `meter`'s osc address
|
||||
|
||||
### `css`
|
||||
```
|
||||
```css
|
||||
--color-gauge:color;
|
||||
--color-knob:color;
|
||||
--color-pips:color;
|
||||
--gauge-opacity:number; /* compact mode only */
|
||||
```
|
||||
|
||||
|
||||
|
|
@ -265,3 +266,12 @@ A range is a fader with two handles. To move the range (both handles at once), h
|
|||
- set to `true` to send separate osc messages for `low` and `high` handles. The `address` will be the same as the widget's with `/low` or `/high` appended to it
|
||||
- can be set as an object to specify a different `address` : `['/osc_address_low', '/osc_address_high']`
|
||||
- note: the widget will only respond to its original osc address, not to the splitted version
|
||||
|
||||
|
||||
### `css`
|
||||
```css
|
||||
--color-gauge:color;
|
||||
--color-knob:color;
|
||||
--color-pips:color;
|
||||
--gauge-opacity:number; /* compact mode only */
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue