The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Set color for selected strokes

These changes was commited to the Birdfont repository Fri, 01 May 2015 07:41:50 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Fri, 01 May 2015 07:41:50 +0000]

Updated Files

libbirdfont/Glyph.vala
--- a/libbirdfont/Glyph.vala +++ b/libbirdfont/Glyph.vala @@ -1534,12 +1534,22 @@ if (p.is_editable ()) { color = Theme.get_color ("Filled Stroke"); color.a = 0.8; - } else if (active_paths.index_of (p) > -1) { - color = Theme.get_color ("Selected Objects"); } else { color = Color.black (); } + draw_path_list (stroke, cr, color); + } + } + cr.fill (); + cr.restore (); + + cr.save (); + cr.new_path (); + foreach (Path p in active_paths) { + if (p.stroke > 0) { + stroke = p.get_stroke_fast (); + color = Theme.get_color ("Selected Objects"); draw_path_list (stroke, cr, color); } }