lib/rabbit/theme/image/image.rb in rabbit-2.0.2 vs lib/rabbit/theme/image/image.rb in rabbit-2.0.3

- old
+ new

@@ -1,8 +1,9 @@ proc_name = "image" @image_frame_width ||= 1 +@image_caption_color ||= nil @image_caption_font_size ||= @normal_font_size match("**", Image) do |images| images.delete_pre_draw_proc_by_name(proc_name) @@ -63,10 +64,11 @@ image.margin_bottom = margin_bottom end if !simulation and layout base_x = image.ox || x base_y = y - canvas.draw_layout(layout, base_x, base_y, @image_caption_color) + caption_color = image["caption-color"] || @image_caption_color + canvas.draw_layout(layout, base_x, base_y, caption_color) end [x, y, w, h] end end end