LAF Alert Icons
-
My Alert Icons are quite blocky... not sure why since I'm using SVG paths... Any ideas how I can make them look a bit nicer?!
laf.registerFunction("drawAlertWindowIcon", function(g, obj) { if(obj.type == "Question") { p.loadFromData(question_path_data); g.setColour(0xFF01999E); g.fillPath(p, [2, 2, obj.area[2]-10, obj.area[3]-15]); }
-
@DanH Are you using Windows 10 scaling > 100%?
-
@d-healey no, whats that? I'm also on mac!
-
no, whats that?
I thought perhaps you were using a high resolution monitor with the scaling, which could possibly cause the issue you're seeing.
-
This icon is in the fixed area. Since the width and height of your shape are equal (inside a circle), rather than minus or plus math operations, I would use multiply with using object width (obj.area[2]).
g.fillPath(p, [2, 2, 0.6 * obj.area[2], 0.6 * obj.area[2]]);
You can make experiments with 0.6 coefficient, try to increase or decrease this value (use the same coefficient for both width and height section) to make it fit to the fixed area.
-
@d-healey oh I see
-
@orange will test, thankyou!
-
-