+
+
+function icon (params) return function (ctx, width, height, fg)
+ local txt = Cairo.PangoLayout (ctx, "ArdourMono ".. math.ceil (math.min (width, height) * .5) .. "px")
+ txt:set_text ("Fx")
+ local tw, th = txt:get_pixel_size ()
+ ctx:move_to (.5 * (width - tw), .5 * (height - th))
+ txt:layout_cairo_path (ctx)
+
+ ctx:set_source_rgba (ARDOUR.LuaAPI.color_to_rgba (fg))
+ ctx:set_line_width (3)
+ ctx:stroke_preserve ()
+
+ ctx:set_source_rgba (.8, .2, .2, 1)
+ ctx:set_line_width (2)
+ ctx:stroke_preserve ()
+
+ ctx:set_source_rgba (0, 0, 0, 1)
+ ctx:fill ()
+end end