From 4f0ce36057737146c6379d0eae0cabec13f7fe17 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 12 May 2008 02:08:07 +0000 Subject: [PATCH] * 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. --- webcit/notes.c | 27 ++++++++++++++++++++------- webcit/static/wclib.js | 30 ++++++++++++++++++++++++------ webcit/static/webcit.css | 4 ++-- 3 files changed, 46 insertions(+), 15 deletions(-) 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("