lib/renderers/html/hierarchy.rb in atome-0.5.7.0.7 vs lib/renderers/html/hierarchy.rb in atome-0.5.7.1.0

- old
+ new

@@ -30,18 +30,30 @@ box_shadow = shadows_to_apply[:boxShadow].join(',') html.style("transform", "translate3d(0, 0, 0)") html.style("boxShadow", box_shadow) html.style("filter", drop_shadow) when :color + 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 + elsif type.to_sym == :image + # alert 'rr' + # div[:style][:mixBlendMode] = 'color' + # html.style(:mixBlendMode,'color') + # html.style(:backgroundColor, "rgba(#{red}, #{green}, #{blue}, #{alpha})") + + # html.image_colorizer("rgba(#{red}, #{green}, #{blue}, #{alpha})") + # html.image_colorizer("rgba(#{red}, #{green}, #{blue}, #{alpha})") + else + html.style(:backgroundColor, "rgba(#{red}, #{green}, #{blue}, #{alpha})") + + 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