Pencil's down. Tweaks, Bug fixes, Demo themes, Code documentation

skiquel's picture
Commits #134703, #134705

  Last minute touchups + Code documentation + Demonstration themes

  - markup: fixed bug with extra </div> closing tag in scheme editing caused by preview
  - block: fixed bug with block on anonymous user scheme block
  - block: new "edit" button for super-administrator (UID 1), for quick access to scheme
  - block: "select scheme" is now "select"
  - block: blocks will no longer show up if scheme info not generated
  - under the hood: color_find_scheme_by_UID() rewritten
  - under the hood''fill' now supports unlimited of the same color. markup changed to array(x, y, width, height, color_name)
  - under the hood: Uninstall and Regenerate will now remove color_theme_* rows in {variable}.
  - under the hood: fixed bug with incorrect scheme stylesheets being applied to new theme
  - under the hood: color_validate() check to see if color.inc markup is correct.
  - under the hood: reworked color_check_themes()
    - supports array of themes, single theme variable
    - more efficient algorithm to check
    - includes support for color_validate()
  - under the hood: color_theme_scheme_generated() and color_theme_info_generated() return information on if a theme's color has been generated or not
  - under the hood: functions moved
    - color_get_theme_info() is now in color.database.inc
    - color_find_scheme_by_UID() is now color.database.inc
    - color_store_reset() is now color.database.inc
    - color_get_ref() is now in color.database.inc. Renamed to color_get_reference()
    - color_validate() is now in color.misc.inc
    - Reordered functions in color.module
  - under the hood: tweaking
    - color_user() will not include module files if not needed
  - under the hood: fix theme that show when block view
  - under the hood: reworked the way logo replacement works. slice or copy a logo.png file for a logo, or mention no logo.png in color.inc and it will use your theme's default logo.png (so you can use it later).
  - scheme editor: "Previous Colors" is now color history
  - scheme editor: will now see scheme title. :)
  - scheme editor: will now see breadcrumb including scheme
  - scheme editor: "Previous colors" and "Suggested colors" are now in a fieldset with a legend
  - scheme editor: if no scheme preview CSS or HTML is provided, no preview will be shown
  - Code: Added doxygen reference to functions
  - Demonstration themes: Completely redone themes: cleanstate, friendselectric*, nista, simpla, splender, spooner. Upgraded to new color module: Garland, Minnelli. All are featuring full color support and can be used as examples. :)
 
  * Updated from old 4.7 version (with color support added) -- however this is still bug-prone. There is a width problem in IE7 and button background one in IE6. Just a proof of concept for now. :)