1
0
Fork 0
forked from wry/wry

config: make the blend space configurable

This commit is contained in:
Julian Orth 2025-09-05 19:19:54 +02:00
parent 991b212120
commit 39c770f6e2
20 changed files with 257 additions and 15 deletions

View file

@ -572,6 +572,14 @@
}
]
},
"BlendSpace": {
"type": "string",
"description": "A color blend space.\n",
"enum": [
"srgb",
"linear"
]
},
"Brightness": {
"description": "The brightness setting of an output.\n",
"anyOf": [
@ -1655,6 +1663,10 @@
"brightness": {
"description": "The brightness of the output.\n\nThis setting has no effect unless the vulkan renderer is used.\n",
"$ref": "#/$defs/Brightness"
},
"blend-space": {
"description": "The blend space of the output.\n\nThe default is `srgb`.\n",
"$ref": "#/$defs/BlendSpace"
}
},
"required": [

View file

@ -797,6 +797,25 @@ This table is a tagged union. The variant is determined by the `type` field. It
The value of this field should be a string.
<a name="types-BlendSpace"></a>
### `BlendSpace`
A color blend space.
Values of this type should be strings.
The string should have one of the following values:
- `srgb`:
The sRGB blend space. This is the classic desktop blend space.
- `linear`:
Linear color space. This is the physically correct blend space.
<a name="types-Brightness"></a>
### `Brightness`
@ -3548,6 +3567,14 @@ The table has the following fields:
The value of this field should be a [Brightness](#types-Brightness).
- `blend-space` (optional):
The blend space of the output.
The default is `srgb`.
The value of this field should be a [BlendSpace](#types-BlendSpace).
<a name="types-OutputMatch"></a>
### `OutputMatch`

View file

@ -1967,6 +1967,13 @@ Output:
The brightness of the output.
This setting has no effect unless the vulkan renderer is used.
blend-space:
ref: BlendSpace
required: false
description: |
The blend space of the output.
The default is `srgb`.
Transform:
@ -4029,3 +4036,14 @@ WorkspaceDisplayOrder:
description: Workspaces are not sorted and can be manually dragged.
- value: sorted
description: Workspaces are sorted alphabetically and cannot be manually dragged.
BlendSpace:
kind: string
description: |
A color blend space.
values:
- value: srgb
description: The sRGB blend space. This is the classic desktop blend space.
- value: linear
description: Linear color space. This is the physically correct blend space.