加载中
源代码提交 6
-
New UX for text in shape and text in path · 356b3138
Provide the ability for users to click on shapes and lines with the text tool and place text directly inside and on lines without needing to use the text menu functions. * New cursor icons inspired by the designs in Krita 6.0 * New pathways in text-tool decide if text should be added to curves or shapes * Distil `create_text_in_shape` out of `create_text_with_rectangle` * Add `create_text_at_position` into sp-text moved from text-tool.cpp * Add `create_text_on_curve` in sp-tspan to manage creation of path text * Add a preference which flips the shift key so feature can be auto or not Refactoring: * Remove unused `create_text_with_inline_size` and fold into new function * Remove unused variables in text-tool * Removed include "desktop.h" in "sp-text.h" and fixed bad deps in ui * Moved desktop/h include in tools to `tool-base.h` since every tool uses it * Change creation methods to always use document units and not pass SPDesktop * Remove `cursortolerance` pref dance in getItemsNearPoints * Split SPText inclusion shape building and add get first line position * Fix snap issues and add snapping to point outside of snappers Other fixes: * Fix scaling issues with font-size and making new text objects * Fix scaling issue in knot handler for TextPath font-size

























