mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-29 21:34:50 +00:00
feat: color: add channel properties to color
Add extra properties to the `color` type. - `red` - `green` - `blue` - `alpha`
This commit is contained in:
parent
0409cb0140
commit
8c60cc74be
8 changed files with 73 additions and 3 deletions
|
@ -66,6 +66,17 @@ draw the outline.
|
|||
CSS Color names are only in scope in expressions of type `color` or `brush`. Otherwise, you can access
|
||||
colors from the `Colors` namespace.
|
||||
|
||||
### Properties
|
||||
|
||||
The following properties are exposed:
|
||||
|
||||
- **`red`**
|
||||
- **`green`**
|
||||
- **`blue`**
|
||||
- **`alpha`**
|
||||
|
||||
All properties are in the range 0-255.
|
||||
|
||||
### Methods
|
||||
|
||||
All colors and brushes define the following methods:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue