mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 16:37:27 +00:00
Fix default generation for nullable colors
This commit is contained in:
parent
0f59a2d543
commit
40ca46d8d8
1 changed files with 1 additions and 1 deletions
|
|
@ -577,7 +577,7 @@ def gen_go_code(defn: Definition) -> str:
|
|||
elif isinstance(d, Color):
|
||||
dval = f'style.RGBA{{Red:{d.red}, Green: {d.green}, Blue: {d.blue}}}'
|
||||
if 'NullableColor' in go_types[name]:
|
||||
dval = f'style.NullableColor{{Color:{dval}}}'
|
||||
dval = f'style.NullableColor{{IsSet: true, Color:{dval}}}'
|
||||
else:
|
||||
dval = repr(d)
|
||||
a(f'{name}: {dval},')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue