• Color-coded Welcome Page

    By Dave Leigh 2 decades ago

    I modified the embedded view in the Welcome page to color-code the entries by date:

    http://www.cratchit.org/VIC/Screenshots/WelcomeColor.png



    Not a huge change programmatically, but a big step forward in user-friendliness. I've occasionally missed a To-do in the past because I've not paid attention to the Welcome view. (Some items don't really rate setting an alarm, but should still be "promoted" to the user somehow. This is a balance between being too annoyingly obtrusive and missing out.



    Items due today show up as red text on a pale yellow background.

    Past dues are red text on white. Everything else is the default color (alternate row color is unaffected).



    The view is byProfDateNoPastDates | Welcome.

    There's a new column inserted before SortedDate. It's set to "Use Value as Color" with this formula:



    ==========

    system := -1:-1:-1;

    red := 255:0:0;

    paleyellow := 255:255:208;

    white := 255:255:255;

    @If(StartDate=@Today;paleyellow:red; StartDate<@Today;white:red; system)

    ==========



    (Here are other color codes if you want to change them to some distasteful HotDog scheme):

    system := -1:-1:-1;

    red := 255:0:0;

    redbkgd := 255:221:221;

    blue := 0:0:255;

    blue2 := 0:0:128;

    bluebkgd := 221:221:255;

    purple := 128:0:128;

    darkgreen := 0:160:0;

    greenbkgd := 221:255:221;

    brown := 130:66:0;

    yellow := 255:255:0;

    paleyellow := 255:255:208;

    tan := 224:161:117;

    defaultcolor := 0:0:0;

    pink := 255:193:253;

    white := 255:255:255;

    black := 1:1:1;

    apricot := 255:155:133;