aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/col.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2015-03-30 20:47:35 +0200
committerBoris Faure <billiob@gmail.com>2015-03-30 20:47:35 +0200
commit709a55889f03d6da9de7e9310b6148c8996ee0f1 (patch)
tree5d5a05d88d3e296fe68d195bdc7b7c1f48bc2501 /src/bin/col.c
parentfix colors and show darkgray. Closes T2245 (diff)
downloadterminology-709a55889f03d6da9de7e9310b6148c8996ee0f1.tar.gz
Revert "fix colors and show darkgray. Closes https://phab.enlightenment.org/T2245"
Diffstat (limited to 'src/bin/col.c')
-rw-r--r--src/bin/col.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/bin/col.c b/src/bin/col.c
index 65fc6ca..003847c 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)
for (c = 0; c < (4 * 12); c++)
{
- n = c;
+ n = c + (24 * (c / 24));
if (config->colors_use)
{
r = config->colors[c].r;
@@ -421,19 +421,9 @@ colors_term_init(Evas_Object *textgrid, Evas_Object *bg, Config *config)
r, g, b, a);
/* faint */
- if ((n == 1) && (r == 0) && (g == 0) && (b == 0))
- {
- /* dark gray */
- evas_object_textgrid_palette_set(
- textgrid, EVAS_TEXTGRID_PALETTE_STANDARD, n + 48,
- 127, 127, 127, 127);
- }
- else
- {
- evas_object_textgrid_palette_set(
- textgrid, EVAS_TEXTGRID_PALETTE_STANDARD, n + 48,
- r / 2, g / 2, b / 2, a / 2);
- }
+ evas_object_textgrid_palette_set(
+ textgrid, EVAS_TEXTGRID_PALETTE_STANDARD, n + 24,
+ r / 2, g / 2, b / 2, a / 2);
}
for (c = 0; c < 256; c++)
{