about summary refs log tree commit diff stats
path: root/src/config
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/config
parent39a0678199431bf6bfdcec79007f2ac794cab72c (diff)
downloadchawan-911c2dd13051b5c195c60264d07ff7ff6cccc664.tar.gz
color: RGBAColor -> ARGBColor
Diffstat (limited to 'src/config')
-rw-r--r--src/config/config.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config/config.nim b/src/config/config.nim
index 6611b4ef..81630f07 100644
--- a/src/config/config.nim
+++ b/src/config/config.nim
@@ -110,7 +110,7 @@ type
     image_mode* {.jsgetset.}: Option[ImageMode]
     emulate_overline* {.jsgetset.}: bool
     alt_screen* {.jsgetset.}: Option[bool]
-    highlight_color* {.jsgetset.}: RGBAColor
+    highlight_color* {.jsgetset.}: ARGBColor
     highlight_marks* {.jsgetset.}: bool
     double_width_ambiguous* {.jsgetset.}: bool
     minimum_contrast* {.jsgetset.}: int32
@@ -315,7 +315,7 @@ proc parseConfigValue(ctx: var ConfigParser; x: var Option[FormatMode];
   v: TomlValue; k: string)
 proc parseConfigValue(ctx: var ConfigParser; x: var FormatMode; v: TomlValue;
   k: string)
-proc parseConfigValue(ctx: var ConfigParser; x: var RGBAColor; v: TomlValue;
+proc parseConfigValue(ctx: var ConfigParser; x: var ARGBColor; v: TomlValue;
   k: string)
 proc parseConfigValue(ctx: var ConfigParser; x: var RGBColor; v: TomlValue;
   k: string)
@@ -486,10 +486,10 @@ proc parseConfigValue(ctx: var ConfigParser; x: var FormatMode; v: TomlValue;
       raise newException(ValueError, "unknown format mode '" & vv.s &
         "' for key " & kk)
 
-proc parseConfigValue(ctx: var ConfigParser; x: var RGBAColor; v: TomlValue;
+proc parseConfigValue(ctx: var ConfigParser; x: var ARGBColor; v: TomlValue;
     k: string) =
   typeCheck(v, tvtString, k)
-  let c = parseRGBAColor(v.s)
+  let c = parseARGBColor(v.s)
   if c.isNone:
     raise newException(ValueError, "invalid color '" & v.s &
       "' for key " & k)