lib/renderers/html/hierarchy.rb in atome-0.5.6.5.6 vs lib/renderers/html/hierarchy.rb in atome-0.5.6.5.7
- old
+ new
@@ -35,9 +35,14 @@
red = parent_found.red * 255
green = parent_found.green * 255
blue = parent_found.blue * 255
alpha = parent_found.alpha
html.style(:backgroundColor, "rgba(#{red}, #{green}, #{blue}, #{alpha})")
+ if type.to_sym ==:border
+ affect.each do |at_found|
+ grab(at_found).html.style(:border, "solid 2px rgba(#{red},#{green},#{blue},#{alpha})")
+ end
+ end
when :paint
# if when found colors when use it for the gradient , else whe use the colors within the current atome
# gradient_found = params[:colors] || @apply
# we get all the paint atomes applied to the current atome
gradients_to_apply = []