Browse files

Changed font size and thumbnail size for #245

  • Loading branch information...
1 parent 0fae556 commit 927a9221778147a90fdeb04fad391f05f1da42c7 @brzaik brzaik committed Dec 17, 2012
Showing with 5 additions and 5 deletions.
  1. +4 −4 app/models/template.rb
  2. +1 −1 app/views/subscriptions/manage.html.erb
View
8 app/models/template.rb
@@ -86,19 +86,19 @@ def preview_image(hide_fields=false, hide_text=false, only_fields=[])
next
end
#Draw the rectangle
- dw.fill("grey")
+ dw.fill("black")
dw.stroke_opacity(0)
dw.fill_opacity(0.6)
dw.rectangle(width*position.left, height*position.top,
width*position.right, height*position.bottom)
if !hide_text
#Layer the field name
- dw.stroke("black")
- dw.fill("black")
+ dw.stroke("white")
+ dw.fill("white")
dw.text_anchor(Magick::MiddleAnchor)
dw.opacity(1)
- font_size = [width, height].min / 10
+ font_size = [width, height].min / 8
dw.pointsize = font_size
dw.text((width*(position.left + position.right)/2),
(height*(position.top + position.bottom)/2+0.4*font_size),
View
2 app/views/subscriptions/manage.html.erb
@@ -7,7 +7,7 @@
<%= link_to manage_screen_field_subscriptions_path(@screen, field) do %>
<%= field.kind.name %>
<br />
- <%= image_tag(preview_template_path(@screen.template, :height => 60, :format => :png, :fields => field), :border => 0) %>
+ <%= image_tag(preview_template_path(@screen.template, :height => 80, :format => :png, :fields => field), :border => 0) %>
<% end %>
</li>
<% end %>

0 comments on commit 927a922

Please sign in to comment.