aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2018-02-14 22:32:50 +0100
committerBoris Faure <billiob@gmail.com>2018-02-14 22:32:50 +0100
commit67fb28a67c57c262e4e0b00191944e3e7c096b17 (patch)
tree8b4f13d88bb36a3508a968348eba99712576d60c /src
parentterminology efl version bump 1.8 to 1.20 (diff)
downloadterminology-67fb28a67c57c262e4e0b00191944e3e7c096b17.tar.gz
solarized: set faint/dim colors for black
It was previously invisible
Diffstat (limited to 'src')
-rw-r--r--src/bin/col.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/bin/col.c b/src/bin/col.c
index e73b472..57b2a56 100644
--- a/src/bin/col.c
+++ b/src/bin/col.c
@@ -427,6 +427,46 @@ colors_term_init(Evas_Object *textgrid,
textgrid, EVAS_TEXTGRID_PALETTE_STANDARD, n + 24,
r / 2, g / 2, b / 2, a / 2);
}
+ for (c = 48; c < 72; c++)
+ {
+ if (!config->colors_use)
+ {
+ snprintf(buf, sizeof(buf) - 1, "c%i", c);
+ if (edje_object_color_class_get(bg, buf,
+ &r,
+ &g,
+ &b,
+ &a,
+ NULL, NULL, NULL, NULL,
+ NULL, NULL, NULL, NULL))
+ {
+ /* faint */
+ evas_object_textgrid_palette_set(
+ textgrid, EVAS_TEXTGRID_PALETTE_STANDARD, c,
+ r, g, b, a);
+ }
+ }
+ }
+ for (c = 72; c < 96; c++)
+ {
+ if (!config->colors_use)
+ {
+ snprintf(buf, sizeof(buf) - 1, "c%i", c);
+ if (edje_object_color_class_get(bg, buf,
+ &r,
+ &g,
+ &b,
+ &a,
+ NULL, NULL, NULL, NULL,
+ NULL, NULL, NULL, NULL))
+ {
+ /* faint */
+ evas_object_textgrid_palette_set(
+ textgrid, EVAS_TEXTGRID_PALETTE_STANDARD, c - 48,
+ r, g, b, a);
+ }
+ }
+ }
for (c = 0; c < 256; c++)
{
snprintf(buf, sizeof(buf) - 1, "C%i", c);