X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fnotes.c;h=f4f31b416f30faeb8cd1f96ef9f1290f0cfea220;hb=690c35cb83df8a561beedc733bf9022e18102804;hp=1fcb6213d5870eff42a2d65344a4f1ea23eb01e1;hpb=1c9d9d758bac60c1a9a36d57fe5b8162171519e8;p=citadel.git diff --git a/webcit/notes.c b/webcit/notes.c index 1fcb6213d..f4f31b416 100644 --- a/webcit/notes.c +++ b/webcit/notes.c @@ -7,16 +7,16 @@ #include "groupdav.h" #include "webserver.h" -char *pastel_palette[] = { - "#808080", - "#ff8080", - "#8080ff", - "#ffff80", - "#80ff80", - "#ff80ff", - "#80ffff", - "#ff8080", - "#808080" +int pastel_palette[9][3] = { + { 0x80, 0x80, 0x80 }, + { 0xff, 0x80, 0x80 }, + { 0x80, 0x80, 0xff }, + { 0xff, 0xff, 0x80 }, + { 0x80, 0xff, 0x80 }, + { 0xff, 0x80, 0xff }, + { 0x80, 0xff, 0xff }, + { 0xff, 0x80, 0x80 }, + { 0x80, 0x80, 0x80 } }; @@ -59,7 +59,18 @@ void display_vnote_div(struct vnote *v) { wprintf("
", pastel_palette[i]); + wprintf(" | uid, + pastel_palette[i][0], + pastel_palette[i][1], + pastel_palette[i][2] + ); + wprintf("bgcolor=\"#%02x%02x%02x\"> | ", + pastel_palette[i][0], + pastel_palette[i][1], + pastel_palette[i][2] + ); if (((i+1)%3)==0) wprintf("