]> granicus.if.org Git - vim/commitdiff
patch 7.4.1786 v7.4.1786
authorBram Moolenaar <Bram@vim.org>
Sun, 24 Apr 2016 13:41:33 +0000 (15:41 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 24 Apr 2016 13:41:33 +0000 (15:41 +0200)
Problem:    Compiled-in colors do not match rgb.txt.
Solution:   Use the rgb.txt colors. (Kazunobu Kuriyama)

src/term.c
src/version.c

index 34549b152aef076e53deba12dd7a4c29be789c2a..f66236725ac8384302c820a56b46fcbc64e018af 100644 (file)
@@ -1274,18 +1274,18 @@ struct rgbcolor_table_S {
 
 static struct rgbcolor_table_S rgb_table[] = {
        {(char_u *)"black",     RGB(0x00, 0x00, 0x00)},
-       {(char_u *)"blue",      RGB(0x00, 0x00, 0xD4)},
-       {(char_u *)"brown",     RGB(0x80, 0x40, 0x40)},
-       {(char_u *)"cyan",      RGB(0x02, 0xAB, 0xEA)},
-       {(char_u *)"darkblue",  RGB(0x00, 0x00, 0x80)},
-       {(char_u *)"darkcyan",  RGB(0x00, 0x80, 0x80)},
-       {(char_u *)"darkgray",  RGB(0x80, 0x80, 0x80)},
-       {(char_u *)"darkgreen", RGB(0x00, 0x80, 0x00)},
-       {(char_u *)"darkgrey",  RGB(0x80, 0x80, 0x80)},
-       {(char_u *)"darkmagenta",       RGB(0x80, 0x00, 0x80)},
-       {(char_u *)"darkred",   RGB(0x80, 0x00, 0x00)},
-       {(char_u *)"darkyellow",        RGB(0xBB, 0xBB, 0x00)},
-       {(char_u *)"gray",      RGB(0xC0, 0xC0, 0xC0)},
+       {(char_u *)"blue",      RGB(0x00, 0x00, 0xFF)},
+       {(char_u *)"brown",     RGB(0xA5, 0x2A, 0x2A)},
+       {(char_u *)"cyan",      RGB(0x00, 0xFF, 0xFF)},
+       {(char_u *)"darkblue",  RGB(0x00, 0x00, 0x8B)},
+       {(char_u *)"darkcyan",  RGB(0x00, 0x8B, 0x8B)},
+       {(char_u *)"darkgray",  RGB(0xA9, 0xA9, 0xA9)},
+       {(char_u *)"darkgreen", RGB(0x00, 0x64, 0x00)},
+       {(char_u *)"darkgrey",  RGB(0xA9, 0xA9, 0xA9)},
+       {(char_u *)"darkmagenta",       RGB(0x8B, 0x00, 0x8B)},
+       {(char_u *)"darkred",   RGB(0x8B, 0x00, 0x00)},
+       {(char_u *)"darkyellow",        RGB(0x8B, 0x8B, 0x00)}, /* No X11 */
+       {(char_u *)"gray",      RGB(0xBE, 0xBE, 0xBE)},
        {(char_u *)"gray10",    RGB(0x1A, 0x1A, 0x1A)},
        {(char_u *)"gray20",    RGB(0x33, 0x33, 0x33)},
        {(char_u *)"gray30",    RGB(0x4D, 0x4D, 0x4D)},
@@ -1295,8 +1295,8 @@ static struct rgbcolor_table_S rgb_table[] = {
        {(char_u *)"gray70",    RGB(0xB3, 0xB3, 0xB3)},
        {(char_u *)"gray80",    RGB(0xCC, 0xCC, 0xCC)},
        {(char_u *)"gray90",    RGB(0xE5, 0xE5, 0xE5)},
-       {(char_u *)"green",     RGB(0x00, 0x64, 0x11)},
-       {(char_u *)"grey",      RGB(0xC0, 0xC0, 0xC0)},
+       {(char_u *)"green",     RGB(0x00, 0xFF, 0x00)},
+       {(char_u *)"grey",      RGB(0xBE, 0xBE, 0xBE)},
        {(char_u *)"grey10",    RGB(0x1A, 0x1A, 0x1A)},
        {(char_u *)"grey20",    RGB(0x33, 0x33, 0x33)},
        {(char_u *)"grey30",    RGB(0x4D, 0x4D, 0x4D)},
@@ -1306,23 +1306,23 @@ static struct rgbcolor_table_S rgb_table[] = {
        {(char_u *)"grey70",    RGB(0xB3, 0xB3, 0xB3)},
        {(char_u *)"grey80",    RGB(0xCC, 0xCC, 0xCC)},
        {(char_u *)"grey90",    RGB(0xE5, 0xE5, 0xE5)},
-       {(char_u *)"lightblue", RGB(0xA0, 0xA0, 0xFF)},
-       {(char_u *)"lightcyan", RGB(0xA0, 0xFF, 0xFF)},
-       {(char_u *)"lightgray", RGB(0xE0, 0xE0, 0xE0)},
-       {(char_u *)"lightgreen",        RGB(0xA0, 0xFF, 0xA0)},
-       {(char_u *)"lightgrey", RGB(0xE0, 0xE0, 0xE0)},
-       {(char_u *)"lightmagenta",RGB(0xF0, 0xA0, 0xF0)},
-       {(char_u *)"lightred",  RGB(0xFF, 0xA0, 0xA0)},
-       {(char_u *)"lightyellow",       RGB(0xFF, 0xFF, 0xA0)},
-       {(char_u *)"magenta",   RGB(0xF2, 0x08, 0x84)},
-       {(char_u *)"orange",    RGB(0xFC, 0x80, 0x00)},
+       {(char_u *)"lightblue", RGB(0xAD, 0xD8, 0xE6)},
+       {(char_u *)"lightcyan", RGB(0xE0, 0xFF, 0xFF)},
+       {(char_u *)"lightgray", RGB(0xD3, 0xD3, 0xD3)},
+       {(char_u *)"lightgreen",        RGB(0x90, 0xEE, 0x90)},
+       {(char_u *)"lightgrey", RGB(0xD3, 0xD3, 0xD3)},
+       {(char_u *)"lightmagenta",      RGB(0xFF, 0x8B, 0xFF)}, /* No X11 */
+       {(char_u *)"lightred",  RGB(0xFF, 0x8B, 0x8B)},         /* No X11 */
+       {(char_u *)"lightyellow",       RGB(0xFF, 0xFF, 0xE0)},
+       {(char_u *)"magenta",   RGB(0xFF, 0x00, 0xFF)},
+       {(char_u *)"orange",    RGB(0xFF, 0xA5, 0x00)},
        {(char_u *)"purple",    RGB(0xA0, 0x20, 0xF0)},
-       {(char_u *)"red",               RGB(0xDD, 0x08, 0x06)},
+       {(char_u *)"red",       RGB(0xFF, 0x00, 0x00)},
        {(char_u *)"seagreen",  RGB(0x2E, 0x8B, 0x57)},
        {(char_u *)"slateblue", RGB(0x6A, 0x5A, 0xCD)},
-       {(char_u *)"violet",    RGB(0x8D, 0x38, 0xC9)},
+       {(char_u *)"violet",    RGB(0xEE, 0x82, 0xEE)},
        {(char_u *)"white",     RGB(0xFF, 0xFF, 0xFF)},
-       {(char_u *)"yellow",    RGB(0xFC, 0xF3, 0x05)},
+       {(char_u *)"yellow",    RGB(0xFF, 0xFF, 0x00)},
 };
 
     static int
index 46ada0b60d7213a7b797caba2a9184757f0fa5a6..a5dfd2a04a5ba16db95655ef261b84f6ec67aa90 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1786,
 /**/
     1785,
 /**/