The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Store autotrace settings

Changes made to libbirdfont/DrawingTools.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/DrawingTools.vala +++ libbirdfont/DrawingTools.vala @@ -735,6 +735,8 @@ b = (!) bg; b.update_background (); } + + BirdFont.get_current_font ().settings.set_setting ("autotrace_threshold", background_threshold.get_display_value ()); }); draw_tool_modifiers.add_tool (background_threshold); @@ -752,6 +754,8 @@ b = (!) bg; b.update_background (); } + + BirdFont.get_current_font ().settings.set_setting ("autotrace_resolution", auto_trace_resolution.get_display_value ()); }); draw_tool_modifiers.add_tool (auto_trace_resolution); @@ -761,6 +765,7 @@ auto_trace_simplify.show_icon (true); auto_trace_simplify.new_value_action.connect ((self) => { + BirdFont.get_current_font ().settings.set_setting ("autotrace_simplification", background_threshold.get_display_value ()); }); draw_tool_modifiers.add_tool (auto_trace_simplify);