summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2015-03-29 20:37:17 +0200
committerBoris Faure <billiob@gmail.com>2015-03-29 20:37:17 +0200
commit834ee015327d0730de4272210bb5f655912141a6 (patch)
tree23bcdc2e38257b42eda8acd9b908561bfb1ac381 /src
parent29cf9139510cfe44cc67078ad7cddad717196386 (diff)
fix colors and show darkgray. Closes T2245
Diffstat (limited to 'src')
-rw-r--r--src/bin/col.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/bin/col.c b/src/bin/col.c
index 003847c..65fc6ca 100644
--- a/src/bin/col.c
+++ b/src/bin/col.c
@@ -389,7 +389,7 @@ colors_term_init(Evas_Object *textgrid, Evas_Object *bg, Config *config)
389 389
390 for (c = 0; c < (4 * 12); c++) 390 for (c = 0; c < (4 * 12); c++)
391 { 391 {
392 n = c + (24 * (c / 24)); 392 n = c;
393 if (config->colors_use) 393 if (config->colors_use)
394 { 394 {
395 r = config->colors[c].r; 395 r = config->colors[c].r;
@@ -421,9 +421,19 @@ colors_term_init(Evas_Object *textgrid, Evas_Object *bg, Config *config)
421 r, g, b, a); 421 r, g, b, a);
422 422
423 /* faint */ 423 /* faint */
424 evas_object_textgrid_palette_set( 424 if ((n == 1) && (r == 0) && (g == 0) && (b == 0))
425 textgrid, EVAS_TEXTGRID_PALETTE_STANDARD, n + 24, 425 {
426 r / 2, g / 2, b / 2, a / 2); 426 /* dark gray */
427 evas_object_textgrid_palette_set(
428 textgrid, EVAS_TEXTGRID_PALETTE_STANDARD, n + 48,
429 127, 127, 127, 127);
430 }
431 else
432 {
433 evas_object_textgrid_palette_set(
434 textgrid, EVAS_TEXTGRID_PALETTE_STANDARD, n + 48,
435 r / 2, g / 2, b / 2, a / 2);
436 }
427 } 437 }
428 for (c = 0; c < 256; c++) 438 for (c = 0; c < 256; c++)
429 { 439 {