From ba2a62f6d3a2879c9506ea3fb5aa5552fc4674d9 Mon Sep 17 00:00:00 2001 From: bptato Date: Mon, 28 Aug 2023 20:10:28 +0200 Subject: color: use parseRGBAColor for string parsing Accept here what the TOML config parser would accept too. --- src/types/color.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/types/color.nim b/src/types/color.nim index f96bfc49..664e2047 100644 --- a/src/types/color.nim +++ b/src/types/color.nim @@ -536,7 +536,7 @@ proc fromJS2*(ctx: JSContext, val: JSValue, o: var JSResult[RGBAColor]) = # parse let s = fromJS[string](ctx, val) if s.isSome: - let x = parseHexColor(s.get) + let x = parseRGBAColor(s.get) if x.isSome: o.ok(x.get) else: -- cgit 1.4.1-2-gfad0