From 89c31c032eb2f8df71fbaacdc892f353745ed2ea Mon Sep 17 00:00:00 2001 From: Aurelio A. Heckert Date: Thu, 16 Dec 2010 16:15:21 -0300 Subject: [PATCH] Preview images for the themes --- app/views/themes/index.rhtml | 11 +++++++---- public/designs/themes/aluminium/preview.png | Bin 0 -> 8374 bytes public/designs/themes/butter/preview.png | Bin 0 -> 8355 bytes public/designs/themes/chameleon/preview.png | Bin 0 -> 8462 bytes public/designs/themes/chocolate/preview.png | Bin 0 -> 8434 bytes public/designs/themes/chocolate/preview.xcf | Bin 0 -> 38532 bytes public/designs/themes/noosfero/preview.png | Bin 0 -> 6140 bytes public/designs/themes/noosfero/preview.xcf | Bin 0 -> 36137 bytes public/designs/themes/orange/preview.png | Bin 0 -> 8354 bytes public/designs/themes/plum/preview.png | Bin 0 -> 8450 bytes public/designs/themes/scarletred/preview.png | Bin 0 -> 8310 bytes public/designs/themes/skyblue/preview.png | Bin 0 -> 8454 bytes public/stylesheets/application.css | 9 +++++++++ 13 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 public/designs/themes/aluminium/preview.png create mode 100644 public/designs/themes/butter/preview.png create mode 100644 public/designs/themes/chameleon/preview.png create mode 100644 public/designs/themes/chocolate/preview.png create mode 100644 public/designs/themes/chocolate/preview.xcf create mode 100644 public/designs/themes/noosfero/preview.png create mode 100644 public/designs/themes/noosfero/preview.xcf create mode 100644 public/designs/themes/orange/preview.png create mode 100644 public/designs/themes/plum/preview.png create mode 100644 public/designs/themes/scarletred/preview.png create mode 100644 public/designs/themes/skyblue/preview.png diff --git a/app/views/themes/index.rhtml b/app/views/themes/index.rhtml index 8bffd86..7d6a668 100644 --- a/app/views/themes/index.rhtml +++ b/app/views/themes/index.rhtml @@ -13,9 +13,11 @@ <% selected = (!template.nil? && (@current_template == template.id)) %> - + <% if template %> - <%= image_tag("/designs/templates/#{template.id}/thumbnail.png", :alt => _('The "%s" template')) %> + <%= image_tag("/designs/templates/#{template.id}/thumbnail.png", + :class => 'template-preview', + :alt => _('The "%s" template')) %> <% end %> > @@ -49,9 +51,10 @@ selected = (!theme.nil? && (theme.id == @current_theme)) %> - <%# FIXME add proper thumbnails %> <% if theme %> - <%= image_tag('/images/icons-app/design-editor.png', :alt => (_('The "%s" theme.') % theme.name)) %> + <%= image_tag("/designs/themes/#{theme.name}/preview.png", + :class => 'theme-preview', + :alt => (_('The "%s" theme.') % theme.name)) %> <% end %> > diff --git a/public/designs/themes/aluminium/preview.png b/public/designs/themes/aluminium/preview.png new file mode 100644 index 0000000..372c2f2 Binary files /dev/null and b/public/designs/themes/aluminium/preview.png differ diff --git a/public/designs/themes/butter/preview.png b/public/designs/themes/butter/preview.png new file mode 100644 index 0000000..ee584fb Binary files /dev/null and b/public/designs/themes/butter/preview.png differ diff --git a/public/designs/themes/chameleon/preview.png b/public/designs/themes/chameleon/preview.png new file mode 100644 index 0000000..e5bd0e1 Binary files /dev/null and b/public/designs/themes/chameleon/preview.png differ diff --git a/public/designs/themes/chocolate/preview.png b/public/designs/themes/chocolate/preview.png new file mode 100644 index 0000000..d62c9e8 Binary files /dev/null and b/public/designs/themes/chocolate/preview.png differ diff --git a/public/designs/themes/chocolate/preview.xcf b/public/designs/themes/chocolate/preview.xcf new file mode 100644 index 0000000..7b2e453 Binary files /dev/null and b/public/designs/themes/chocolate/preview.xcf differ diff --git a/public/designs/themes/noosfero/preview.png b/public/designs/themes/noosfero/preview.png new file mode 100644 index 0000000..74840bc Binary files /dev/null and b/public/designs/themes/noosfero/preview.png differ diff --git a/public/designs/themes/noosfero/preview.xcf b/public/designs/themes/noosfero/preview.xcf new file mode 100644 index 0000000..d035f23 Binary files /dev/null and b/public/designs/themes/noosfero/preview.xcf differ diff --git a/public/designs/themes/orange/preview.png b/public/designs/themes/orange/preview.png new file mode 100644 index 0000000..b3bb2d4 Binary files /dev/null and b/public/designs/themes/orange/preview.png differ diff --git a/public/designs/themes/plum/preview.png b/public/designs/themes/plum/preview.png new file mode 100644 index 0000000..18ebb82 Binary files /dev/null and b/public/designs/themes/plum/preview.png differ diff --git a/public/designs/themes/scarletred/preview.png b/public/designs/themes/scarletred/preview.png new file mode 100644 index 0000000..48e0448 Binary files /dev/null and b/public/designs/themes/scarletred/preview.png differ diff --git a/public/designs/themes/skyblue/preview.png b/public/designs/themes/skyblue/preview.png new file mode 100644 index 0000000..4d1ab0f Binary files /dev/null and b/public/designs/themes/skyblue/preview.png differ diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index ace8bba..70da224 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -4071,6 +4071,15 @@ h1#agenda-title { /* ==> public/stylesheets/controller_themes.css <== */ /* common stuff */ + +.controller-themes .template-preview-cell { + text-align: center; +} + +.controller-themes .theme-preview { + border: 1px solid #BBB; +} + .controller-themes #css-files-list h2, .controller-themes #image-files-list h2 { margin-top: 0px; -- libgit2 0.21.2