Add support for dark mode colours to XRC

Allow specifying a different colour to use in the dark mode in XRC
colour properties.

Closes #23571.
This commit is contained in:
Vadim Zeitlin 2023-05-26 00:55:28 +01:00
parent e1f9f8f988
commit f2f2868de5
8 changed files with 69 additions and 17 deletions

View file

@ -458,8 +458,7 @@ t_showeffect = "wxSHOW_EFFECT_NONE" | "wxSHOW_EFFECT_ROLL_TO_LEFT" |
"wxSHOW_EFFECT_EXPAND"
t_url = string
t_colour = xsd:string { pattern = "#[0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z]" } |
xsd:string { pattern = "[^#].*" }
t_colour = xsd:string { pattern = "(#[0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z]|[a-zA-Z0-9 ]+)(\|dark:(#[0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z]|[a-zA-Z0-9 ]+))?" }
t_position = t_size
t_size = xsd:string { pattern = "(-?\d+),(-?\d+)d?" }
t_pair_ints = xsd:string { pattern = "(-?\d+),(-?\d+)" }