mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-10 01:50:22 -06:00
Select: Same › Text Fill & Stroke Color selects type whose fill and stroke both match
Select › Same › Text Fill & Stroke Color (select.same.textFillAndStrokeColor) selects the type objects with a run of characters whose fill and stroke both match the first character of the first selected type. Type that matches only the fill or only the stroke, or has the fill in one run and the stroke in another, is left out. The entry follows Text Stroke Color in the menu and has a row in every catalog.
This commit is contained in:
@@ -66,6 +66,15 @@ pub fn specs() -> Vec<CommandSpec> {
|
||||
"select.same.textStrokeColor",
|
||||
|a, b| a.stroke == b.stroke
|
||||
)),
|
||||
cmd!(
|
||||
"select.same.textFillAndStrokeColor",
|
||||
"Text Fill & Stroke Color",
|
||||
["Select", "Same"],
|
||||
None,
|
||||
"{} select the type objects with characters whose fill and stroke both match the first character of the first selected type → {count}",
|
||||
has_selection,
|
||||
|s, _| same_text(s, "select.same.textFillAndStrokeColor", |a, b| a.fill == b.fill && a.stroke == b.stroke)
|
||||
),
|
||||
cmd!(
|
||||
"select.object.directionHandles",
|
||||
"Direction Handles",
|
||||
|
||||
Reference in New Issue
Block a user