From 55aa810e8a781b84e7a9d79d23ba5961563272b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=85=D9=87=D8=AF=DB=8C?= Date: Sat, 3 Jul 2021 11:39:11 +0430 Subject: [PATCH] gx: complete the string_colors map (#10634) --- vlib/gx/color.v | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/vlib/gx/color.v b/vlib/gx/color.v index 5d7566b2c3..eefebb8c21 100644 --- a/vlib/gx/color.v +++ b/vlib/gx/color.v @@ -206,9 +206,26 @@ pub fn (c Color) abgr8() int { const ( string_colors = map{ - 'black': black - 'blue': blue - 'red': red + 'blue': blue + 'red': red + 'green': green + 'yellow': yellow + 'orange': orange + 'purple': purple + 'black': black + 'gray': gray + 'indigo': indigo + 'pink': pink + 'violet': violet + 'white': white + 'dark_blue': dark_blue + 'dark_gray': dark_gray + 'dark_green': dark_green + 'dark_red': dark_red + 'light_blue': light_blue + 'light_gray': light_gray + 'light_green': light_green + 'light_red': light_red } )