solarized: set faint/dim colors for black

It was previously invisible
terminology-1.2
Boris Faure 5 years ago
parent a1d9dba1d0
commit 67fb28a67c
  1. 6
      data/themes/solarized.edc
  2. 5
      data/themes/solarized_light.edc
  3. 40
      src/bin/col.c

@ -40,6 +40,7 @@ color_classes {
color_class { name: "c19"; color: S_base1; }
color_class { name: "c20"; color: S_base3; }
color_class { name: "c24"; color: S_base00; }
color_class { name: "c25"; color: S_base03; }
color_class { name: "c26"; color: S_orange; }
color_class { name: "c27"; color: S_base01; }
@ -58,6 +59,11 @@ color_classes {
color_class { name: "c43"; color: S_base1; }
color_class { name: "c44"; color: S_base3; }
color_class { name: "c49"; color: S_base01; }
color_class { name: "c61"; color: S_base01; }
color_class { name: "c73"; color: S_base01; }
color_class { name: "c85"; color: S_base01; }
color_class { name: "C0"; color: S_base02; } // COL_BLACK
color_class { name: "C1"; color: S_red; } // COL_RED
color_class { name: "C2"; color: S_green; } // COL_GREEN

@ -51,6 +51,11 @@ color_classes {
color_class { name: "c38"; color: S_magenta; }
color_class { name: "c49"; color: S_base01; }
color_class { name: "c61"; color: S_base01; }
color_class { name: "c73"; color: S_base01; }
color_class { name: "c85"; color: S_base01; }
color_class { name: "C0"; color: S_base02; } // COL_BLACK
color_class { name: "C1"; color: S_red; } // COL_RED
color_class { name: "C2"; color: S_green; } // COL_GREEN

@ -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);

Loading…
Cancel
Save