about summary refs log tree commit diff stats
path: root/src/css
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-04-26 21:03:25 +0200
committerbptato <nincsnevem662@gmail.com>2024-04-26 21:05:57 +0200
commit911c2dd13051b5c195c60264d07ff7ff6cccc664 (patch)
tree63ab17a0a4baf890aab4ac3f5a15da2876b2464d /src/css
parent39a0678199431bf6bfdcec79007f2ac794cab72c (diff)
downloadchawan-911c2dd13051b5c195c60264d07ff7ff6cccc664.tar.gz
color: RGBAColor -> ARGBColor
Diffstat (limited to 'src/css')
-rw-r--r--src/css/values.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/css/values.nim b/src/css/values.nim
index 647e3d67..1a373ae1 100644
--- a/src/css/values.nim
+++ b/src/css/values.nim
@@ -575,7 +575,7 @@ func quoteEnd*(level: int): string =
     return "“"
   return "‘"
 
-const Colors: Table[string, RGBAColor] = ((func (): Table[string, RGBAColor] =
+const Colors: Table[string, ARGBColor] = ((func (): Table[string, ARGBColor] =
   for name, rgb in ColorsRGB:
     result[name] = rgb
   result["transparent"] = rgba(0x00, 0x00, 0x00, 0x00)
@@ -636,7 +636,7 @@ func skipWhitespace(vals: openArray[CSSComponentValue]; i: var int) =
       break
     inc i
 
-func parseRGBA(value: openArray[CSSComponentValue]): Opt[CellColor] =
+func parseARGB(value: openArray[CSSComponentValue]): Opt[CellColor] =
   var i = 0
   var commaMode = false
   template check_err(slash: bool) =
@@ -735,7 +735,7 @@ func cssColor*(val: CSSComponentValue): Opt[CellColor] =
   elif val of CSSFunction:
     let f = CSSFunction(val)
     if f.name.equalsIgnoreCase("rgb") or f.name.equalsIgnoreCase("rgba"):
-      return parseRGBA(f.value)
+      return parseARGB(f.value)
     elif f.name.equalsIgnoreCase("-cha-ansi"):
       return parseANSI(f.value)
   return err()