From: Art Cancro Date: Mon, 12 May 2008 02:08:07 +0000 (+0000) Subject: * Sticky note color selection is now feature complete, X-Git-Tag: v7.86~2267 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=4f0ce36057737146c6379d0eae0cabec13f7fe17 * Sticky note color selection is now feature complete, including saving the new color to the server. * Moved the resize handle to be flush with the corner where it belongs. --- diff --git a/webcit/notes.c b/webcit/notes.c index f4f31b416..5954fd8f0 100644 --- a/webcit/notes.c +++ b/webcit/notes.c @@ -60,11 +60,17 @@ void display_vnote_div(struct vnote *v) { for (i=0; i<9; ++i) { if ((i%3)==0) wprintf(""); wprintf("uid, - pastel_palette[i][0], + pastel_palette[i][0], // color values to pass to ajax call pastel_palette[i][1], - pastel_palette[i][2] + pastel_palette[i][2], + pastel_palette[i][0], // new color of note + pastel_palette[i][1], + pastel_palette[i][2], + pastel_palette[i][0] / 2, // new color of title bar + pastel_palette[i][1] / 2, + pastel_palette[i][2] / 2 ); wprintf("bgcolor=\"#%02x%02x%02x\"> ", pastel_palette[i][0], @@ -78,7 +84,7 @@ void display_vnote_div(struct vnote *v) { wprintf(""); - wprintf(""); // nothing in the title bar, it's just for resizing + wprintf(""); // nothing in the title bar, it's just for dragging wprintf(""); wprintf("uid, _("Delete this note?") ); @@ -97,14 +103,12 @@ void display_vnote_div(struct vnote *v) { wprintf("