From b36b8e3afb94e3bbd3eaf7503520cccb9cd2cb04 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Wed, 27 Apr 2011 00:03:44 +0200 Subject: [PATCH] Final adjustions to the project logo code - remove the question mark from the default logo for simplification, add a soft drop shadow to make the logo more visible on not so light backgrounds - display the project logo and the lock icon in the project list dropdown - re-position the project title and display the lock icon (if needed) on top of the main logo The code now works best with uploaded logos of 32x32px^2; smaller logos will be downsampled and repositioned on a best breed basis. --- logo/no_logo.svg | 167 ++++++++++++++++++++------- src/IDF/templates/idf/base-full.html | 2 +- src/IDF/templates/idf/base.html | 2 +- src/IDF/templates/idf/main-menu.html | 3 +- www/media/idf/css/style.css | 44 +++++-- www/media/idf/img/no_logo.png | Bin 1248 -> 1438 bytes 6 files changed, 165 insertions(+), 53 deletions(-) diff --git a/logo/no_logo.svg b/logo/no_logo.svg index 80c206b..3149dd1 100644 --- a/logo/no_logo.svg +++ b/logo/no_logo.svg @@ -10,12 +10,12 @@ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" sodipodi:docname="no_logo.svg" - inkscape:version="0.48.0 r9654" + inkscape:version="0.47 r22583" id="svg2985" height="32" width="32" version="1.1" - inkscape:export-filename="/home/www/indefero/logo/no_logo.png" + inkscape:export-filename="/Users/tommyd/Entwicklung/indefero/www/media/idf/img/no_logo.png" inkscape:export-xdpi="89.989998" inkscape:export-ydpi="89.989998"> + inkscape:window-y="0" + inkscape:window-maximized="0" + inkscape:current-layer="g2847" + showguides="true" + inkscape:guide-bbox="true"> + + + + id="defs2987"> + + + + + + + + @@ -53,38 +105,69 @@ + inkscape:groupmode="layer" + id="layer2" + inkscape:label="shadow" + style="display:inline" + sodipodi:insensitive="true"> - - - + transform="translate(0.44042901,0.78704792)" + id="g2847-8" + style="opacity:0.79710143;fill:#000000;stroke:#000000;stroke-opacity:1;filter:url(#filter3816)"> + + + + + + + + + + + + + + + + - ? diff --git a/src/IDF/templates/idf/base-full.html b/src/IDF/templates/idf/base-full.html index 51baf73..2d3440c 100644 --- a/src/IDF/templates/idf/base-full.html +++ b/src/IDF/templates/idf/base-full.html @@ -37,7 +37,7 @@
- {if $project}

{$project} {trans 'Project logo'}

{/if} + {if $project}

{$project}{if $project.private}{trans 'Private project'}{/if}{$p}

{/if} {include 'idf/main-menu.html'}