Commit 14baeed
Fix position for first point in Beziér tool
Changed files (4)
modifiedlibbirdfont/ForesightTool.valamodifiedlibbirdfont/TabBar.valamodifiedlibbirdfont/Theme.valamodifiedresources/high_contrast.theme
Diff
@@ -190,16 +190,16 @@ public class ForesightTool : Tool { 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) { return_if_fail (PenTool.active_path.points.size >= previous_point + 1);@@ -758,7 +758,7 @@ public class TabBar : GLib.Object { 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 @@ public class TabBar : GLib.Object { 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"); }@@ -307,7 +307,7 @@ public class Theme : GLib.Object { 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 @@ public class Theme : GLib.Object { 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);@@ -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"/>