forked from CGM_Public/pretix_original
Allow ticket QR code colour to be configured (#4726)
* Allow ticket QR code colour to be configured This commit introduces a feature enabling users to customise the QR code colour in the ticket editor. * Remove redundant argument from `Dict.get` call Co-authored-by: Raphael Michel <mail@raphaelmichel.de> --------- Co-authored-by: Raphael Michel <mail@raphaelmichel.de>
This commit is contained in:
@@ -80,6 +80,17 @@
|
||||
"nowhitespace": {
|
||||
"description": "Whether a barcode should be rendered without margins. Only used for type 'barcodearea'.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"color": {
|
||||
"description": "QR color as a tuple of three integers in the 0-255 range and one float in the 0-1 range. The last value (alpha) is ignored by the current implementation but might be used in the future.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 255
|
||||
},
|
||||
"minItems": 3,
|
||||
"maxItems": 4
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
|
||||
Reference in New Issue
Block a user