The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Fix position for first point in Beziér tool

These changes was commited to the Birdfont repository Mon, 20 Apr 2015 12:55:03 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Mon, 20 Apr 2015 12:55:03 +0000]

Updated Files

libbirdfont/ForesightTool.vala
libbirdfont/TabBar.vala
libbirdfont/Theme.vala
resources/high_contrast.theme
--- a/libbirdfont/ForesightTool.vala +++ b/libbirdfont/ForesightTool.vala @@ -189,16 +189,16 @@ PointSelection last; bool lh; EditPointHandle h; - - if (state == NONE) { - return; - } last_move_x = x; last_move_y = y; PenTool.active_path = current_path; PenTool.active_path.hide_end_handle = (state == MOVE_POINT); + + if (state == NONE) { + return; + } if (state == MOVE_HANDLES || state == MOVE_LAST_HANDLE) { if (previous_point > 0) {
--- a/libbirdfont/TabBar.vala +++ b/libbirdfont/TabBar.vala @@ -758,7 +758,7 @@ close_opacity = (over_close_tab == tab_index) ? 1 : 0.2; if (tab_index == selected) { - Theme.color_opacity (cr, "Selected Tab Foregrund", close_opacity); + Theme.color_opacity (cr, "Selected Tab Foreground", close_opacity); } else { Theme.color_opacity (cr, "Text Foreground", close_opacity); } @@ -784,7 +784,7 @@ center_y = (int) (tab_height / 2.0 + 4 / scale); if (tab_index == selected) { - Theme.text_color (label, "Selected Tab Foregrund"); + Theme.text_color (label, "Selected Tab Foreground"); } else { Theme.text_color (label, "Text Tab Bar"); }
--- a/libbirdfont/Theme.vala +++ b/libbirdfont/Theme.vala @@ -307,7 +307,7 @@ write_theme (); } - // Bright theme + // High contrast theme Theme.set_default_color ("Canvas Background", 1, 1, 1, 1); Theme.set_default_color ("Stroke Color", 0, 0, 0, 1); Theme.set_default_color ("Handle Color", 0, 0, 0, 1); @@ -327,7 +327,7 @@ Theme.set_default_color ("Text Foreground", 0, 0, 0, 1); Theme.set_default_color ("Text Tool Box", 0, 0, 0, 1); Theme.set_default_color ("Text Tab Bar", 0, 0, 0, 1); - Theme.set_default_color ("Selected Tab Foregrund", 1, 1, 1, 1); + Theme.set_default_color ("Selected Tab Foreground", 1, 1, 1, 1); Theme.set_default_color ("Menu Foreground", 0, 0, 0, 1); Theme.set_default_color ("Table Border", 0, 0, 0, 1);
--- a/resources/high_contrast.theme +++ b/resources/high_contrast.theme @@ -12,11 +12,10 @@ <color name="Dialog Shadow" red="0" green="0" blue="0" alpha="1"/> <color name="Selected Active Cubic Control Point" red="0" green="0" blue="0" alpha="1"/> <color name="Selected Cubic Control Point" red="0" green="0" blue="0" alpha="1"/> - <color name="Selected Tab Foreground" red="0.14901960784313725" green="0.14117647058823529" blue="0.15294117647058825" alpha="1"/> + <color name="Selected Tab Foreground" red="1" green="1" blue="1" alpha="1"/> <color name="Control Point Handle" red="0" green="0" blue="0" alpha="1"/> <color name="Text Tab Bar" red="0" green="0" blue="0" alpha="1"/> <color name="Zoom Bar Border" red="0" green="0" blue="0" alpha="1"/> - <color name="Selected Tab Foregrund" red="1" green="1" blue="1" alpha="1"/> <color name="Text Foreground" red="0" green="0" blue="0" alpha="1"/> <color name="Fill Color" red="0" green="0" blue="0" alpha="1"/> <color name="Table Background 1" red="1" green="1" blue="1" alpha="1"/>