mess with colors

This commit is contained in:
Andrew Pamment 2017-03-31 09:43:52 +10:00
parent 6795e55a6e
commit c0d326075c

39
deps/aha/aha.c vendored
View File

@ -246,29 +246,60 @@ char * aha(char *input)
switch (fc) switch (fc)
{ {
case 0: case 0:
if (bo) {
append_output(&output, "color:dimgray;", &size, &outat); append_output(&output, "color:dimgray;", &size, &outat);
} else {
append_output(&output, "color:dimgray;", &size, &outat);
}
break; //Black break; //Black
case 1: case 1:
if (bo) {
append_output(&output, "color:#FF8888;", &size, &outat);
} else {
append_output(&output, "color:red;", &size, &outat); append_output(&output, "color:red;", &size, &outat);
}
break; //Red break; //Red
case 2: case 2:
if (bo) {
append_output(&output, "color:lime;", &size, &outat); append_output(&output, "color:lime;", &size, &outat);
} else {
append_output(&output, "color:#00ff00;", &size, &outat);
}
break; //Green break; //Green
case 3: case 3:
if (bo) {
append_output(&output, "color:yellow;", &size, &outat); append_output(&output, "color:yellow;", &size, &outat);
} else {
append_output(&output, "color:olive;", &size, &outat);
}
break; //Yellow break; //Yellow
case 4: case 4:
append_output(&output, "color:#3333FF;", &size, &outat); if (bo) {
append_output(&output, "color:#8888FF;", &size, &outat);
} else {
append_output(&output, "color:#0000FF;", &size, &outat);
}
break; //Blue break; //Blue
case 5: case 5:
if (bo) {
append_output(&output, "color:fuchsia;", &size, &outat); append_output(&output, "color:fuchsia;", &size, &outat);
} else {
append_output(&output, "color:#FF00FF;", &size, &outat);
}
break; //Purple break; //Purple
case 6: case 6:
if (bo) {
append_output(&output, "color:aqua;", &size, &outat); append_output(&output, "color:aqua;", &size, &outat);
} else {
append_output(&output, "color:#FFFF00", &size, &outat);
}
break; //Cyan break; //Cyan
case 7: case 7:
if (bo) {
append_output(&output, "color:white;", &size, &outat); append_output(&output, "color:white;", &size, &outat);
} else {
append_output(&output, "color:grey;", &size, &outat);
}
break; //White break; //White
case 8: case 8:
append_output(&output, "color:black;", &size, &outat); append_output(&output, "color:black;", &size, &outat);
@ -314,10 +345,6 @@ char * aha(char *input)
if (ul) if (ul)
{ {
append_output(&output, "text-decoration:underline;", &size, &outat); append_output(&output, "text-decoration:underline;", &size, &outat);
}
if (bo)
{
append_output(&output, "font-weight:bold;", &size, &outat);
} }
if (bl) if (bl)
{ {