don't strip first char of colors

This commit is contained in:
Jan Petykiewicz 2024-07-29 22:06:23 -07:00
parent 06a66605d8
commit 0ba516cb6d

4
k2t.py
View File

@ -139,9 +139,7 @@ class Entry:
tag = child.tag tag = child.tag
dtag = tag.replace('-', '_') dtag = tag.replace('-', '_')
if tag in ('frame-color', 'fill-color'): if tag in ('dither-pattern', 'line-style', 'source', 'name', 'frame-color', 'fill-color'):
args[dtag] = child.text[1:]
elif tag in ('dither-pattern', 'line-style', 'source', 'name'):
args[dtag] = child.text args[dtag] = child.text
elif tag in ('valid', 'visible', 'transparent', 'marked', 'xfill', 'expanded'): elif tag in ('valid', 'visible', 'transparent', 'marked', 'xfill', 'expanded'):
val = { val = {