about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-08-28 20:10:28 +0200
committerbptato <nincsnevem662@gmail.com>2023-08-28 20:10:28 +0200
commitba2a62f6d3a2879c9506ea3fb5aa5552fc4674d9 (patch)
treeb45bbc071c711f0c1d9616f65d73b89887c8653f /src
parent1aafbc1d8adc69ea593efb4c0b9a7c5c2f3b9fa5 (diff)
downloadchawan-ba2a62f6d3a2879c9506ea3fb5aa5552fc4674d9.tar.gz
color: use parseRGBAColor for string parsing
Accept here what the TOML config parser would accept too.
Diffstat (limited to 'src')
-rw-r--r--src/types/color.nim2
1 files changed, 1 insertions, 1 deletions
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: