Skip to content

Commit

Permalink
icons: Replace gif icons from mediaIndexer by png icons from Tango.
Browse files Browse the repository at this point in the history
The Tango project defines a set of standardized icons. These are available on a
CC-BY-SA 2.5 license and look nicer than the old icons. So replace the old
icons.

Default icon size changed to 32x32 to follow the size set by the rendered
preview icons.
  • Loading branch information
kblin committed Oct 31, 2008
1 parent 6280b58 commit 301ad67
Show file tree
Hide file tree
Showing 43 changed files with 20 additions and 8 deletions.
10 changes: 10 additions & 0 deletions README.txt
Expand Up @@ -17,3 +17,13 @@ Tweak the config file as appropriate and then setup the application::
paster setup-app config.ini paster setup-app config.ini


Then you are ready to go. Then you are ready to go.


Licensing
=========

Unless otherwise mentioned, all files are released under the GNU GPL v2.
A notable exception to this are some of the icons in wombat/public/images, which
were released under a CC-BY-SA 2.5 license by the Tango project.
(http://tango.freedesktop.org/Tango_Icon_Library)

2 changes: 1 addition & 1 deletion wombat/lib/preview.py
Expand Up @@ -103,7 +103,7 @@ def getIcon(file):
if icon_name == None: if icon_name == None:
icon_name = createPreview(file, "icon") icon_name = createPreview(file, "icon")
if icon_name == None: if icon_name == None:
return "/images/%s.gif" % getType(file.name) return "/images/%s.png" % getType(file.name)


return "/thumb/%s" % icon_name return "/thumb/%s" % icon_name


Binary file removed wombat/public/images/admin.gif
Binary file not shown.
Binary file removed wombat/public/images/archive.gif
Binary file not shown.
Binary file removed wombat/public/images/code.gif
Binary file not shown.
Binary file removed wombat/public/images/compressed.gif
Binary file not shown.
Binary file removed wombat/public/images/dir.gif
Binary file not shown.
Binary file added wombat/public/images/dir.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added wombat/public/images/dir_small.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed wombat/public/images/download.gif
Binary file not shown.
Binary file removed wombat/public/images/edit.gif
Binary file not shown.
Binary file added wombat/public/images/edit.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed wombat/public/images/flash.gif
Binary file not shown.
Binary file removed wombat/public/images/image.gif
Binary file not shown.
Binary file added wombat/public/images/image.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed wombat/public/images/model.gif
Binary file not shown.
Binary file added wombat/public/images/model.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed wombat/public/images/na.gif
Binary file not shown.
Binary file removed wombat/public/images/other.gif
Binary file not shown.
Binary file added wombat/public/images/other.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed wombat/public/images/para.gif
Binary file not shown.
Binary file removed wombat/public/images/pdf.gif
Binary file not shown.
Binary file removed wombat/public/images/ps.gif
Binary file not shown.
Binary file removed wombat/public/images/quicktime.gif
Binary file not shown.
Binary file removed wombat/public/images/realplayer.gif
Binary file not shown.
Binary file removed wombat/public/images/req-on.png
Binary file not shown.
Binary file removed wombat/public/images/sound.gif
Binary file not shown.
Binary file added wombat/public/images/sound.png
Binary file removed wombat/public/images/stream.gif
Diff not rendered.
Binary file removed wombat/public/images/text.gif
Diff not rendered.
Binary file added wombat/public/images/text.png
Binary file removed wombat/public/images/up.gif
Diff not rendered.
Binary file added wombat/public/images/up.png
Binary file removed wombat/public/images/video.gif
Diff not rendered.
Binary file added wombat/public/images/video.png
Binary file removed wombat/public/images/winmedia.gif
Diff not rendered.
Binary file removed wombat/public/images/word.gif
Diff not rendered.
Binary file removed wombat/public/images/zipdir.gif
Diff not rendered.
Binary file added wombat/public/images/zipdir.png
4 changes: 2 additions & 2 deletions wombat/templates/components/dir_trees.html
@@ -1,14 +1,14 @@
%if c.dir != '': %if c.dir != '':
%if c.dir.path != u'.': %if c.dir.path != u'.':
<li><a href="${h.url_for(controller="dir")}?path=${c.dir.parent.path}"> <li><a href="${h.url_for(controller="dir")}?path=${c.dir.parent.path}">
<img src="/images/up.gif" alt="<-" border="0" /> <img src="/images/up.png" alt="<-" border="0" />
Up one level Up one level
</a> </a>
</li> </li>
%endif %endif
%for dir in c.dir.subdirs: %for dir in c.dir.subdirs:
<li><a href="${h.url_for(controller="dir")}?path=${dir.path}"> <li><a href="${h.url_for(controller="dir")}?path=${dir.path}">
<img src="/images/dir.gif" alt="->" border="0" /> <img src="/images/dir_small.png" alt="->" border="0" />
${h.truncStr(dir.name, 20)} ${h.truncStr(dir.name, 20)}
</a> </a>
</li> </li>
Expand Down
8 changes: 5 additions & 3 deletions wombat/templates/components/nav.html
Expand Up @@ -2,15 +2,17 @@
<h3 class="lfloat">Navigation&nbsp;</h3> <h3 class="lfloat">Navigation&nbsp;</h3>
<ul> <ul>
%for entry in h.getBreadcrumbTrail(c.dir): %for entry in h.getBreadcrumbTrail(c.dir):
<li><a href="${h.url_for(controller="dir")}?path=${entry.path}"><img src="/images/dir.gif" border="0" alt="*" />&nbsp;${h.truncStr(entry.name,12)}</a> <li><a
href="${h.url_for(controller="dir")}?path=${entry.path}"><img
src="/images/dir_small.png" border="0" alt="*" />&nbsp;${h.truncStr(entry.name,12)}</a>
%endfor %endfor
%if c.file != "": %if c.file != "":
<li><a href="${h.url_for(controller="dir")}?path=${c.dir.path}"> <li><a href="${h.url_for(controller="dir")}?path=${c.dir.path}">
<img src="/images/dir.gif" border="0" alt="*" />&nbsp;${h.truncStr(c.dir.name, 12)} <img src="/images/dir_small.png" border="0" alt="*" />&nbsp;${h.truncStr(c.dir.name, 12)}
</a> </a>
</li> </li>
%else: %else:
<li><img src="/images/dir.gif" border="0" alt="*" />&nbsp;${h.truncStr(c.dir.name, 12)}</li> <li><img src="/images/dir_small.png" border="0" alt="*" />&nbsp;${h.truncStr(c.dir.name, 12)}</li>
%endif %endif
</ul> </ul>
</div> </div>
2 changes: 1 addition & 1 deletion wombat/templates/derived/dir/dirlist.html
Expand Up @@ -7,7 +7,7 @@ <h3>Subdirectories</h3>
%for dir in c.dir.subdirs: %for dir in c.dir.subdirs:
<td class="cell" valign="top" width="50%"> <td class="cell" valign="top" width="50%">
<a href="${h.url_for(controller="dir")}?path=${dir.path}" title="${dir.name}"> <a href="${h.url_for(controller="dir")}?path=${dir.path}" title="${dir.name}">
<img class="fade" src="/images/dir.gif" <img class="fade" src="/images/dir.png"
border="0" alt="*" />&nbsp;${h.truncStr(dir.name,26)}&nbsp; border="0" alt="*" />&nbsp;${h.truncStr(dir.name,26)}&nbsp;
<small>(${len(dir.subdirs)} subdirs &nbsp;${len(dir.files)} files)</small><br /> <small>(${len(dir.subdirs)} subdirs &nbsp;${len(dir.files)} files)</small><br />
</a> </a>
Expand Down
2 changes: 1 addition & 1 deletion wombat/templates/derived/show/searchresults.html
Expand Up @@ -10,7 +10,7 @@ <h3>Found Directories</h3>
%for dir in c.found_dirs: %for dir in c.found_dirs:
<td class="cell" valign="top" width="50%"> <td class="cell" valign="top" width="50%">
<a href="${h.url_for(controller="dir")}?path=${dir.path}" title="Open ${dir.name}"> <a href="${h.url_for(controller="dir")}?path=${dir.path}" title="Open ${dir.name}">
<img class="fade" src="/images/dir.gif" border="0" alt="*" /> <img class="fade" src="/images/dir.png" border="0" alt="*" />
</a> </a>
&nbsp; &nbsp;
<a href="${h.url_for(controller="dir")}?path=${dir.path}" title="Directory details: ${dir.name}"> <a href="${h.url_for(controller="dir")}?path=${dir.path}" title="Directory details: ${dir.name}">
Expand Down

0 comments on commit 301ad67

Please sign in to comment.