Skip to content

Commit 55aa810

Browse files
authored
gx: complete the string_colors map (#10634)
1 parent ec973f5 commit 55aa810

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

vlib/gx/color.v

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,26 @@ pub fn (c Color) abgr8() int {
206206

207207
const (
208208
string_colors = map{
209-
'black': black
210-
'blue': blue
211-
'red': red
209+
'blue': blue
210+
'red': red
211+
'green': green
212+
'yellow': yellow
213+
'orange': orange
214+
'purple': purple
215+
'black': black
216+
'gray': gray
217+
'indigo': indigo
218+
'pink': pink
219+
'violet': violet
220+
'white': white
221+
'dark_blue': dark_blue
222+
'dark_gray': dark_gray
223+
'dark_green': dark_green
224+
'dark_red': dark_red
225+
'light_blue': light_blue
226+
'light_gray': light_gray
227+
'light_green': light_green
228+
'light_red': light_red
212229
}
213230
)
214231

0 commit comments

Comments
 (0)