diff --git a/crates/engine/src/cmd/prefscmds.rs b/crates/engine/src/cmd/prefscmds.rs index 491284bb23..dd5d5c1628 100644 --- a/crates/engine/src/cmd/prefscmds.rs +++ b/crates/engine/src/cmd/prefscmds.rs @@ -142,6 +142,7 @@ pub const PREF_SPECS: &[PrefSpec] = &[ p!("interpolateControlPoints", "General", "Options", "Interpolate Control Points When Moving Anchors", bool), p!("usePreciseCursors", "General", "Options", "Use Precise Cursors", bool), p!("showToolTips", "General", "Options", "Show Tool Tips", bool), + p!("showToolCards", "General", "Options", "Show Tool Cards", bool), p!("showExternalScriptWarning", "General", "Options", "Show External Script Warning", bool), p!("antiAliasedArtwork", "General", "Options", "Anti-aliased Artwork", bool), p!("selectSameTintPercent", "General", "Options", "Select Same Tint %", bool), diff --git a/crates/engine/src/prefs.rs b/crates/engine/src/prefs.rs index d2e615992a..2a4cf188cd 100644 --- a/crates/engine/src/prefs.rs +++ b/crates/engine/src/prefs.rs @@ -57,6 +57,9 @@ pub struct Prefs { pub interpolate_control_points: bool, pub use_precise_cursors: bool, pub show_tool_tips: bool, + /// General › Show Tool Cards: with tool tips on, a tool button's tool tip is a card with what the + /// tool does and its keys, for tools that have a description. + pub show_tool_cards: bool, /// Other Script… warns before it runs a chosen script. pub show_external_script_warning: bool, pub anti_aliased_artwork: bool, @@ -453,6 +456,7 @@ impl Default for Prefs { interpolate_control_points: false, use_precise_cursors: false, show_tool_tips: true, + show_tool_cards: false, show_external_script_warning: true, anti_aliased_artwork: true, select_same_tint_percent: false, diff --git a/crates/tools/src/catalog.rs b/crates/tools/src/catalog.rs index cd6cbf627a..3d33d93cbc 100644 --- a/crates/tools/src/catalog.rs +++ b/crates/tools/src/catalog.rs @@ -154,6 +154,48 @@ pub fn tool_info(id: &str) -> Option<&'static ToolInfo> { all_tools().find(|t| t.id == id) } +/// One sentence on what each tool does, by tool id, for the tool card that General › Show Tool Cards +/// shows on hover. +const DESCRIPTIONS: &[(&str, &str)] = &[ + ("selection", "Selects whole objects and groups to move, resize or rotate them."), + ("directSelection", "Selects anchor points and path segments to reshape a path."), + ("pen", "Draws paths point by point, with straight segments and smooth curves."), + ("curvature", "Draws smooth curves through the points you click."), + ("type", "Adds text at a point, or in a frame you drag."), + ("rectangle", "Draws rectangles and squares."), + ("roundedRectangle", "Draws rectangles with rounded corners."), + ("ellipse", "Draws ellipses and circles."), + ("polygon", "Draws polygons with sides of equal length."), + ("star", "Draws stars."), + ("rotate", "Turns objects around a reference point."), + ("reflect", "Flips objects across an axis through a reference point."), + ("scale", "Resizes objects from a reference point."), + ("shear", "Slants objects from a reference point."), + ("hand", "Moves the view of the document."), + ("zoom", "Magnifies or reduces the view."), + ("eyedropper", "Copies the color and other attributes of one object to the selection."), + ("gradient", "Sets the direction and length of a gradient."), + ("artboard", "Creates, selects and resizes artboards."), + ("width", "Changes the width of a stroke along its length."), + ("puppetWarp", "Bends art by dragging pins placed on it."), + ("warp", "Pushes the outlines of paths in the direction you drag."), + ("twirl", "Twists the outlines of paths into swirls."), + ("pucker", "Pulls the outlines of paths in toward the brush."), + ("bloat", "Pushes the outlines of paths out from the brush."), + ("scallop", "Adds curved details along the outlines of paths."), + ("crystallize", "Adds spiky details along the outlines of paths."), + ("wrinkle", "Adds wrinkles along the outlines of paths."), + ("perspectiveSelection", "Moves, copies and resizes objects on the perspective grid."), + ("blend", "Makes a series of steps between two or more objects."), + ("dimension", "Places dimension lines that show measured lengths."), +]; + +/// One sentence on what the tool does, for its tool card; none for a tool without one, which keeps +/// its one-line tool tip. +pub fn tool_description(id: &str) -> Option<&'static str> { + DESCRIPTIONS.iter().find(|(tool, _)| *tool == id).map(|&(_, text)| text) +} + /// Tool for a single-key shortcut such as "V" or "Shift+M". pub fn tool_for_shortcut(s: &str) -> Option<&'static ToolInfo> { all_tools().find(|t| t.shortcut == Some(s)) @@ -202,4 +244,15 @@ mod tests { assert!(is_selection_tool("groupSelection") && !is_selection_tool("pen")); assert!(edits_anchors("pen") && !edits_anchors("rectangle")); } + + #[test] + fn descriptions_belong_to_tools() { + for (i, (id, text)) in DESCRIPTIONS.iter().enumerate() { + assert!(tool_info(id).is_some(), "{id} is not a tool id"); + assert!(DESCRIPTIONS[..i].iter().all(|(other, _)| other != id), "{id} is described twice"); + assert_eq!(tool_description(id), Some(*text)); + } + assert_eq!(tool_description("nonsense"), None); + assert_eq!(tool_description("slice"), None); + } } diff --git a/crates/ui-egui/src/chrome.rs b/crates/ui-egui/src/chrome.rs index 43b9f5b69c..ab0bc8ee1c 100644 --- a/crates/ui-egui/src/chrome.rs +++ b/crates/ui-egui/src/chrome.rs @@ -27,6 +27,7 @@ use control_bar::{CONTROL_BAR_FLOAT_AT, ISOLATION_BUTTON}; pub(crate) use control_bar::{Fit, group_separator, left_out, link_reserve}; #[cfg(test)] use hints::hint_segments; +pub(crate) use hints::tool_hint; pub use hints::{hint_bar, hint_strings}; pub use status_bar::{StatusBarShow, deserialize_status_bar_show, set_status_bar_show, status_bar}; #[cfg(test)] diff --git a/crates/ui-egui/src/chrome/hints.rs b/crates/ui-egui/src/chrome/hints.rs index 02f34438a6..2c679c72a1 100644 --- a/crates/ui-egui/src/chrome/hints.rs +++ b/crates/ui-egui/src/chrome/hints.rs @@ -206,6 +206,17 @@ pub(super) fn hint_segments(tool: &str) -> Vec<(Cow<'static, str>, bool)> { &search } }; + shown_segments(segments) +} + +/// The hint bar's segments for `tool` as [`hint_segments`] shows them, the Zoom tool's for animated +/// zoom when `animated_zoom` is on; none for a tool without a hint of its own. +pub(crate) fn tool_hint(tool: &str, animated_zoom: bool) -> Option, bool)>> { + let tool = if tool == "zoom" && animated_zoom { ANIMATED_ZOOM_HINT } else { tool }; + hint_for(tool).map(shown_segments) +} + +fn shown_segments(segments: &[(&'static str, bool)]) -> Vec<(Cow<'static, str>, bool)> { segments .iter() .map(|&(text, bold)| { diff --git a/crates/ui-egui/src/custom_toolbars.rs b/crates/ui-egui/src/custom_toolbars.rs index fcbee2132a..11b8bbe145 100644 --- a/crates/ui-egui/src/custom_toolbars.rs +++ b/crates/ui-egui/src/custom_toolbars.rs @@ -1352,7 +1352,7 @@ fn slot_button(ui: &mut egui::Ui, t: &Tokens, p: &Press, slot: &[String], action } let tip = crate::toolbar::tip(shown); resp.widget_info(|| egui::WidgetInfo::selected(egui::Role::Button, ui.is_enabled(), is_active, &tip)); - resp.on_hover_text(tip); + crate::toolbar::card::hover(resp, shown, crate::toolbar::card::Side::Beside, Some(tip)); Some((rect, shown.id)) } diff --git a/crates/ui-egui/src/i18n/bg.tsv b/crates/ui-egui/src/i18n/bg.tsv index 9eec08b5d5..ee612ef878 100644 --- a/crates/ui-egui/src/i18n/bg.tsv +++ b/crates/ui-egui/src/i18n/bg.tsv @@ -3634,6 +3634,7 @@ digits Malayalam Малаялам Show Thumbnails Показване на миниатюри Show Tile Edge Показване на ръба на плочката Show Tints/Shades Показване на нюанси/затъмнения + Show Tool Cards Показване на карти на инструментите Show Tool Tips Показване на подсказки Show Transparency Grid Показване на шахматна дъска за прозрачност Show Video Rulers Показване на видеолинийки @@ -7741,6 +7742,39 @@ breakText Glyphs Глифи @msg A joint does not close by {gap} pt. Една връзка не се затваря с {gap} pt. @msg Two panels pass through each other. Два панела минават един през друг. @msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer трябва да е "singleLine", "everyLine", "standardSingleLine" или "standardEveryLine" +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Показва карта с това какво прави инструментът от лентата и какво правят клавишите му вместо подсказката му; изисква Показване на подсказки. + Selects whole objects and groups to move, resize or rotate them. Избира цели обекти и групи, за да ги премествате, оразмерявате или завъртате. + Selects anchor points and path segments to reshape a path. Избира опорни точки и сегменти от път, за да промените формата на пътя. + Draws paths point by point, with straight segments and smooth curves. Рисува пътища точка по точка, с прави сегменти и плавни криви. + Draws smooth curves through the points you click. Рисува плавни криви през точките, върху които щраквате. + Adds text at a point, or in a frame you drag. Добавя текст в точка или в рамка, която изтегляте. + Draws rectangles and squares. Рисува правоъгълници и квадрати. + Draws rectangles with rounded corners. Рисува правоъгълници със закръглени ъгли. + Draws ellipses and circles. Рисува елипси и окръжности. + Draws polygons with sides of equal length. Рисува многоъгълници с равни страни. + Draws stars. Рисува звезди. + Turns objects around a reference point. Завърта обекти около опорна точка. + Flips objects across an axis through a reference point. Огледално обръща обекти спрямо ос през опорна точка. + Resizes objects from a reference point. Оразмерява обекти от опорна точка. + Slants objects from a reference point. Наклонява обекти от опорна точка. + Moves the view of the document. Премества изгледа на документа. + Magnifies or reduces the view. Увеличава или намалява изгледа. + Copies the color and other attributes of one object to the selection. Копира цвета и другите атрибути на един обект върху избраното. + Sets the direction and length of a gradient. Задава посоката и дължината на градиент. + Creates, selects and resizes artboards. Създава, избира и оразмерява работни площи. + Changes the width of a stroke along its length. Променя ширината на щрих по дължината му. + Bends art by dragging pins placed on it. Огъва графиката чрез плъзгане на поставени върху нея карфици. + Pushes the outlines of paths in the direction you drag. Избутва очертанията на пътищата в посоката на плъзгане. + Twists the outlines of paths into swirls. Усуква очертанията на пътищата във вихри. + Pulls the outlines of paths in toward the brush. Придърпва очертанията на пътищата към четката. + Pushes the outlines of paths out from the brush. Избутва очертанията на пътищата навън от четката. + Adds curved details along the outlines of paths. Добавя извити детайли по очертанията на пътищата. + Adds spiky details along the outlines of paths. Добавя остри детайли по очертанията на пътищата. + Adds wrinkles along the outlines of paths. Добавя гънки по очертанията на пътищата. + Moves, copies and resizes objects on the perspective grid. Премества, копира и оразмерява обекти в перспективната мрежа. + Makes a series of steps between two or more objects. Създава поредица от стъпки между два или повече обекта. + Places dimension lines that show measured lengths. Поставя размерни линии, които показват измерени дължини. Tap Кратко натискане Clear Hold Изчистване на задържането Hold Shortcuts Комбинации със задържане diff --git a/crates/ui-egui/src/i18n/bs.tsv b/crates/ui-egui/src/i18n/bs.tsv index 0232a0ec74..844897720c 100644 --- a/crates/ui-egui/src/i18n/bs.tsv +++ b/crates/ui-egui/src/i18n/bs.tsv @@ -4191,6 +4191,7 @@ theme Appearance Izgled Show Pixel Grid (Above 600% Zoom) Prikaži mrežu piksela (iznad 600% zumiranja) Show Slice Numbers Prikaži brojeve isječaka Show The Home Screen When No Documents Are Open Prikaži početni ekran kad nijedan dokument nije otvoren + Show Tool Cards Prikaži kartice alata Show Tool Tips Prikaži opise alata Size/Leading Veličina/prored Snapping Tolerance Tolerancija hvatanja @@ -7796,6 +7797,39 @@ shape Open Otvoren @msg A joint does not close by {gap} pt. Spoj se ne zatvara za {gap} pt. @msg Two panels pass through each other. Dva panela prolaze jedan kroz drugi. @msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer mora biti "singleLine", "everyLine", "standardSingleLine" ili "standardEveryLine" +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Prikazuje karticu s onim što alat s trake radi i što rade njegove tipke, umjesto njegovog opisa; potrebno je Prikaži opise alata. + Selects whole objects and groups to move, resize or rotate them. Odabire cijele objekte i grupe radi pomjeranja, promjene veličine ili rotacije. + Selects anchor points and path segments to reshape a path. Odabire sidrene tačke i segmente putanje radi promjene oblika putanje. + Draws paths point by point, with straight segments and smooth curves. Crta putanje tačku po tačku, s ravnim segmentima i glatkim krivuljama. + Draws smooth curves through the points you click. Crta glatke krivulje kroz tačke na koje kliknete. + Adds text at a point, or in a frame you drag. Dodaje tekst u tački ili u okviru koji povučete. + Draws rectangles and squares. Crta pravougaonike i kvadrate. + Draws rectangles with rounded corners. Crta pravougaonike sa zaobljenim uglovima. + Draws ellipses and circles. Crta elipse i krugove. + Draws polygons with sides of equal length. Crta mnogouglove sa stranicama jednake dužine. + Draws stars. Crta zvijezde. + Turns objects around a reference point. Rotira objekte oko referentne tačke. + Flips objects across an axis through a reference point. Zrcali objekte preko ose koja prolazi kroz referentnu tačku. + Resizes objects from a reference point. Mijenja veličinu objekata od referentne tačke. + Slants objects from a reference point. Naginje objekte od referentne tačke. + Moves the view of the document. Pomjera prikaz dokumenta. + Magnifies or reduces the view. Uvećava ili umanjuje prikaz. + Copies the color and other attributes of one object to the selection. Kopira boju i druge atribute jednog objekta na odabir. + Sets the direction and length of a gradient. Postavlja smjer i dužinu gradijenta. + Creates, selects and resizes artboards. Kreira i odabire radne površine i mijenja im veličinu. + Changes the width of a stroke along its length. Mijenja širinu poteza duž njegove dužine. + Bends art by dragging pins placed on it. Savija crtež povlačenjem pribadača postavljenih na njega. + Pushes the outlines of paths in the direction you drag. Gura obrise putanja u smjeru u kojem povlačite. + Twists the outlines of paths into swirls. Uvija obrise putanja u vrtloge. + Pulls the outlines of paths in toward the brush. Privlači obrise putanja prema četkici. + Pushes the outlines of paths out from the brush. Gura obrise putanja prema van od četkice. + Adds curved details along the outlines of paths. Dodaje zakrivljene detalje duž obrisa putanja. + Adds spiky details along the outlines of paths. Dodaje šiljaste detalje duž obrisa putanja. + Adds wrinkles along the outlines of paths. Dodaje bore duž obrisa putanja. + Moves, copies and resizes objects on the perspective grid. Pomjera, kopira i mijenja veličinu objekata na mreži perspektive. + Makes a series of steps between two or more objects. Pravi niz koraka između dva ili više objekata. + Places dimension lines that show measured lengths. Postavlja kotne linije koje prikazuju izmjerene dužine. Tap Kratki pritisak Clear Hold Očisti zadržavanje Hold Shortcuts Prečice zadržavanjem diff --git a/crates/ui-egui/src/i18n/ca.tsv b/crates/ui-egui/src/i18n/ca.tsv index b53fb7b0cf..c064949214 100644 --- a/crates/ui-egui/src/i18n/ca.tsv +++ b/crates/ui-egui/src/i18n/ca.tsv @@ -4955,6 +4955,7 @@ digits Malayalam Malaiàlam Show Tile Edge Mostra la vora del mosaic Show Tints/Shades Mostra els tons/ombres Show Tool Group Labels Mostra les etiquetes dels grups d’eines + Show Tool Cards Mostra les fitxes d’eines Show Tool Tips Mostra els consells d’eines Show Transparency Grid Mostra la quadrícula de transparència Show Video Rulers Mostra les regles de vídeo @@ -8696,6 +8697,39 @@ breakText Glyphs Glifs @msg A joint does not close by {gap} pt. Una unió no es tanca per {gap} pt. @msg Two panels pass through each other. Dos panells es travessen l’un a l’altre. @msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer ha de ser "singleLine", "everyLine", "standardSingleLine" o "standardEveryLine" +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Mostra una fitxa amb el que fa una eina de la barra i el que fan les seves tecles en lloc del seu consell; cal Mostra els consells d’eines. + Selects whole objects and groups to move, resize or rotate them. Selecciona objectes i grups sencers per moure’ls, canviar-ne la mida o girar-los. + Selects anchor points and path segments to reshape a path. Selecciona punts d’ancoratge i segments de traçat per canviar la forma d’un traçat. + Draws paths point by point, with straight segments and smooth curves. Dibuixa traçats punt a punt, amb segments rectes i corbes suaus. + Draws smooth curves through the points you click. Dibuixa corbes suaus que passen pels punts on feu clic. + Adds text at a point, or in a frame you drag. Afegeix text en un punt o dins d’un marc que arrossegueu. + Draws rectangles and squares. Dibuixa rectangles i quadrats. + Draws rectangles with rounded corners. Dibuixa rectangles amb les cantonades arrodonides. + Draws ellipses and circles. Dibuixa el·lipses i cercles. + Draws polygons with sides of equal length. Dibuixa polígons amb els costats de la mateixa longitud. + Draws stars. Dibuixa estrelles. + Turns objects around a reference point. Gira objectes al voltant d’un punt de referència. + Flips objects across an axis through a reference point. Reflecteix objectes respecte d’un eix que passa per un punt de referència. + Resizes objects from a reference point. Canvia la mida d’objectes des d’un punt de referència. + Slants objects from a reference point. Inclina objectes des d’un punt de referència. + Moves the view of the document. Desplaça la vista del document. + Magnifies or reduces the view. Amplia o redueix la vista. + Copies the color and other attributes of one object to the selection. Copia el color i altres atributs d’un objecte a la selecció. + Sets the direction and length of a gradient. Defineix la direcció i la longitud d’un degradat. + Creates, selects and resizes artboards. Crea, selecciona i canvia la mida de les taules de treball. + Changes the width of a stroke along its length. Canvia l’amplada d’un traç al llarg de la seva longitud. + Bends art by dragging pins placed on it. Doblega la il·lustració arrossegant agulles col·locades a sobre. + Pushes the outlines of paths in the direction you drag. Empeny els contorns dels traçats en la direcció en què arrossegueu. + Twists the outlines of paths into swirls. Retorça els contorns dels traçats en remolins. + Pulls the outlines of paths in toward the brush. Atreu els contorns dels traçats cap al pinzell. + Pushes the outlines of paths out from the brush. Empeny els contorns dels traçats cap enfora des del pinzell. + Adds curved details along the outlines of paths. Afegeix detalls corbs al llarg dels contorns dels traçats. + Adds spiky details along the outlines of paths. Afegeix detalls punxeguts al llarg dels contorns dels traçats. + Adds wrinkles along the outlines of paths. Afegeix arrugues al llarg dels contorns dels traçats. + Moves, copies and resizes objects on the perspective grid. Mou, copia i canvia la mida d’objectes a la quadrícula de perspectiva. + Makes a series of steps between two or more objects. Crea una sèrie de passos entre dos o més objectes. + Places dimension lines that show measured lengths. Col·loca línies de cota que mostren longituds mesurades. Tap Pulsació breu Clear Hold Esborra la pulsació llarga Hold Shortcuts Dreceres de pulsació llarga diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsv index 18d811aac2..8c39c847f2 100644 --- a/crates/ui-egui/src/i18n/cs.tsv +++ b/crates/ui-egui/src/i18n/cs.tsv @@ -4300,6 +4300,7 @@ theme Appearance Motiv Show Pixel Grid (Above 600% Zoom) Zobrazit mřížku obrazových bodů (nad 600 %) Show Slice Numbers Zobrazit čísla řezů Show The Home Screen When No Documents Are Open Zobrazit domovskou obrazovku, když nejsou otevřeny dokumenty + Show Tool Cards Zobrazovat karty nástrojů Show Tool Tips Zobrazovat popisky nástrojů Size/Leading Velikost/proklad Snapping Tolerance Tolerance přichytávání @@ -10461,6 +10462,39 @@ breakText Glyphs Glyfy No objects are selected. Nejsou vybrány žádné objekty. Open a document to mark its fold lines. Otevřete dokument, abyste označili jeho linie skladu. Remove Fold Line Role Odstranit typ linie +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Místo popisku zobrazí kartu s tím, co dělá nástroj z panelu a co dělají jeho klávesy; vyžaduje Zobrazovat popisky nástrojů. + Selects whole objects and groups to move, resize or rotate them. Vybírá celé objekty a skupiny, abyste je mohli přesunout, změnit jejich velikost nebo je otočit. + Selects anchor points and path segments to reshape a path. Vybírá kotevní body a segmenty cesty, abyste mohli změnit tvar cesty. + Draws paths point by point, with straight segments and smooth curves. Kreslí cesty bod po bodu, s rovnými segmenty a hladkými křivkami. + Draws smooth curves through the points you click. Kreslí hladké křivky procházející body, na které kliknete. + Adds text at a point, or in a frame you drag. Přidá text v bodě nebo v rámečku, který natáhnete. + Draws rectangles and squares. Kreslí obdélníky a čtverce. + Draws rectangles with rounded corners. Kreslí obdélníky se zaoblenými rohy. + Draws ellipses and circles. Kreslí elipsy a kruhy. + Draws polygons with sides of equal length. Kreslí mnohoúhelníky se stejně dlouhými stranami. + Draws stars. Kreslí hvězdy. + Turns objects around a reference point. Otáčí objekty kolem referenčního bodu. + Flips objects across an axis through a reference point. Zrcadlí objekty podle osy procházející referenčním bodem. + Resizes objects from a reference point. Mění velikost objektů od referenčního bodu. + Slants objects from a reference point. Zkosí objekty od referenčního bodu. + Moves the view of the document. Posouvá zobrazení dokumentu. + Magnifies or reduces the view. Zvětšuje nebo zmenšuje zobrazení. + Copies the color and other attributes of one object to the selection. Zkopíruje barvu a další atributy jednoho objektu do výběru. + Sets the direction and length of a gradient. Nastaví směr a délku přechodu. + Creates, selects and resizes artboards. Vytváří, vybírá a mění velikost pracovních ploch. + Changes the width of a stroke along its length. Mění šířku tahu podél jeho délky. + Bends art by dragging pins placed on it. Ohýbá kresbu tažením špendlíků, které na ni umístíte. + Pushes the outlines of paths in the direction you drag. Posouvá obrysy cest ve směru tažení. + Twists the outlines of paths into swirls. Zkroutí obrysy cest do vírů. + Pulls the outlines of paths in toward the brush. Stahuje obrysy cest směrem ke štětci. + Pushes the outlines of paths out from the brush. Vytlačuje obrysy cest směrem od štětce. + Adds curved details along the outlines of paths. Přidává zaoblené detaily podél obrysů cest. + Adds spiky details along the outlines of paths. Přidává ostré detaily podél obrysů cest. + Adds wrinkles along the outlines of paths. Přidává vrásky podél obrysů cest. + Moves, copies and resizes objects on the perspective grid. Přesouvá, kopíruje a mění velikost objektů v perspektivní mřížce. + Makes a series of steps between two or more objects. Vytvoří řadu kroků mezi dvěma nebo více objekty. + Places dimension lines that show measured lengths. Umísťuje kótovací čáry, které ukazují naměřené délky. Tap Krátký stisk Clear Hold Vymazat podržení Hold Shortcuts Zkratky podržením diff --git a/crates/ui-egui/src/i18n/da.tsv b/crates/ui-egui/src/i18n/da.tsv index 190d67bafc..edc2da6bc7 100644 --- a/crates/ui-egui/src/i18n/da.tsv +++ b/crates/ui-egui/src/i18n/da.tsv @@ -6734,6 +6734,7 @@ theme Appearance Udseende Show Pixel Grid (Above 600% Zoom) Vis pixelgitter (over 600 % zoom) Show Slice Numbers Vis udsnitsnumre Show The Home Screen When No Documents Are Open Vis startskærmen, når ingen dokumenter er åbne + Show Tool Cards Vis værktøjskort Show Tool Tips Vis værktøjstips Size/Leading Størrelse/linjeafstand Snapping Tolerance Snap-tolerance @@ -10586,6 +10587,39 @@ breakText Glyphs Glyffer @msg A joint does not close by {gap} pt. En samling lukker ikke med {gap} pt. @msg Two panels pass through each other. To paneler går gennem hinanden. @msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer skal være "singleLine", "everyLine", "standardSingleLine" eller "standardEveryLine" +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Viser et kort med, hvad et værktøj på værktøjslinjen og dets taster gør, i stedet for dets tip; kræver Vis værktøjstips. + Selects whole objects and groups to move, resize or rotate them. Markerer hele objekter og grupper for at flytte, skalere eller rotere dem. + Selects anchor points and path segments to reshape a path. Markerer ankerpunkter og kurvesegmenter for at ændre formen på en kurve. + Draws paths point by point, with straight segments and smooth curves. Tegner kurver punkt for punkt, med lige segmenter og bløde buer. + Draws smooth curves through the points you click. Tegner bløde buer gennem de punkter, du klikker på. + Adds text at a point, or in a frame you drag. Tilføjer tekst ved et punkt eller i en ramme, du trækker. + Draws rectangles and squares. Tegner rektangler og kvadrater. + Draws rectangles with rounded corners. Tegner rektangler med afrundede hjørner. + Draws ellipses and circles. Tegner ellipser og cirkler. + Draws polygons with sides of equal length. Tegner polygoner med lige lange sider. + Draws stars. Tegner stjerner. + Turns objects around a reference point. Roterer objekter om et referencepunkt. + Flips objects across an axis through a reference point. Spejler objekter over en akse gennem et referencepunkt. + Resizes objects from a reference point. Skalerer objekter fra et referencepunkt. + Slants objects from a reference point. Skråtstiller objekter fra et referencepunkt. + Moves the view of the document. Flytter visningen af dokumentet. + Magnifies or reduces the view. Forstørrer eller formindsker visningen. + Copies the color and other attributes of one object to the selection. Kopierer farven og andre egenskaber fra ét objekt til markeringen. + Sets the direction and length of a gradient. Angiver retning og længde for en gradient. + Creates, selects and resizes artboards. Opretter, markerer og skalerer tegneflader. + Changes the width of a stroke along its length. Ændrer bredden på en streg langs dens længde. + Bends art by dragging pins placed on it. Bøjer grafik ved at trække i nåle, der er placeret på den. + Pushes the outlines of paths in the direction you drag. Skubber kurvers omrids i den retning, du trækker. + Twists the outlines of paths into swirls. Snor kurvers omrids til hvirvler. + Pulls the outlines of paths in toward the brush. Trækker kurvers omrids ind mod penslen. + Pushes the outlines of paths out from the brush. Skubber kurvers omrids ud fra penslen. + Adds curved details along the outlines of paths. Tilføjer buede detaljer langs kurvers omrids. + Adds spiky details along the outlines of paths. Tilføjer spidse detaljer langs kurvers omrids. + Adds wrinkles along the outlines of paths. Tilføjer rynker langs kurvers omrids. + Moves, copies and resizes objects on the perspective grid. Flytter, kopierer og skalerer objekter på perspektivgitteret. + Makes a series of steps between two or more objects. Laver en række trin mellem to eller flere objekter. + Places dimension lines that show measured lengths. Placerer målelinjer, der viser målte længder. Tap Kort tryk Clear Hold Ryd hold Hold Shortcuts Holdegenveje diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsv index 1e245da022..7f67c2577a 100644 --- a/crates/ui-egui/src/i18n/de.tsv +++ b/crates/ui-egui/src/i18n/de.tsv @@ -3722,6 +3722,7 @@ digits Malayalam Malayalam Show Thumbnails Miniaturen einblenden Show Tile Edge Kachelkante einblenden Show Tints/Shades Aufhellungen/Abdunklungen einblenden + Show Tool Cards Werkzeugkarten anzeigen Show Tool Tips Tooltips anzeigen Show Transparency Grid Transparenzraster einblenden Show Video Rulers Videolineale einblenden @@ -10074,6 +10075,39 @@ breakText Glyphs Glyphen No objects are selected. Es sind keine Objekte ausgewählt. Open a document to mark its fold lines. Öffnen Sie ein Dokument, um seine Faltlinien festzulegen. Remove Fold Line Role Linienart entfernen +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Zeigt statt des Tooltips eine Karte, was ein Werkzeug der Werkzeugleiste und seine Tasten tun; erfordert Tooltips anzeigen. + Selects whole objects and groups to move, resize or rotate them. Wählt ganze Objekte und Gruppen aus, um sie zu verschieben, zu skalieren oder zu drehen. + Selects anchor points and path segments to reshape a path. Wählt Ankerpunkte und Pfadsegmente aus, um einen Pfad umzuformen. + Draws paths point by point, with straight segments and smooth curves. Zeichnet Pfade Punkt für Punkt, mit geraden Segmenten und glatten Kurven. + Draws smooth curves through the points you click. Zeichnet glatte Kurven durch die Punkte, die Sie klicken. + Adds text at a point, or in a frame you drag. Fügt Text an einem Punkt oder in einem aufgezogenen Rahmen ein. + Draws rectangles and squares. Zeichnet Rechtecke und Quadrate. + Draws rectangles with rounded corners. Zeichnet Rechtecke mit abgerundeten Ecken. + Draws ellipses and circles. Zeichnet Ellipsen und Kreise. + Draws polygons with sides of equal length. Zeichnet Polygone mit gleich langen Seiten. + Draws stars. Zeichnet Sterne. + Turns objects around a reference point. Dreht Objekte um einen Referenzpunkt. + Flips objects across an axis through a reference point. Spiegelt Objekte an einer Achse durch einen Referenzpunkt. + Resizes objects from a reference point. Skaliert Objekte von einem Referenzpunkt aus. + Slants objects from a reference point. Neigt Objekte von einem Referenzpunkt aus. + Moves the view of the document. Verschiebt die Ansicht des Dokuments. + Magnifies or reduces the view. Vergrößert oder verkleinert die Ansicht. + Copies the color and other attributes of one object to the selection. Überträgt die Farbe und andere Attribute eines Objekts auf die Auswahl. + Sets the direction and length of a gradient. Legt Richtung und Länge eines Verlaufs fest. + Creates, selects and resizes artboards. Erstellt, wählt und skaliert Zeichenflächen. + Changes the width of a stroke along its length. Ändert die Breite einer Kontur entlang ihrer Länge. + Bends art by dragging pins placed on it. Verbiegt Bildmaterial durch Ziehen von Pins, die darauf gesetzt sind. + Pushes the outlines of paths in the direction you drag. Schiebt die Umrisse von Pfaden in die Richtung, in die Sie ziehen. + Twists the outlines of paths into swirls. Verdreht die Umrisse von Pfaden zu Wirbeln. + Pulls the outlines of paths in toward the brush. Zieht die Umrisse von Pfaden zum Pinsel hin zusammen. + Pushes the outlines of paths out from the brush. Drückt die Umrisse von Pfaden vom Pinsel weg nach außen. + Adds curved details along the outlines of paths. Fügt den Umrissen von Pfaden gebogene Details hinzu. + Adds spiky details along the outlines of paths. Fügt den Umrissen von Pfaden spitze Details hinzu. + Adds wrinkles along the outlines of paths. Fügt den Umrissen von Pfaden Falten hinzu. + Moves, copies and resizes objects on the perspective grid. Verschiebt, kopiert und skaliert Objekte im Perspektivenraster. + Makes a series of steps between two or more objects. Erzeugt eine Reihe von Stufen zwischen zwei oder mehr Objekten. + Places dimension lines that show measured lengths. Platziert Bemaßungslinien, die gemessene Längen anzeigen. Tap Kurz drücken Clear Hold Halten löschen Hold Shortcuts Halte-Tastaturbefehle diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsv index 73086e6626..9222743f7d 100644 --- a/crates/ui-egui/src/i18n/el.tsv +++ b/crates/ui-egui/src/i18n/el.tsv @@ -4424,6 +4424,7 @@ digits Malayalam Μαλαγιάλαμ Show Thumbnails Εμφάνιση μικρογραφιών Show Tile Edge Εμφάνιση ακμής πλακιδίου Show Tints/Shades Εμφάνιση αποχρώσεων/σκιάσεων + Show Tool Cards Εμφάνιση καρτών εργαλείων Show Tool Tips Εμφάνιση συμβουλών εργαλείων Show Transparency Grid Εμφάνιση πλέγματος διαφάνειας Show Video Rulers Εμφάνιση χαράκων βίντεο @@ -8670,6 +8671,39 @@ breakText Glyphs Γλύφοι @msg A joint does not close by {gap} pt. Μια ένωση δεν κλείνει κατά {gap} pt. @msg Two panels pass through each other. Δύο πάνελ διαπερνούν το ένα το άλλο. @msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" το composer πρέπει να είναι "singleLine", "everyLine", "standardSingleLine" ή "standardEveryLine" +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Εμφανίζει μια κάρτα με το τι κάνει ένα εργαλείο της γραμμής και τα πλήκτρα του, αντί για τη συμβουλή του· απαιτεί την Εμφάνιση συμβουλών εργαλείων. + Selects whole objects and groups to move, resize or rotate them. Επιλέγει ολόκληρα αντικείμενα και ομάδες για μετακίνηση, αλλαγή μεγέθους ή περιστροφή. + Selects anchor points and path segments to reshape a path. Επιλέγει σημεία αγκύρωσης και τμήματα διαδρομής για αλλαγή του σχήματος μιας διαδρομής. + Draws paths point by point, with straight segments and smooth curves. Σχεδιάζει διαδρομές σημείο προς σημείο, με ευθύγραμμα τμήματα και ομαλές καμπύλες. + Draws smooth curves through the points you click. Σχεδιάζει ομαλές καμπύλες που περνούν από τα σημεία που κάνετε κλικ. + Adds text at a point, or in a frame you drag. Προσθέτει κείμενο σε ένα σημείο ή σε ένα πλαίσιο που σύρετε. + Draws rectangles and squares. Σχεδιάζει ορθογώνια και τετράγωνα. + Draws rectangles with rounded corners. Σχεδιάζει ορθογώνια με στρογγυλεμένες γωνίες. + Draws ellipses and circles. Σχεδιάζει ελλείψεις και κύκλους. + Draws polygons with sides of equal length. Σχεδιάζει πολύγωνα με πλευρές ίσου μήκους. + Draws stars. Σχεδιάζει αστέρια. + Turns objects around a reference point. Περιστρέφει αντικείμενα γύρω από ένα σημείο αναφοράς. + Flips objects across an axis through a reference point. Αντικατοπτρίζει αντικείμενα ως προς έναν άξονα που περνά από ένα σημείο αναφοράς. + Resizes objects from a reference point. Αλλάζει το μέγεθος αντικειμένων από ένα σημείο αναφοράς. + Slants objects from a reference point. Πλαγιάζει αντικείμενα από ένα σημείο αναφοράς. + Moves the view of the document. Μετακινεί την προβολή του εγγράφου. + Magnifies or reduces the view. Μεγεθύνει ή σμικρύνει την προβολή. + Copies the color and other attributes of one object to the selection. Αντιγράφει το χρώμα και άλλα χαρακτηριστικά ενός αντικειμένου στην επιλογή. + Sets the direction and length of a gradient. Ορίζει την κατεύθυνση και το μήκος ενός ντεγκραντέ. + Creates, selects and resizes artboards. Δημιουργεί, επιλέγει και αλλάζει το μέγεθος πινάκων σχεδίασης. + Changes the width of a stroke along its length. Αλλάζει το πλάτος ενός περιγράμματος κατά μήκος του. + Bends art by dragging pins placed on it. Λυγίζει το σχέδιο σύροντας καρφίτσες τοποθετημένες πάνω του. + Pushes the outlines of paths in the direction you drag. Σπρώχνει τα σχήματα των διαδρομών προς την κατεύθυνση που σύρετε. + Twists the outlines of paths into swirls. Συστρέφει τα σχήματα των διαδρομών σε δίνες. + Pulls the outlines of paths in toward the brush. Τραβά τα σχήματα των διαδρομών προς το πινέλο. + Pushes the outlines of paths out from the brush. Σπρώχνει τα σχήματα των διαδρομών προς τα έξω από το πινέλο. + Adds curved details along the outlines of paths. Προσθέτει καμπύλες λεπτομέρειες κατά μήκος των σχημάτων των διαδρομών. + Adds spiky details along the outlines of paths. Προσθέτει αιχμηρές λεπτομέρειες κατά μήκος των σχημάτων των διαδρομών. + Adds wrinkles along the outlines of paths. Προσθέτει ζάρες κατά μήκος των σχημάτων των διαδρομών. + Moves, copies and resizes objects on the perspective grid. Μετακινεί, αντιγράφει και αλλάζει το μέγεθος αντικειμένων στο πλέγμα προοπτικής. + Makes a series of steps between two or more objects. Δημιουργεί μια σειρά βημάτων ανάμεσα σε δύο ή περισσότερα αντικείμενα. + Places dimension lines that show measured lengths. Τοποθετεί γραμμές διαστάσεων που δείχνουν μετρημένα μήκη. Tap Σύντομο πάτημα Clear Hold Εκκαθάριση παρατεταμένου πατήματος Hold Shortcuts Συντομεύσεις παρατεταμένου πατήματος diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsv index 3e8ac96865..6ed2135930 100644 --- a/crates/ui-egui/src/i18n/es.tsv +++ b/crates/ui-egui/src/i18n/es.tsv @@ -3755,6 +3755,7 @@ digits Malayalam Malayálam Show Thumbnails Mostrar miniaturas Show Tile Edge Mostrar borde de mosaico Show Tints/Shades Mostrar matices/sombras + Show Tool Cards Mostrar fichas de herramientas Show Tool Tips Mostrar información sobre herramientas Show Transparency Grid Mostrar cuadrícula de transparencia Show Video Rulers Mostrar reglas de video @@ -10416,6 +10417,39 @@ breakText Glyphs Glifos @msg A joint does not close by {gap} pt. Una unión no cierra por {gap} pt. @msg Two panels pass through each other. Dos paneles se atraviesan entre sí. @msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer debe ser "singleLine", "everyLine", "standardSingleLine" o "standardEveryLine" +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Muestra una ficha con lo que hacen una herramienta de la barra y sus teclas en lugar de su información; requiere Mostrar información sobre herramientas. + Selects whole objects and groups to move, resize or rotate them. Selecciona objetos y grupos completos para moverlos, cambiar su tamaño o girarlos. + Selects anchor points and path segments to reshape a path. Selecciona puntos de ancla y segmentos de trazado para cambiar la forma de un trazado. + Draws paths point by point, with straight segments and smooth curves. Dibuja trazados punto a punto, con segmentos rectos y curvas suaves. + Draws smooth curves through the points you click. Dibuja curvas suaves que pasan por los puntos en los que hace clic. + Adds text at a point, or in a frame you drag. Añade texto en un punto o en un marco que arrastra. + Draws rectangles and squares. Dibuja rectángulos y cuadrados. + Draws rectangles with rounded corners. Dibuja rectángulos con esquinas redondeadas. + Draws ellipses and circles. Dibuja elipses y círculos. + Draws polygons with sides of equal length. Dibuja polígonos con lados de igual longitud. + Draws stars. Dibuja estrellas. + Turns objects around a reference point. Gira objetos alrededor de un punto de referencia. + Flips objects across an axis through a reference point. Refleja objetos sobre un eje que pasa por un punto de referencia. + Resizes objects from a reference point. Cambia el tamaño de los objetos desde un punto de referencia. + Slants objects from a reference point. Inclina objetos desde un punto de referencia. + Moves the view of the document. Desplaza la vista del documento. + Magnifies or reduces the view. Amplía o reduce la vista. + Copies the color and other attributes of one object to the selection. Copia el color y otros atributos de un objeto en la selección. + Sets the direction and length of a gradient. Define la dirección y la longitud de un degradado. + Creates, selects and resizes artboards. Crea, selecciona y cambia el tamaño de mesas de trabajo. + Changes the width of a stroke along its length. Cambia el ancho de un trazo a lo largo de su longitud. + Bends art by dragging pins placed on it. Deforma la ilustración arrastrando chinchetas colocadas sobre ella. + Pushes the outlines of paths in the direction you drag. Empuja los contornos de los trazados en la dirección en la que arrastra. + Twists the outlines of paths into swirls. Retuerce los contornos de los trazados en remolinos. + Pulls the outlines of paths in toward the brush. Atrae los contornos de los trazados hacia el pincel. + Pushes the outlines of paths out from the brush. Empuja los contornos de los trazados hacia fuera del pincel. + Adds curved details along the outlines of paths. Añade detalles curvos a lo largo de los contornos de los trazados. + Adds spiky details along the outlines of paths. Añade detalles puntiagudos a lo largo de los contornos de los trazados. + Adds wrinkles along the outlines of paths. Añade arrugas a lo largo de los contornos de los trazados. + Moves, copies and resizes objects on the perspective grid. Mueve, copia y cambia el tamaño de objetos en la cuadrícula de perspectiva. + Makes a series of steps between two or more objects. Crea una serie de pasos entre dos o más objetos. + Places dimension lines that show measured lengths. Coloca líneas de cota que muestran longitudes medidas. Tap Pulsación breve Clear Hold Borrar pulsación larga Hold Shortcuts Métodos abreviados de pulsación larga diff --git a/crates/ui-egui/src/i18n/fi.tsv b/crates/ui-egui/src/i18n/fi.tsv index cc33135a4e..29fdda68e1 100644 --- a/crates/ui-egui/src/i18n/fi.tsv +++ b/crates/ui-egui/src/i18n/fi.tsv @@ -4217,6 +4217,7 @@ theme Appearance Ulkoasu Show Pixel Grid (Above 600% Zoom) Näytä pikseliruudukko (yli 600 %:n zoomaus) Show Slice Numbers Näytä viipaleiden numerot Show The Home Screen When No Documents Are Open Näytä aloitusnäyttö, kun asiakirjoja ei ole avoinna + Show Tool Cards Näytä työkalukortit Show Tool Tips Näytä työkaluvihjeet Size/Leading Koko/riviväli Snapping Tolerance Tartuntatoleranssi @@ -8753,6 +8754,39 @@ breakText Glyphs Merkit @msg A joint does not close by {gap} pt. Liitos ei sulkeudu, rako {gap} pt. @msg Two panels pass through each other. Kaksi paneelia kulkee toistensa läpi. @msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer on oltava "singleLine", "everyLine", "standardSingleLine" tai "standardEveryLine" +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Näyttää vihjeen sijaan kortin siitä, mitä työkalurivin työkalu ja sen näppäimet tekevät; vaatii asetuksen Näytä työkaluvihjeet. + Selects whole objects and groups to move, resize or rotate them. Valitsee kokonaisia objekteja ja ryhmiä niiden siirtämistä, koon muuttamista tai kiertämistä varten. + Selects anchor points and path segments to reshape a path. Valitsee ankkuripisteitä ja polun osia polun muodon muuttamista varten. + Draws paths point by point, with straight segments and smooth curves. Piirtää polkuja piste kerrallaan suorin osin ja pehmein kaarin. + Draws smooth curves through the points you click. Piirtää pehmeitä kaaria napsauttamiesi pisteiden kautta. + Adds text at a point, or in a frame you drag. Lisää tekstiä pisteeseen tai vetämääsi kehykseen. + Draws rectangles and squares. Piirtää suorakulmioita ja neliöitä. + Draws rectangles with rounded corners. Piirtää pyöristettykulmaisia suorakulmioita. + Draws ellipses and circles. Piirtää ellipsejä ja ympyröitä. + Draws polygons with sides of equal length. Piirtää monikulmioita, joiden sivut ovat yhtä pitkiä. + Draws stars. Piirtää tähtiä. + Turns objects around a reference point. Kiertää objekteja viitepisteen ympäri. + Flips objects across an axis through a reference point. Peilaa objekteja viitepisteen kautta kulkevan akselin yli. + Resizes objects from a reference point. Muuttaa objektien kokoa viitepisteestä. + Slants objects from a reference point. Vinouttaa objekteja viitepisteestä. + Moves the view of the document. Siirtää asiakirjan näkymää. + Magnifies or reduces the view. Suurentaa tai pienentää näkymää. + Copies the color and other attributes of one object to the selection. Kopioi yhden objektin värin ja muut määritteet valintaan. + Sets the direction and length of a gradient. Asettaa liukuvärin suunnan ja pituuden. + Creates, selects and resizes artboards. Luo ja valitsee piirtoalustoja ja muuttaa niiden kokoa. + Changes the width of a stroke along its length. Muuttaa viivan leveyttä sen pituudella. + Bends art by dragging pins placed on it. Taivuttaa kuvitusta vetämällä siihen asetettuja nastoja. + Pushes the outlines of paths in the direction you drag. Työntää polkujen ääriviivoja vetosuuntaan. + Twists the outlines of paths into swirls. Kiertää polkujen ääriviivat pyörteiksi. + Pulls the outlines of paths in toward the brush. Vetää polkujen ääriviivoja siveltimeen päin. + Pushes the outlines of paths out from the brush. Työntää polkujen ääriviivoja ulospäin siveltimestä. + Adds curved details along the outlines of paths. Lisää kaarevia yksityiskohtia polkujen ääriviivoihin. + Adds spiky details along the outlines of paths. Lisää piikikkäitä yksityiskohtia polkujen ääriviivoihin. + Adds wrinkles along the outlines of paths. Lisää ryppyjä polkujen ääriviivoihin. + Moves, copies and resizes objects on the perspective grid. Siirtää, kopioi ja muuttaa objektien kokoa perspektiiviruudukossa. + Makes a series of steps between two or more objects. Luo sarjan välivaiheita kahden tai useamman objektin välille. + Places dimension lines that show measured lengths. Lisää mittaviivoja, jotka näyttävät mitatut pituudet. Tap Lyhyt painallus Clear Hold Tyhjennä pitkä painallus Hold Shortcuts Pitkän painalluksen pikanäppäimet diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsv index 44c7cc7601..6acebc3c64 100644 --- a/crates/ui-egui/src/i18n/fr.tsv +++ b/crates/ui-egui/src/i18n/fr.tsv @@ -3743,6 +3743,7 @@ digits Malayalam Malayalam Show Thumbnails Afficher les vignettes Show Tile Edge Afficher le bord du carreau Show Tints/Shades Afficher les teintes claires/foncées + Show Tool Cards Afficher les fiches d’outils Show Tool Tips Afficher les info-bulles Show Transparency Grid Afficher la grille de transparence Show Video Rulers Afficher les règles vidéo @@ -10487,6 +10488,39 @@ breakText Glyphs Glyphes @msg A joint does not close by {gap} pt. Un joint ne se ferme pas, avec un écart de {gap} pt. @msg Two panels pass through each other. Deux panneaux se traversent. @msg {_1} × {_2} pixels is too large for GIF (at most 65535 pixels a side): lower the resolution {_1} × {_2} pixels, c’est trop grand pour le GIF (65535 pixels par côté au plus) : réduisez la résolution +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Affiche une fiche indiquant ce que font un outil de la barre et ses touches, à la place de son info-bulle. Nécessite Afficher les info-bulles. + Selects whole objects and groups to move, resize or rotate them. Sélectionne des objets et des groupes entiers pour les déplacer, les redimensionner ou les faire pivoter. + Selects anchor points and path segments to reshape a path. Sélectionne des points d’ancrage et des segments de tracé pour modifier la forme d’un tracé. + Draws paths point by point, with straight segments and smooth curves. Dessine des tracés point par point, avec des segments droits et des courbes lisses. + Draws smooth curves through the points you click. Dessine des courbes lisses passant par les points sur lesquels vous cliquez. + Adds text at a point, or in a frame you drag. Ajoute du texte en un point ou dans un cadre que vous faites glisser. + Draws rectangles and squares. Dessine des rectangles et des carrés. + Draws rectangles with rounded corners. Dessine des rectangles aux angles arrondis. + Draws ellipses and circles. Dessine des ellipses et des cercles. + Draws polygons with sides of equal length. Dessine des polygones dont les côtés sont de même longueur. + Draws stars. Dessine des étoiles. + Turns objects around a reference point. Fait pivoter des objets autour d’un point de référence. + Flips objects across an axis through a reference point. Retourne des objets par rapport à un axe passant par un point de référence. + Resizes objects from a reference point. Redimensionne des objets à partir d’un point de référence. + Slants objects from a reference point. Incline des objets à partir d’un point de référence. + Moves the view of the document. Déplace la vue du document. + Magnifies or reduces the view. Agrandit ou réduit la vue. + Copies the color and other attributes of one object to the selection. Copie la couleur et les autres attributs d’un objet vers la sélection. + Sets the direction and length of a gradient. Définit la direction et la longueur d’un dégradé. + Creates, selects and resizes artboards. Crée, sélectionne et redimensionne des plans de travail. + Changes the width of a stroke along its length. Modifie l’épaisseur d’un contour sur sa longueur. + Bends art by dragging pins placed on it. Déforme l’illustration en faisant glisser des épingles placées dessus. + Pushes the outlines of paths in the direction you drag. Pousse les contours des tracés dans la direction du glissement. + Twists the outlines of paths into swirls. Tord les contours des tracés en tourbillons. + Pulls the outlines of paths in toward the brush. Resserre les contours des tracés vers le pinceau. + Pushes the outlines of paths out from the brush. Gonfle les contours des tracés à partir du pinceau. + Adds curved details along the outlines of paths. Ajoute des détails arrondis le long des contours des tracés. + Adds spiky details along the outlines of paths. Ajoute des détails pointus le long des contours des tracés. + Adds wrinkles along the outlines of paths. Ajoute des plis le long des contours des tracés. + Moves, copies and resizes objects on the perspective grid. Déplace, copie et redimensionne des objets sur la grille de perspective. + Makes a series of steps between two or more objects. Crée une série d’étapes entre deux objets ou plus. + Places dimension lines that show measured lengths. Place des lignes de cote qui indiquent des longueurs mesurées. Dashed Arrow Flèche en pointillés Pressure Sensitive Sensible à la pression Flex Ribbon Ruban souple diff --git a/crates/ui-egui/src/i18n/gu.tsv b/crates/ui-egui/src/i18n/gu.tsv index 693e93ba15..be1ccd2194 100644 --- a/crates/ui-egui/src/i18n/gu.tsv +++ b/crates/ui-egui/src/i18n/gu.tsv @@ -3850,6 +3850,7 @@ Show Tile Edge ટાઇલ કિનારી બતાવો Show Tints/Shades ટિન્ટ/શેડ બતાવો Show Tool Group Labels ટૂલ ગ્રૂપ લેબલ બતાવો + Show Tool Cards ટૂલ કાર્ડ બતાવો Show Tool Tips ટૂલ ટિપ્સ બતાવો Show Toolbar ટૂલબાર બતાવો Show Transparency Grid પારદર્શિતા ગ્રિડ બતાવો @@ -5476,6 +5477,39 @@ swatch [Registration] [રજિસ્ટ્રેશન] Standard Single-line Composer સ્ટાન્ડર્ડ સિંગલ-લાઇન કમ્પોઝર Standard Every-line Composer સ્ટાન્ડર્ડ એવરી-લાઇન કમ્પોઝર @msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer આમાંથી એક હોવું જોઈએ: "singleLine", "everyLine", "standardSingleLine" અથવા "standardEveryLine" +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. ટૂલબારનું ટૂલ અને તેની કીઓ શું કરે છે તે ટિપને બદલે કાર્ડમાં બતાવે છે; ટૂલ ટિપ્સ બતાવો ચાલુ હોવું જરૂરી છે. + Selects whole objects and groups to move, resize or rotate them. આખા ઑબ્જેક્ટ અને જૂથો પસંદ કરે છે, જેથી તેમને ખસેડી, તેમનું કદ બદલી કે ફેરવી શકાય. + Selects anchor points and path segments to reshape a path. પાથનો આકાર બદલવા માટે એન્કર બિંદુઓ અને પાથ સેગમેન્ટ પસંદ કરે છે. + Draws paths point by point, with straight segments and smooth curves. સીધા સેગમેન્ટ અને સરળ વળાંકો સાથે બિંદુ-દર-બિંદુ પાથ દોરે છે. + Draws smooth curves through the points you click. તમે ક્લિક કરો તે બિંદુઓમાંથી પસાર થતા સરળ વળાંકો દોરે છે. + Adds text at a point, or in a frame you drag. કોઈ બિંદુ પર અથવા તમે ખેંચો તે ફ્રેમમાં ટેક્સ્ટ ઉમેરે છે. + Draws rectangles and squares. લંબચોરસ અને ચોરસ દોરે છે. + Draws rectangles with rounded corners. ગોળ ખૂણાવાળા લંબચોરસ દોરે છે. + Draws ellipses and circles. લંબવર્તુળ અને વર્તુળ દોરે છે. + Draws polygons with sides of equal length. સરખી લંબાઈની બાજુઓવાળા બહુકોણ દોરે છે. + Draws stars. તારા દોરે છે. + Turns objects around a reference point. ઑબ્જેક્ટને સંદર્ભ બિંદુની આસપાસ ફેરવે છે. + Flips objects across an axis through a reference point. ઑબ્જેક્ટને સંદર્ભ બિંદુમાંથી પસાર થતી ધરી પર ઉલટાવે છે. + Resizes objects from a reference point. સંદર્ભ બિંદુથી ઑબ્જેક્ટનું કદ બદલે છે. + Slants objects from a reference point. સંદર્ભ બિંદુથી ઑબ્જેક્ટને ત્રાંસા કરે છે. + Moves the view of the document. દસ્તાવેજના દૃશ્યને ખસેડે છે. + Magnifies or reduces the view. દૃશ્યને મોટું અથવા નાનું કરે છે. + Copies the color and other attributes of one object to the selection. એક ઑબ્જેક્ટનો રંગ અને અન્ય લક્ષણો પસંદગી પર કૉપિ કરે છે. + Sets the direction and length of a gradient. ગ્રેડિયન્ટની દિશા અને લંબાઈ સેટ કરે છે. + Creates, selects and resizes artboards. આર્ટબોર્ડ બનાવે છે, પસંદ કરે છે અને તેમનું કદ બદલે છે. + Changes the width of a stroke along its length. સ્ટ્રોકની પહોળાઈ તેની લંબાઈ સાથે બદલે છે. + Bends art by dragging pins placed on it. આર્ટ પર મૂકેલી પિન ખેંચીને તેને વાળે છે. + Pushes the outlines of paths in the direction you drag. પાથની રૂપરેખાને તમે ખેંચો તે દિશામાં ધકેલે છે. + Twists the outlines of paths into swirls. પાથની રૂપરેખાને વમળોમાં મરોડે છે. + Pulls the outlines of paths in toward the brush. પાથની રૂપરેખાને બ્રશ તરફ અંદર ખેંચે છે. + Pushes the outlines of paths out from the brush. પાથની રૂપરેખાને બ્રશથી બહારની તરફ ધકેલે છે. + Adds curved details along the outlines of paths. પાથની રૂપરેખા સાથે વળાંકવાળી વિગતો ઉમેરે છે. + Adds spiky details along the outlines of paths. પાથની રૂપરેખા સાથે અણીદાર વિગતો ઉમેરે છે. + Adds wrinkles along the outlines of paths. પાથની રૂપરેખા સાથે કરચલીઓ ઉમેરે છે. + Moves, copies and resizes objects on the perspective grid. પરસ્પેક્ટિવ ગ્રિડ પર ઑબ્જેક્ટને ખસેડે છે, કૉપિ કરે છે અને તેમનું કદ બદલે છે. + Makes a series of steps between two or more objects. બે કે વધુ ઑબ્જેક્ટ વચ્ચે પગલાંની એક શ્રેણી બનાવે છે. + Places dimension lines that show measured lengths. માપેલી લંબાઈ બતાવતી પરિમાણ રેખાઓ મૂકે છે. Tap ટૂંકું દબાણ Clear Hold હોલ્ડ સાફ કરો Hold Shortcuts હોલ્ડ શોર્ટકટ diff --git a/crates/ui-egui/src/i18n/hi.tsv b/crates/ui-egui/src/i18n/hi.tsv index 31db4a06b0..8ec71bbf97 100644 --- a/crates/ui-egui/src/i18n/hi.tsv +++ b/crates/ui-egui/src/i18n/hi.tsv @@ -5300,6 +5300,7 @@ antiAlias Sharp शार्प Show Tile Edge टाइल एज Show Tints/Shades शो टिंट्स / शेड्स Show Tool Group Labels टूल ग्रुप लेबल दिखाएं + Show Tool Cards टूल कार्ड दिखाएँ Show Tool Tips टूल युक्तियाँ दिखाएँ Show Toolbar शो टूलबार Show Transparency Grid पारदर्शिता ग्रिड दिखाएँ @@ -10067,6 +10068,39 @@ theme Appearance अपीयरेंस No objects are selected. कोई ऑब्जेक्ट सिलेक्ट नहीं है। Open a document to mark its fold lines. फ़ोल्ड लाइनें मार्क करने के लिए कोई डॉक्यूमेंट ओपन करें। Remove Fold Line Role लाइन प्रकार हटाएँ +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. टूलबार का टूल और उसकी कुंजियाँ क्या करती हैं, यह टिप की जगह एक कार्ड में दिखाता है; इसके लिए टूल युक्तियाँ दिखाएँ चालू होना चाहिए। + Selects whole objects and groups to move, resize or rotate them. पूरे ऑब्जेक्ट और समूह चुनता है, ताकि उन्हें खिसकाया, आकार बदला या घुमाया जा सके। + Selects anchor points and path segments to reshape a path. पाथ का आकार बदलने के लिए एंकर पॉइंट और पाथ सेगमेंट चुनता है। + Draws paths point by point, with straight segments and smooth curves. सीधे सेगमेंट और चिकने वक्रों के साथ बिंदु-दर-बिंदु पाथ बनाता है। + Draws smooth curves through the points you click. आपके क्लिक किए गए बिंदुओं से होकर चिकने वक्र बनाता है। + Adds text at a point, or in a frame you drag. किसी बिंदु पर, या आपके द्वारा खींचे गए फ़्रेम में टेक्स्ट जोड़ता है। + Draws rectangles and squares. आयत और वर्ग बनाता है। + Draws rectangles with rounded corners. गोल कोनों वाले आयत बनाता है। + Draws ellipses and circles. दीर्घवृत्त और वृत्त बनाता है। + Draws polygons with sides of equal length. बराबर लंबाई की भुजाओं वाले बहुभुज बनाता है। + Draws stars. तारे बनाता है। + Turns objects around a reference point. ऑब्जेक्ट को किसी संदर्भ बिंदु के चारों ओर घुमाता है। + Flips objects across an axis through a reference point. ऑब्जेक्ट को संदर्भ बिंदु से होकर जाने वाले अक्ष पर पलटता है। + Resizes objects from a reference point. संदर्भ बिंदु से ऑब्जेक्ट का आकार बदलता है। + Slants objects from a reference point. संदर्भ बिंदु से ऑब्जेक्ट को तिरछा करता है। + Moves the view of the document. दस्तावेज़ के दृश्य को खिसकाता है। + Magnifies or reduces the view. दृश्य को बड़ा या छोटा करता है। + Copies the color and other attributes of one object to the selection. एक ऑब्जेक्ट का रंग और अन्य गुण चयन पर कॉपी करता है। + Sets the direction and length of a gradient. ग्रेडिएंट की दिशा और लंबाई सेट करता है। + Creates, selects and resizes artboards. आर्टबोर्ड बनाता है, चुनता है और उनका आकार बदलता है। + Changes the width of a stroke along its length. स्ट्रोक की चौड़ाई उसकी लंबाई के साथ बदलता है। + Bends art by dragging pins placed on it. आर्ट पर लगाए गए पिन खींचकर उसे मोड़ता है। + Pushes the outlines of paths in the direction you drag. पाथ की रूपरेखा को उस दिशा में धकेलता है जिधर आप खींचते हैं। + Twists the outlines of paths into swirls. पाथ की रूपरेखा को भँवरों में मरोड़ता है। + Pulls the outlines of paths in toward the brush. पाथ की रूपरेखा को ब्रश की ओर अंदर खींचता है। + Pushes the outlines of paths out from the brush. पाथ की रूपरेखा को ब्रश से बाहर की ओर धकेलता है। + Adds curved details along the outlines of paths. पाथ की रूपरेखा के साथ घुमावदार विवरण जोड़ता है। + Adds spiky details along the outlines of paths. पाथ की रूपरेखा के साथ नुकीले विवरण जोड़ता है। + Adds wrinkles along the outlines of paths. पाथ की रूपरेखा के साथ सिलवटें जोड़ता है। + Moves, copies and resizes objects on the perspective grid. पर्सपेक्टिव ग्रिड पर ऑब्जेक्ट को खिसकाता, कॉपी करता और उनका आकार बदलता है। + Makes a series of steps between two or more objects. दो या अधिक ऑब्जेक्ट के बीच चरणों की एक शृंखला बनाता है। + Places dimension lines that show measured lengths. मापी गई लंबाई दिखाने वाली आयाम रेखाएँ लगाता है। Tap जल्दी दबाना Clear Hold होल्ड साफ़ करें Hold Shortcuts होल्ड शॉर्टकट diff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsv index 4692d9fb69..b47d78c964 100644 --- a/crates/ui-egui/src/i18n/hu.tsv +++ b/crates/ui-egui/src/i18n/hu.tsv @@ -4418,6 +4418,7 @@ mark-style Japanese Japán Show Tile Edge Csempeszél megjelenítése Show Tints/Shades Világosabb/sötétebb árnyalatok Show Tool Group Labels Eszközcsoportok címkéinek megjelenítése + Show Tool Cards Eszközkártyák megjelenítése Show Tool Tips Elemleírások megjelenítése Show Transparency Grid Átlátszósági rács megjelenítése Show Video Rulers Videovonalzók megjelenítése @@ -10449,6 +10450,39 @@ breakText Glyphs Glifák No objects are selected. Nincs kijelölt objektum. Open a document to mark its fold lines. Nyiss meg egy dokumentumot a hajtásvonalai megjelöléséhez. Remove Fold Line Role Vonaltípus eltávolítása +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Az elemleírás helyett kártyán mutatja, mit csinál az eszköztár egy eszköze és a billentyűi; ehhez az Elemleírások megjelenítése szükséges. + Selects whole objects and groups to move, resize or rotate them. Teljes objektumokat és csoportokat jelöl ki áthelyezéshez, átméretezéshez vagy forgatáshoz. + Selects anchor points and path segments to reshape a path. Horgonypontokat és útvonalszakaszokat jelöl ki egy útvonal alakjának módosításához. + Draws paths point by point, with straight segments and smooth curves. Pontról pontra rajzol útvonalakat egyenes szakaszokkal és sima görbékkel. + Draws smooth curves through the points you click. Sima görbéket rajzol a kattintott pontokon keresztül. + Adds text at a point, or in a frame you drag. Szöveget ad hozzá egy pontban vagy egy kihúzott keretben. + Draws rectangles and squares. Téglalapokat és négyzeteket rajzol. + Draws rectangles with rounded corners. Lekerekített sarkú téglalapokat rajzol. + Draws ellipses and circles. Ellipsziseket és köröket rajzol. + Draws polygons with sides of equal length. Egyenlő hosszúságú oldalú sokszögeket rajzol. + Draws stars. Csillagokat rajzol. + Turns objects around a reference point. Objektumokat forgat egy referenciapont körül. + Flips objects across an axis through a reference point. Objektumokat tükröz egy referenciaponton átmenő tengelyre. + Resizes objects from a reference point. Objektumokat méretez át egy referenciaponttól. + Slants objects from a reference point. Objektumokat dönt meg egy referenciaponttól. + Moves the view of the document. A dokumentum nézetét mozgatja. + Magnifies or reduces the view. Nagyítja vagy kicsinyíti a nézetet. + Copies the color and other attributes of one object to the selection. Egy objektum színét és egyéb jellemzőit másolja a kijelölésre. + Sets the direction and length of a gradient. Beállítja egy színátmenet irányát és hosszát. + Creates, selects and resizes artboards. Rajztáblákat hoz létre, jelöl ki és méretez át. + Changes the width of a stroke along its length. Egy körvonal szélességét módosítja a hossza mentén. + Bends art by dragging pins placed on it. A rajzot a rá helyezett tűk húzásával hajlítja. + Pushes the outlines of paths in the direction you drag. Az útvonalak körvonalát a húzás irányába tolja. + Twists the outlines of paths into swirls. Az útvonalak körvonalát örvényekké csavarja. + Pulls the outlines of paths in toward the brush. Az útvonalak körvonalát az ecset felé húzza. + Pushes the outlines of paths out from the brush. Az útvonalak körvonalát kifelé tolja az ecsettől. + Adds curved details along the outlines of paths. Ívelt részleteket ad az útvonalak körvonala mentén. + Adds spiky details along the outlines of paths. Tüskés részleteket ad az útvonalak körvonala mentén. + Adds wrinkles along the outlines of paths. Ráncokat ad az útvonalak körvonala mentén. + Moves, copies and resizes objects on the perspective grid. Objektumokat mozgat, másol és méretez át a perspektivikus rácson. + Makes a series of steps between two or more objects. Lépések sorozatát hozza létre két vagy több objektum között. + Places dimension lines that show measured lengths. Méretvonalakat helyez el, amelyek mért hosszakat mutatnak. Tap Rövid lenyomás Clear Hold Nyomva tartás törlése Hold Shortcuts Nyomva tartásos billentyűparancsok diff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsv index 4d8b184cf0..9034b7ef64 100644 --- a/crates/ui-egui/src/i18n/id.tsv +++ b/crates/ui-egui/src/i18n/id.tsv @@ -3945,6 +3945,7 @@ theme Appearance Tampilan Show Pixel Grid (Above 600% Zoom) Tampilkan grid piksel (di atas zoom 600%) Show Slice Numbers Tampilkan nomor irisan Show The Home Screen When No Documents Are Open Tampilkan layar beranda saat tidak ada dokumen terbuka + Show Tool Cards Tampilkan kartu alat Show Tool Tips Tampilkan tips alat Size/Leading Ukuran/Leading Snapping Tolerance Toleransi kancing @@ -7756,6 +7757,39 @@ breakText Glyphs Glif @msg A joint does not close by {gap} pt. Sebuah sambungan tidak menutup sejauh {gap} pt. @msg Two panels pass through each other. Dua panel saling menembus. @msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer harus "singleLine", "everyLine", "standardSingleLine", atau "standardEveryLine" +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Menampilkan kartu berisi fungsi alat di bilah alat dan tombolnya sebagai pengganti tipnya; memerlukan Tampilkan tips alat. + Selects whole objects and groups to move, resize or rotate them. Memilih objek dan grup utuh untuk dipindahkan, diubah ukurannya, atau diputar. + Selects anchor points and path segments to reshape a path. Memilih titik jangkar dan segmen jalur untuk mengubah bentuk jalur. + Draws paths point by point, with straight segments and smooth curves. Menggambar jalur titik demi titik, dengan segmen lurus dan lengkungan halus. + Draws smooth curves through the points you click. Menggambar lengkungan halus melalui titik yang Anda klik. + Adds text at a point, or in a frame you drag. Menambahkan teks di suatu titik atau di dalam bingkai yang Anda seret. + Draws rectangles and squares. Menggambar persegi panjang dan persegi. + Draws rectangles with rounded corners. Menggambar persegi panjang dengan sudut membulat. + Draws ellipses and circles. Menggambar elips dan lingkaran. + Draws polygons with sides of equal length. Menggambar poligon dengan sisi yang sama panjang. + Draws stars. Menggambar bintang. + Turns objects around a reference point. Memutar objek di sekitar titik referensi. + Flips objects across an axis through a reference point. Mencerminkan objek terhadap sumbu yang melalui titik referensi. + Resizes objects from a reference point. Mengubah ukuran objek dari titik referensi. + Slants objects from a reference point. Memiringkan objek dari titik referensi. + Moves the view of the document. Menggeser tampilan dokumen. + Magnifies or reduces the view. Memperbesar atau memperkecil tampilan. + Copies the color and other attributes of one object to the selection. Menyalin warna dan atribut lain dari satu objek ke pilihan. + Sets the direction and length of a gradient. Mengatur arah dan panjang gradien. + Creates, selects and resizes artboards. Membuat, memilih, dan mengubah ukuran artboard. + Changes the width of a stroke along its length. Mengubah lebar stroke di sepanjang panjangnya. + Bends art by dragging pins placed on it. Membengkokkan karya seni dengan menyeret pin yang dipasang padanya. + Pushes the outlines of paths in the direction you drag. Mendorong garis luar jalur ke arah yang Anda seret. + Twists the outlines of paths into swirls. Memelintir garis luar jalur menjadi pusaran. + Pulls the outlines of paths in toward the brush. Menarik garis luar jalur ke arah kuas. + Pushes the outlines of paths out from the brush. Mendorong garis luar jalur keluar dari kuas. + Adds curved details along the outlines of paths. Menambahkan detail melengkung di sepanjang garis luar jalur. + Adds spiky details along the outlines of paths. Menambahkan detail runcing di sepanjang garis luar jalur. + Adds wrinkles along the outlines of paths. Menambahkan kerutan di sepanjang garis luar jalur. + Moves, copies and resizes objects on the perspective grid. Memindahkan, menyalin, dan mengubah ukuran objek pada kisi perspektif. + Makes a series of steps between two or more objects. Membuat serangkaian langkah di antara dua objek atau lebih. + Places dimension lines that show measured lengths. Menempatkan garis dimensi yang menunjukkan panjang hasil pengukuran. Tap Tekan singkat Clear Hold Hapus Tahan Hold Shortcuts Pintasan tahan diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv index bd99a37916..66f9612e37 100644 --- a/crates/ui-egui/src/i18n/it.tsv +++ b/crates/ui-egui/src/i18n/it.tsv @@ -3807,6 +3807,7 @@ digits Malayalam Malayalam Show Thumbnails Mostra miniature Show Tile Edge Mostra bordo tassello Show Tints/Shades Mostra tinte/toni scuri + Show Tool Cards Mostra schede degli strumenti Show Tool Tips Mostra descrizioni comandi Show Transparency Grid Mostra griglia trasparenza Show Video Rulers Mostra righelli video @@ -10107,6 +10108,39 @@ breakText Glyphs Glifi No objects are selected. Nessun oggetto selezionato. Open a document to mark its fold lines. Apri un documento per segnarne le linee di piega. Remove Fold Line Role Rimuovi tipo di linea +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Mostra una scheda con ciò che fanno uno strumento della barra e i suoi tasti al posto della descrizione; richiede Mostra descrizioni comandi. + Selects whole objects and groups to move, resize or rotate them. Seleziona oggetti e gruppi interi per spostarli, ridimensionarli o ruotarli. + Selects anchor points and path segments to reshape a path. Seleziona punti di ancoraggio e segmenti di tracciato per modificare la forma di un tracciato. + Draws paths point by point, with straight segments and smooth curves. Disegna tracciati punto per punto, con segmenti diritti e curve morbide. + Draws smooth curves through the points you click. Disegna curve morbide che passano per i punti su cui fai clic. + Adds text at a point, or in a frame you drag. Aggiunge testo in un punto o in una cornice che trascini. + Draws rectangles and squares. Disegna rettangoli e quadrati. + Draws rectangles with rounded corners. Disegna rettangoli con angoli arrotondati. + Draws ellipses and circles. Disegna ellissi e cerchi. + Draws polygons with sides of equal length. Disegna poligoni con lati di uguale lunghezza. + Draws stars. Disegna stelle. + Turns objects around a reference point. Ruota gli oggetti attorno a un punto di riferimento. + Flips objects across an axis through a reference point. Riflette gli oggetti rispetto a un asse che passa per un punto di riferimento. + Resizes objects from a reference point. Ridimensiona gli oggetti a partire da un punto di riferimento. + Slants objects from a reference point. Inclina gli oggetti a partire da un punto di riferimento. + Moves the view of the document. Sposta la vista del documento. + Magnifies or reduces the view. Ingrandisce o riduce la vista. + Copies the color and other attributes of one object to the selection. Copia il colore e altri attributi di un oggetto nella selezione. + Sets the direction and length of a gradient. Imposta la direzione e la lunghezza di una sfumatura. + Creates, selects and resizes artboards. Crea, seleziona e ridimensiona le tavole da disegno. + Changes the width of a stroke along its length. Cambia lo spessore di una traccia lungo la sua lunghezza. + Bends art by dragging pins placed on it. Piega la grafica trascinando i perni posizionati su di essa. + Pushes the outlines of paths in the direction you drag. Spinge i contorni dei tracciati nella direzione in cui trascini. + Twists the outlines of paths into swirls. Torce i contorni dei tracciati in vortici. + Pulls the outlines of paths in toward the brush. Attira i contorni dei tracciati verso il pennello. + Pushes the outlines of paths out from the brush. Spinge i contorni dei tracciati verso l’esterno dal pennello. + Adds curved details along the outlines of paths. Aggiunge dettagli curvi lungo i contorni dei tracciati. + Adds spiky details along the outlines of paths. Aggiunge dettagli appuntiti lungo i contorni dei tracciati. + Adds wrinkles along the outlines of paths. Aggiunge grinze lungo i contorni dei tracciati. + Moves, copies and resizes objects on the perspective grid. Sposta, copia e ridimensiona gli oggetti sulla griglia prospettica. + Makes a series of steps between two or more objects. Crea una serie di passaggi tra due o più oggetti. + Places dimension lines that show measured lengths. Inserisce linee di quota che mostrano le lunghezze misurate. Tap Pressione breve Clear Hold Cancella pressione prolungata Hold Shortcuts Scorciatoie a pressione prolungata diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsv index b8dcc113e6..76abb83dcd 100644 --- a/crates/ui-egui/src/i18n/ja.tsv +++ b/crates/ui-egui/src/i18n/ja.tsv @@ -3591,6 +3591,7 @@ mark-style Japanese 日本式 Show Thumbnails サムネールを表示 Show Tile Edge タイルの境界線を表示 Show Tints/Shades ティント/シェードを表示 + Show Tool Cards ツールカードを表示 Show Tool Tips ツールヒントを表示 Show Vivid/Muted ビビッド/ソフトを表示 Show Warm/Cool 暖色/寒色を表示 @@ -10171,6 +10172,39 @@ breakText Glyphs 字形 No objects are selected. オブジェクトが選択されていません。 Open a document to mark its fold lines. ドキュメントを開くと折り線を設定できます。 Remove Fold Line Role 線種を解除 +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. ツールバーのツールとそのキーの働きを、ヒントの代わりにカードで表示。ツールヒントを表示がオンのときに使用 + Selects whole objects and groups to move, resize or rotate them. オブジェクトやグループ全体を選択して、移動、サイズ変更、回転を行います。 + Selects anchor points and path segments to reshape a path. アンカーポイントとパスのセグメントを選択して、パスの形を変えます。 + Draws paths point by point, with straight segments and smooth curves. 直線のセグメントと滑らかな曲線で、パスを 1 点ずつ描きます。 + Draws smooth curves through the points you click. クリックした点を通る滑らかな曲線を描きます。 + Adds text at a point, or in a frame you drag. クリックした位置、またはドラッグした枠の中にテキストを追加します。 + Draws rectangles and squares. 長方形と正方形を描きます。 + Draws rectangles with rounded corners. 角の丸い長方形を描きます。 + Draws ellipses and circles. 楕円と円を描きます。 + Draws polygons with sides of equal length. 辺の長さが等しい多角形を描きます。 + Draws stars. スターを描きます。 + Turns objects around a reference point. 基準点を中心にオブジェクトを回転します。 + Flips objects across an axis through a reference point. 基準点を通る軸でオブジェクトを反転します。 + Resizes objects from a reference point. 基準点からオブジェクトのサイズを変更します。 + Slants objects from a reference point. 基準点からオブジェクトを傾けます。 + Moves the view of the document. ドキュメントの表示を移動します。 + Magnifies or reduces the view. 表示を拡大または縮小します。 + Copies the color and other attributes of one object to the selection. あるオブジェクトのカラーなどの属性を選択範囲にコピーします。 + Sets the direction and length of a gradient. グラデーションの方向と長さを設定します。 + Creates, selects and resizes artboards. アートボードを作成、選択、サイズ変更します。 + Changes the width of a stroke along its length. 線の幅を長さに沿って変えます。 + Bends art by dragging pins placed on it. アートに置いたピンをドラッグして曲げます。 + Pushes the outlines of paths in the direction you drag. パスの輪郭をドラッグした方向に押し出します。 + Twists the outlines of paths into swirls. パスの輪郭を渦巻き状にねじります。 + Pulls the outlines of paths in toward the brush. パスの輪郭をブラシの方へ引き寄せます。 + Pushes the outlines of paths out from the brush. パスの輪郭をブラシから外側へ押し出します。 + Adds curved details along the outlines of paths. パスの輪郭に沿って弧状の細部を加えます。 + Adds spiky details along the outlines of paths. パスの輪郭に沿ってとがった細部を加えます。 + Adds wrinkles along the outlines of paths. パスの輪郭に沿ってしわを加えます。 + Moves, copies and resizes objects on the perspective grid. 遠近グリッド上でオブジェクトを移動、コピー、サイズ変更します。 + Makes a series of steps between two or more objects. 2 つ以上のオブジェクトの間に一連のステップを作ります。 + Places dimension lines that show measured lengths. 測った長さを示す寸法線を配置します。 Tap 短押し Clear Hold 長押しを消去 Hold Shortcuts 長押しショートカット diff --git a/crates/ui-egui/src/i18n/ka.tsv b/crates/ui-egui/src/i18n/ka.tsv index 45f17d131b..20cdf9c7d7 100644 --- a/crates/ui-egui/src/i18n/ka.tsv +++ b/crates/ui-egui/src/i18n/ka.tsv @@ -6043,6 +6043,7 @@ theme Appearance იერსახე Show Pixel Grid (Above 600% Zoom) პიქსელური ბადის ჩვენება (600%-ზე მეტ მასშტაბზე) Show Slice Numbers ნაჭრების ნომრების ჩვენება Show The Home Screen When No Documents Are Open საწყისი ეკრანის ჩვენება, როცა დოკუმენტი არ არის გახსნილი + Show Tool Cards ხელსაწყოების ბარათების ჩვენება Show Tool Tips მინიშნებების ჩვენება Size/Leading ზომა/სტრიქონთა დაშორება Snapping Tolerance მიბმის დაშვება @@ -10832,6 +10833,39 @@ font-script Japanese იაპონური @msg A joint does not close by {gap} pt. შეერთება არ იხურება {gap} pt-ით. @msg Two panels pass through each other. ორი პანელი ერთმანეთში გადის. @msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer უნდა იყოს "singleLine", "everyLine", "standardSingleLine" ან "standardEveryLine" +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. ინსტრუმენტების ზოლის ინსტრუმენტისა და მისი კლავიშების მოქმედებას მინიშნების ნაცვლად ბარათზე აჩვენებს; საჭიროა მინიშნებების ჩვენება. + Selects whole objects and groups to move, resize or rotate them. მთლიანად მონიშნავს ობიექტებსა და ჯგუფებს მათი გადასაადგილებლად, ზომის შესაცვლელად ან მოსაბრუნებლად. + Selects anchor points and path segments to reshape a path. მონიშნავს საყრდენ წერტილებსა და ტრაექტორიის სეგმენტებს ტრაექტორიის ფორმის შესაცვლელად. + Draws paths point by point, with straight segments and smooth curves. ხატავს ტრაექტორიებს წერტილ-წერტილ, სწორი სეგმენტებითა და გლუვი მრუდებით. + Draws smooth curves through the points you click. ხატავს გლუვ მრუდებს იმ წერტილებზე გავლით, რომლებზეც დააწკაპუნებთ. + Adds text at a point, or in a frame you drag. ამატებს ტექსტს წერტილში ან ჩარჩოში, რომელსაც გაჭიმავთ. + Draws rectangles and squares. ხატავს მართკუთხედებსა და კვადრატებს. + Draws rectangles with rounded corners. ხატავს მომრგვალებულკუთხიან მართკუთხედებს. + Draws ellipses and circles. ხატავს ელიფსებსა და წრეებს. + Draws polygons with sides of equal length. ხატავს ტოლგვერდა მრავალკუთხედებს. + Draws stars. ხატავს ვარსკვლავებს. + Turns objects around a reference point. აბრუნებს ობიექტებს საორიენტაციო წერტილის გარშემო. + Flips objects across an axis through a reference point. სარკისებურად ასახავს ობიექტებს საორიენტაციო წერტილზე გამავალი ღერძის მიმართ. + Resizes objects from a reference point. ცვლის ობიექტების ზომას საორიენტაციო წერტილიდან. + Slants objects from a reference point. ახრის ობიექტებს საორიენტაციო წერტილიდან. + Moves the view of the document. გადააადგილებს დოკუმენტის ხედს. + Magnifies or reduces the view. ადიდებს ან ამცირებს ხედს. + Copies the color and other attributes of one object to the selection. აკოპირებს ერთი ობიექტის ფერსა და სხვა ატრიბუტებს მონიშნულზე. + Sets the direction and length of a gradient. აყენებს გრადიენტის მიმართულებასა და სიგრძეს. + Creates, selects and resizes artboards. ქმნის, მონიშნავს და ცვლის სამუშაო დაფების ზომას. + Changes the width of a stroke along its length. ცვლის კონტურის სისქეს მისი სიგრძის გასწვრივ. + Bends art by dragging pins placed on it. ღუნავს ნახატს მასზე დასმული ქინძისთავების გადათრევით. + Pushes the outlines of paths in the direction you drag. უბიძგებს ტრაექტორიების მოხაზულობას გადათრევის მიმართულებით. + Twists the outlines of paths into swirls. ხვევს ტრაექტორიების მოხაზულობას გრიგალებად. + Pulls the outlines of paths in toward the brush. იზიდავს ტრაექტორიების მოხაზულობას ფუნჯისკენ. + Pushes the outlines of paths out from the brush. უბიძგებს ტრაექტორიების მოხაზულობას ფუნჯიდან გარეთ. + Adds curved details along the outlines of paths. ამატებს მრუდ დეტალებს ტრაექტორიების მოხაზულობის გასწვრივ. + Adds spiky details along the outlines of paths. ამატებს წვეტიან დეტალებს ტრაექტორიების მოხაზულობის გასწვრივ. + Adds wrinkles along the outlines of paths. ამატებს ნაოჭებს ტრაექტორიების მოხაზულობის გასწვრივ. + Moves, copies and resizes objects on the perspective grid. გადააადგილებს, აკოპირებს და ცვლის ობიექტების ზომას პერსპექტივის ბადეზე. + Makes a series of steps between two or more objects. ქმნის საფეხურების რიგს ორ ან მეტ ობიექტს შორის. + Places dimension lines that show measured lengths. სვამს ზომის ხაზებს, რომლებიც გაზომილ სიგრძეებს აჩვენებს. Tap მოკლე დაჭერა Clear Hold ხანგრძლივი დაჭერის გასუფთავება Hold Shortcuts ხანგრძლივი დაჭერის მალსახმობები diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsv index e1e07b49a3..e815510d7c 100644 --- a/crates/ui-egui/src/i18n/ko.tsv +++ b/crates/ui-egui/src/i18n/ko.tsv @@ -3582,6 +3582,7 @@ mark-style Japanese 일본식 Show Thumbnails 축소판 표시 Show Tile Edge 타일 가장자리 표시 Show Tints/Shades 밝은/어두운 색조 표시 + Show Tool Cards 도구 카드 표시 Show Tool Tips 도구 설명 표시 Show Vivid/Muted 선명/탁한 색상 표시 Show Warm/Cool 따뜻한/차가운 색상 표시 @@ -10070,6 +10071,39 @@ breakText Glyphs 글리프 No objects are selected. 선택한 개체가 없습니다. Open a document to mark its fold lines. 접는 선을 지정하려면 문서를 여세요. Remove Fold Line Role 선 종류 제거 +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. 도구 막대의 도구와 그 키가 하는 일을 도움말 대신 카드로 표시합니다. 도구 설명 표시가 켜져 있어야 합니다. + Selects whole objects and groups to move, resize or rotate them. 개체와 그룹 전체를 선택하여 이동하거나 크기를 조정하거나 회전합니다. + Selects anchor points and path segments to reshape a path. 기준점과 패스 세그먼트를 선택하여 패스의 모양을 바꿉니다. + Draws paths point by point, with straight segments and smooth curves. 직선 세그먼트와 부드러운 곡선으로 패스를 한 점씩 그립니다. + Draws smooth curves through the points you click. 클릭한 점을 지나는 부드러운 곡선을 그립니다. + Adds text at a point, or in a frame you drag. 한 점에 또는 드래그한 프레임 안에 텍스트를 추가합니다. + Draws rectangles and squares. 직사각형과 정사각형을 그립니다. + Draws rectangles with rounded corners. 모서리가 둥근 직사각형을 그립니다. + Draws ellipses and circles. 타원과 원을 그립니다. + Draws polygons with sides of equal length. 변의 길이가 같은 다각형을 그립니다. + Draws stars. 별을 그립니다. + Turns objects around a reference point. 기준점을 중심으로 개체를 회전합니다. + Flips objects across an axis through a reference point. 기준점을 지나는 축을 기준으로 개체를 반사합니다. + Resizes objects from a reference point. 기준점에서 개체의 크기를 조정합니다. + Slants objects from a reference point. 기준점에서 개체를 기울입니다. + Moves the view of the document. 문서 보기를 이동합니다. + Magnifies or reduces the view. 보기를 확대하거나 축소합니다. + Copies the color and other attributes of one object to the selection. 한 개체의 색상과 기타 속성을 선택 항목에 복사합니다. + Sets the direction and length of a gradient. 그레이디언트의 방향과 길이를 설정합니다. + Creates, selects and resizes artboards. 아트보드를 만들고 선택하고 크기를 조정합니다. + Changes the width of a stroke along its length. 선의 폭을 길이를 따라 바꿉니다. + Bends art by dragging pins placed on it. 아트에 놓은 핀을 드래그하여 구부립니다. + Pushes the outlines of paths in the direction you drag. 패스의 윤곽을 드래그하는 방향으로 밀어냅니다. + Twists the outlines of paths into swirls. 패스의 윤곽을 소용돌이 모양으로 비틉니다. + Pulls the outlines of paths in toward the brush. 패스의 윤곽을 브러시 쪽으로 끌어당깁니다. + Pushes the outlines of paths out from the brush. 패스의 윤곽을 브러시에서 바깥쪽으로 밀어냅니다. + Adds curved details along the outlines of paths. 패스의 윤곽을 따라 곡선 모양의 세부를 추가합니다. + Adds spiky details along the outlines of paths. 패스의 윤곽을 따라 뾰족한 세부를 추가합니다. + Adds wrinkles along the outlines of paths. 패스의 윤곽을 따라 주름을 추가합니다. + Moves, copies and resizes objects on the perspective grid. 원근 격자에서 개체를 이동, 복사하고 크기를 조정합니다. + Makes a series of steps between two or more objects. 두 개 이상의 개체 사이에 일련의 단계를 만듭니다. + Places dimension lines that show measured lengths. 측정한 길이를 보여 주는 치수선을 배치합니다. Tap 짧게 누르기 Clear Hold 길게 누르기 지우기 Hold Shortcuts 길게 누르기 단축키 diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsv index af7a1af990..93663f695f 100644 --- a/crates/ui-egui/src/i18n/nl.tsv +++ b/crates/ui-egui/src/i18n/nl.tsv @@ -4605,6 +4605,7 @@ theme Appearance Vormgeving Show Pixel Grid (Above 600% Zoom) Pixelraster weergeven (boven 600% zoom) Show Slice Numbers Slicenummers weergeven Show The Home Screen When No Documents Are Open Startscherm tonen als er geen documenten geopend zijn + Show Tool Cards Gereedschapskaarten tonen Show Tool Tips Tooltips tonen Size/Leading Tekengrootte/Regelafstand Snapping Tolerance Snapping-tolerantie @@ -10500,6 +10501,39 @@ breakText Glyphs Glyphs No objects are selected. Er zijn geen objecten geselecteerd. Open a document to mark its fold lines. Open een document om de vouwlijnen te markeren. Remove Fold Line Role Lijnsoort verwijderen +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Toont in plaats van de tooltip een kaart met wat een gereedschap in de werkbalk en zijn toetsen doen; vereist Tooltips tonen. + Selects whole objects and groups to move, resize or rotate them. Selecteert hele objecten en groepen om ze te verplaatsen, te schalen of te draaien. + Selects anchor points and path segments to reshape a path. Selecteert ankerpunten en padsegmenten om de vorm van een pad te wijzigen. + Draws paths point by point, with straight segments and smooth curves. Tekent paden punt voor punt, met rechte segmenten en vloeiende curven. + Draws smooth curves through the points you click. Tekent vloeiende curven door de punten waarop u klikt. + Adds text at a point, or in a frame you drag. Voegt tekst toe op een punt of in een kader dat u sleept. + Draws rectangles and squares. Tekent rechthoeken en vierkanten. + Draws rectangles with rounded corners. Tekent rechthoeken met afgeronde hoeken. + Draws ellipses and circles. Tekent ellipsen en cirkels. + Draws polygons with sides of equal length. Tekent veelhoeken met zijden van gelijke lengte. + Draws stars. Tekent sterren. + Turns objects around a reference point. Draait objecten rond een referentiepunt. + Flips objects across an axis through a reference point. Spiegelt objecten over een as door een referentiepunt. + Resizes objects from a reference point. Schaalt objecten vanaf een referentiepunt. + Slants objects from a reference point. Schuint objecten af vanaf een referentiepunt. + Moves the view of the document. Verschuift de weergave van het document. + Magnifies or reduces the view. Vergroot of verkleint de weergave. + Copies the color and other attributes of one object to the selection. Kopieert de kleur en andere kenmerken van een object naar de selectie. + Sets the direction and length of a gradient. Stelt de richting en lengte van een verloop in. + Creates, selects and resizes artboards. Maakt, selecteert en schaalt tekengebieden. + Changes the width of a stroke along its length. Wijzigt de breedte van een contour over de lengte ervan. + Bends art by dragging pins placed on it. Buigt illustraties door er geplaatste spelden te slepen. + Pushes the outlines of paths in the direction you drag. Duwt de omtrekken van paden in de richting waarin u sleept. + Twists the outlines of paths into swirls. Draait de omtrekken van paden tot wervelingen. + Pulls the outlines of paths in toward the brush. Trekt de omtrekken van paden naar het penseel toe. + Pushes the outlines of paths out from the brush. Duwt de omtrekken van paden van het penseel af naar buiten. + Adds curved details along the outlines of paths. Voegt gebogen details toe langs de omtrekken van paden. + Adds spiky details along the outlines of paths. Voegt puntige details toe langs de omtrekken van paden. + Adds wrinkles along the outlines of paths. Voegt rimpels toe langs de omtrekken van paden. + Moves, copies and resizes objects on the perspective grid. Verplaatst, kopieert en schaalt objecten op het perspectiefraster. + Makes a series of steps between two or more objects. Maakt een reeks stappen tussen twee of meer objecten. + Places dimension lines that show measured lengths. Plaatst maatlijnen die gemeten lengten tonen. Tap Kort drukken Clear Hold Vasthouden wissen Hold Shortcuts Vasthoudsneltoetsen diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsv index 11af7a9677..ec8ba0b512 100644 --- a/crates/ui-egui/src/i18n/pl.tsv +++ b/crates/ui-egui/src/i18n/pl.tsv @@ -4165,6 +4165,7 @@ theme Appearance Wygląd Show Pixel Grid (Above 600% Zoom) Pokaż siatkę pikseli (powyżej 600%) Show Slice Numbers Pokaż numery plasterków Show The Home Screen When No Documents Are Open Pokaż ekran startowy, gdy nie ma otwartych dokumentów + Show Tool Cards Pokaż karty narzędzi Show Tool Tips Pokaż podpowiedzi Size/Leading Rozmiar/interlinia Snapping Tolerance Tolerancja przyciągania @@ -10324,6 +10325,39 @@ breakText Glyphs Glify No objects are selected. Nie zaznaczono żadnych obiektów. Open a document to mark its fold lines. Otwórz dokument, aby oznaczyć jego linie zgięcia. Remove Fold Line Role Usuń rodzaj linii +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Zamiast podpowiedzi pokazuje kartę z tym, co robią narzędzie z paska i jego klawisze; wymaga opcji Pokaż podpowiedzi. + Selects whole objects and groups to move, resize or rotate them. Zaznacza całe obiekty i grupy, aby je przesuwać, skalować lub obracać. + Selects anchor points and path segments to reshape a path. Zaznacza punkty kontrolne i segmenty ścieżki, aby zmienić kształt ścieżki. + Draws paths point by point, with straight segments and smooth curves. Rysuje ścieżki punkt po punkcie, z prostymi segmentami i gładkimi krzywymi. + Draws smooth curves through the points you click. Rysuje gładkie krzywe przechodzące przez klikane punkty. + Adds text at a point, or in a frame you drag. Dodaje tekst w punkcie lub w przeciągniętej ramce. + Draws rectangles and squares. Rysuje prostokąty i kwadraty. + Draws rectangles with rounded corners. Rysuje prostokąty z zaokrąglonymi narożnikami. + Draws ellipses and circles. Rysuje elipsy i okręgi. + Draws polygons with sides of equal length. Rysuje wielokąty o bokach równej długości. + Draws stars. Rysuje gwiazdy. + Turns objects around a reference point. Obraca obiekty wokół punktu odniesienia. + Flips objects across an axis through a reference point. Odbija obiekty względem osi przechodzącej przez punkt odniesienia. + Resizes objects from a reference point. Skaluje obiekty względem punktu odniesienia. + Slants objects from a reference point. Pochyla obiekty względem punktu odniesienia. + Moves the view of the document. Przesuwa widok dokumentu. + Magnifies or reduces the view. Powiększa lub pomniejsza widok. + Copies the color and other attributes of one object to the selection. Kopiuje kolor i inne atrybuty jednego obiektu do zaznaczenia. + Sets the direction and length of a gradient. Ustawia kierunek i długość gradientu. + Creates, selects and resizes artboards. Tworzy, zaznacza i skaluje obszary kompozycji. + Changes the width of a stroke along its length. Zmienia szerokość obrysu wzdłuż jego długości. + Bends art by dragging pins placed on it. Wygina kompozycję przez przeciąganie umieszczonych na niej pinezek. + Pushes the outlines of paths in the direction you drag. Przesuwa kontury ścieżek w kierunku przeciągania. + Twists the outlines of paths into swirls. Skręca kontury ścieżek w wiry. + Pulls the outlines of paths in toward the brush. Ściąga kontury ścieżek do pędzla. + Pushes the outlines of paths out from the brush. Wypycha kontury ścieżek na zewnątrz od pędzla. + Adds curved details along the outlines of paths. Dodaje zaokrąglone detale wzdłuż konturów ścieżek. + Adds spiky details along the outlines of paths. Dodaje kolczaste detale wzdłuż konturów ścieżek. + Adds wrinkles along the outlines of paths. Dodaje zmarszczki wzdłuż konturów ścieżek. + Moves, copies and resizes objects on the perspective grid. Przesuwa, kopiuje i skaluje obiekty na siatce perspektywy. + Makes a series of steps between two or more objects. Tworzy serię kroków między dwoma lub więcej obiektami. + Places dimension lines that show measured lengths. Umieszcza linie wymiarowe pokazujące zmierzone długości. Tap Krótkie naciśnięcie Clear Hold Wyczyść przytrzymanie Hold Shortcuts Skróty przytrzymania diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsv index 0730cffa08..81db87050f 100644 --- a/crates/ui-egui/src/i18n/pt-br.tsv +++ b/crates/ui-egui/src/i18n/pt-br.tsv @@ -3167,6 +3167,7 @@ digits Malayalam Malaiala Show Thumbnails Mostrar Miniaturas Show Tile Edge Mostrar Borda do Bloco Show Tints/Shades Mostrar Tons/Sombras + Show Tool Cards Mostrar Cartões de Ferramenta Show Tool Tips Mostrar Dicas de Ferramenta Show Transparency Grid Mostrar Grade de Transparência Show Video Rulers Mostrar Réguas de Vídeo @@ -10533,6 +10534,39 @@ swatch Yellow Green Verde-amarelado No objects are selected. Nenhum objeto selecionado. Open a document to mark its fold lines. Abra um documento para marcar suas linhas de dobra. Remove Fold Line Role Remover Tipo de Linha +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Mostra um cartão com o que uma ferramenta da barra e suas teclas fazem, no lugar da dica; requer Mostrar Dicas de Ferramenta. + Selects whole objects and groups to move, resize or rotate them. Seleciona objetos e grupos inteiros para movê-los, redimensioná-los ou girá-los. + Selects anchor points and path segments to reshape a path. Seleciona pontos de ancoragem e segmentos de caminho para remodelar um caminho. + Draws paths point by point, with straight segments and smooth curves. Desenha caminhos ponto a ponto, com segmentos retos e curvas suaves. + Draws smooth curves through the points you click. Desenha curvas suaves que passam pelos pontos em que você clica. + Adds text at a point, or in a frame you drag. Adiciona texto em um ponto ou em um quadro que você arrasta. + Draws rectangles and squares. Desenha retângulos e quadrados. + Draws rectangles with rounded corners. Desenha retângulos com cantos arredondados. + Draws ellipses and circles. Desenha elipses e círculos. + Draws polygons with sides of equal length. Desenha polígonos com lados de mesmo comprimento. + Draws stars. Desenha estrelas. + Turns objects around a reference point. Gira objetos em torno de um ponto de referência. + Flips objects across an axis through a reference point. Reflete objetos em um eixo que passa por um ponto de referência. + Resizes objects from a reference point. Redimensiona objetos a partir de um ponto de referência. + Slants objects from a reference point. Inclina objetos a partir de um ponto de referência. + Moves the view of the document. Move a visualização do documento. + Magnifies or reduces the view. Amplia ou reduz a visualização. + Copies the color and other attributes of one object to the selection. Copia a cor e outros atributos de um objeto para a seleção. + Sets the direction and length of a gradient. Define a direção e o comprimento de um degradê. + Creates, selects and resizes artboards. Cria, seleciona e redimensiona mesas de trabalho. + Changes the width of a stroke along its length. Altera a largura de um traçado ao longo do seu comprimento. + Bends art by dragging pins placed on it. Deforma a arte arrastando alfinetes colocados nela. + Pushes the outlines of paths in the direction you drag. Empurra os contornos dos caminhos na direção em que você arrasta. + Twists the outlines of paths into swirls. Torce os contornos dos caminhos em espirais. + Pulls the outlines of paths in toward the brush. Puxa os contornos dos caminhos em direção ao pincel. + Pushes the outlines of paths out from the brush. Empurra os contornos dos caminhos para fora a partir do pincel. + Adds curved details along the outlines of paths. Adiciona detalhes curvos ao longo dos contornos dos caminhos. + Adds spiky details along the outlines of paths. Adiciona detalhes pontiagudos ao longo dos contornos dos caminhos. + Adds wrinkles along the outlines of paths. Adiciona rugas ao longo dos contornos dos caminhos. + Moves, copies and resizes objects on the perspective grid. Move, copia e redimensiona objetos na grade de perspectiva. + Makes a series of steps between two or more objects. Cria uma série de etapas entre dois ou mais objetos. + Places dimension lines that show measured lengths. Insere linhas de cota que mostram comprimentos medidos. Tap Toque Rápido Clear Hold Limpar Pressionamento Longo Hold Shortcuts Atalhos de Pressionamento Longo diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv index e0b055fa80..0dd436b9c1 100644 --- a/crates/ui-egui/src/i18n/ru.tsv +++ b/crates/ui-egui/src/i18n/ru.tsv @@ -3787,6 +3787,7 @@ digits Malayalam Малаялам Show Thumbnails Показать миниатюры Show Tile Edge Показать край плитки Show Tints/Shades Показать оттенки/тени + Show Tool Cards Показывать карточки инструментов Show Tool Tips Показывать подсказки Show Transparency Grid Показать сетку прозрачности Show Video Rulers Показать видео-линейки @@ -10579,6 +10580,39 @@ shape Open Открытый @msg Two panels pass through each other. Две панели проходят друг сквозь друга. @msg {w} × {h} pixels is too large for PSD (at most {MAX_SIDE} pixels a side): lower the resolution {w} × {h} пикселей — слишком большой размер для PSD (не более {MAX_SIDE} пикселей по стороне): уменьшите разрешение @msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer должен быть "singleLine", "everyLine", "standardSingleLine" или "standardEveryLine" +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Вместо подсказки показывает карточку о том, что делают инструмент панели и его клавиши; требуется Показывать подсказки. + Selects whole objects and groups to move, resize or rotate them. Выделяет объекты и группы целиком, чтобы перемещать, масштабировать или поворачивать их. + Selects anchor points and path segments to reshape a path. Выделяет опорные точки и сегменты контура, чтобы изменить форму контура. + Draws paths point by point, with straight segments and smooth curves. Рисует контуры точка за точкой, с прямыми сегментами и плавными кривыми. + Draws smooth curves through the points you click. Рисует плавные кривые через точки, по которым вы щёлкаете. + Adds text at a point, or in a frame you drag. Добавляет текст в точке или в рамке, которую вы растягиваете. + Draws rectangles and squares. Рисует прямоугольники и квадраты. + Draws rectangles with rounded corners. Рисует прямоугольники со скруглёнными углами. + Draws ellipses and circles. Рисует эллипсы и окружности. + Draws polygons with sides of equal length. Рисует многоугольники с равными сторонами. + Draws stars. Рисует звёзды. + Turns objects around a reference point. Поворачивает объекты вокруг опорной точки. + Flips objects across an axis through a reference point. Зеркально отражает объекты относительно оси, проходящей через опорную точку. + Resizes objects from a reference point. Масштабирует объекты от опорной точки. + Slants objects from a reference point. Наклоняет объекты от опорной точки. + Moves the view of the document. Перемещает вид документа. + Magnifies or reduces the view. Увеличивает или уменьшает масштаб вида. + Copies the color and other attributes of one object to the selection. Копирует цвет и другие атрибуты одного объекта на выделение. + Sets the direction and length of a gradient. Задаёт направление и длину градиента. + Creates, selects and resizes artboards. Создаёт, выделяет и масштабирует монтажные области. + Changes the width of a stroke along its length. Изменяет ширину обводки по её длине. + Bends art by dragging pins placed on it. Изгибает графику перетаскиванием булавок, расставленных на ней. + Pushes the outlines of paths in the direction you drag. Сдвигает очертания контуров в направлении перетаскивания. + Twists the outlines of paths into swirls. Закручивает очертания контуров в вихри. + Pulls the outlines of paths in toward the brush. Стягивает очертания контуров к кисти. + Pushes the outlines of paths out from the brush. Раздувает очертания контуров от кисти наружу. + Adds curved details along the outlines of paths. Добавляет изогнутые детали вдоль очертаний контуров. + Adds spiky details along the outlines of paths. Добавляет острые детали вдоль очертаний контуров. + Adds wrinkles along the outlines of paths. Добавляет складки вдоль очертаний контуров. + Moves, copies and resizes objects on the perspective grid. Перемещает, копирует и масштабирует объекты на сетке перспективы. + Makes a series of steps between two or more objects. Создаёт ряд переходов между двумя или более объектами. + Places dimension lines that show measured lengths. Размещает размерные линии с измеренными длинами. Tap Короткое нажатие Clear Hold Очистить удержание Hold Shortcuts Клавиши удержания diff --git a/crates/ui-egui/src/i18n/sv.tsv b/crates/ui-egui/src/i18n/sv.tsv index 3453449c78..ff0cb4233b 100644 --- a/crates/ui-egui/src/i18n/sv.tsv +++ b/crates/ui-egui/src/i18n/sv.tsv @@ -3660,6 +3660,7 @@ digits Malayalam Malayalam Show Thumbnails Visa miniatyrer Show Tile Edge Visa rutkant Show Tints/Shades Visa ljusa/mörka toner + Show Tool Cards Visa verktygskort Show Tool Tips Visa verktygstips Show Transparency Grid Visa transparensrutnät Show Video Rulers Visa videolinjaler @@ -10182,6 +10183,39 @@ digits Hindi Hindi @msg A joint does not close by {gap} pt. En fog sluter inte med {gap} pt. @msg Two panels pass through each other. Två paneler går igenom varandra. @msg {w} × {h} pixels is too large for PSD (at most {MAX_SIDE} pixels a side): lower the resolution {w} × {h} pixlar är för stort för PSD (högst {MAX_SIDE} pixlar per sida): sänk upplösningen +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Visar ett kort med vad ett verktyg i verktygsfältet och dess tangenter gör i stället för dess tips; kräver Visa verktygstips. + Selects whole objects and groups to move, resize or rotate them. Markerar hela objekt och grupper för att flytta, skala eller rotera dem. + Selects anchor points and path segments to reshape a path. Markerar ankarpunkter och bansegment för att ändra formen på en bana. + Draws paths point by point, with straight segments and smooth curves. Ritar banor punkt för punkt, med raka segment och mjuka kurvor. + Draws smooth curves through the points you click. Ritar mjuka kurvor genom punkterna du klickar på. + Adds text at a point, or in a frame you drag. Lägger till text vid en punkt eller i en ram som du drar upp. + Draws rectangles and squares. Ritar rektanglar och kvadrater. + Draws rectangles with rounded corners. Ritar rektanglar med rundade hörn. + Draws ellipses and circles. Ritar ellipser och cirklar. + Draws polygons with sides of equal length. Ritar polygoner med lika långa sidor. + Draws stars. Ritar stjärnor. + Turns objects around a reference point. Roterar objekt runt en referenspunkt. + Flips objects across an axis through a reference point. Spegelvänder objekt över en axel genom en referenspunkt. + Resizes objects from a reference point. Skalar objekt från en referenspunkt. + Slants objects from a reference point. Lutar objekt från en referenspunkt. + Moves the view of the document. Flyttar vyn av dokumentet. + Magnifies or reduces the view. Förstorar eller förminskar vyn. + Copies the color and other attributes of one object to the selection. Kopierar färgen och andra attribut från ett objekt till markeringen. + Sets the direction and length of a gradient. Anger riktning och längd för en gradient. + Creates, selects and resizes artboards. Skapar, markerar och skalar ritytor. + Changes the width of a stroke along its length. Ändrar bredden på en kontur längs dess längd. + Bends art by dragging pins placed on it. Böjer teckningar genom att dra i nålar som placerats på dem. + Pushes the outlines of paths in the direction you drag. Skjuter banornas konturer i den riktning du drar. + Twists the outlines of paths into swirls. Vrider banornas konturer till virvlar. + Pulls the outlines of paths in toward the brush. Drar banornas konturer in mot penseln. + Pushes the outlines of paths out from the brush. Skjuter banornas konturer ut från penseln. + Adds curved details along the outlines of paths. Lägger till böjda detaljer längs banornas konturer. + Adds spiky details along the outlines of paths. Lägger till spetsiga detaljer längs banornas konturer. + Adds wrinkles along the outlines of paths. Lägger till rynkor längs banornas konturer. + Moves, copies and resizes objects on the perspective grid. Flyttar, kopierar och skalar objekt på perspektivrutnätet. + Makes a series of steps between two or more objects. Skapar en serie steg mellan två eller flera objekt. + Places dimension lines that show measured lengths. Placerar måttlinjer som visar uppmätta längder. Tap Kort tryck Clear Hold Rensa håll Hold Shortcuts Hållkortkommandon diff --git a/crates/ui-egui/src/i18n/tests.rs b/crates/ui-egui/src/i18n/tests.rs index 961dd08a83..ae8e52f094 100644 --- a/crates/ui-egui/src/i18n/tests.rs +++ b/crates/ui-egui/src/i18n/tests.rs @@ -726,6 +726,21 @@ fn numbered_labels_translate_the_name_before_the_number() { assert_eq!(numbered_label(Lang::EN, "Grays 12"), "Grays 12"); } +/// General › Show Tool Cards and every tool's description on its card. +#[test] +fn tool_card_strings_are_in_complete_catalogs() { + let mut bad = vec![]; + let descriptions = vectorcraft_tools::catalog::all_tools().filter_map(|t| vectorcraft_tools::catalog::tool_description(t.id)); + let strings: Vec<&str> = std::iter::once("Show Tool Cards").chain(descriptions).collect(); + for lang in LANGUAGES.iter().filter(|lang| lang.complete_menus) { + let missing: Vec<&&str> = strings.iter().filter(|s| lang.catalog().plain(s).is_none()).collect(); + if !missing.is_empty() { + bad.push(format!("{} is missing {missing:?}", lang.code)); + } + } + assert!(bad.is_empty(), "{}", bad.join("\n")); +} + /// Window › Arrange's Tile layouts and the application bar's Arrange Documents button. #[test] fn tile_layout_labels_are_in_complete_catalogs() { diff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsv index a645603ae4..166d3a9ebe 100644 --- a/crates/ui-egui/src/i18n/tr.tsv +++ b/crates/ui-egui/src/i18n/tr.tsv @@ -3539,6 +3539,7 @@ digits Malayalam Malayalam Show Thumbnails Küçük Resimleri Göster Show Tile Edge Döşeme Kenarını Göster Show Tints/Shades Renk Tonlarını/Gölgeleri Göster + Show Tool Cards Araç Kartlarını Göster Show Tool Tips Araç İpuçlarını Göster Show Transparency Grid Şeffaflık Izgarasını Göster Show Video Rulers Video Cetvellerini Göster @@ -10419,6 +10420,39 @@ breakText Glyphs Glifler No objects are selected. Hiçbir nesne seçili değil. Open a document to mark its fold lines. Katlama çizgilerini işaretlemek için bir belgeyi açın. Remove Fold Line Role Çizgi Türünü Kaldır +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Araç çubuğundaki bir aracın ve tuşlarının ne yaptığını ipucu yerine bir kartta gösterir; Araç İpuçlarını Göster gerekir. + Selects whole objects and groups to move, resize or rotate them. Taşımak, yeniden boyutlandırmak veya döndürmek için nesnelerin ve grupların tamamını seçer. + Selects anchor points and path segments to reshape a path. Bir yolu yeniden şekillendirmek için bağlantı noktalarını ve yol parçalarını seçer. + Draws paths point by point, with straight segments and smooth curves. Düz parçalar ve yumuşak eğrilerle noktadan noktaya yollar çizer. + Draws smooth curves through the points you click. Tıkladığınız noktalardan geçen yumuşak eğriler çizer. + Adds text at a point, or in a frame you drag. Bir noktaya veya sürükleyerek çizdiğiniz bir çerçeveye metin ekler. + Draws rectangles and squares. Dikdörtgenler ve kareler çizer. + Draws rectangles with rounded corners. Köşeleri yuvarlatılmış dikdörtgenler çizer. + Draws ellipses and circles. Elipsler ve daireler çizer. + Draws polygons with sides of equal length. Kenarları eşit uzunlukta çokgenler çizer. + Draws stars. Yıldızlar çizer. + Turns objects around a reference point. Nesneleri bir referans noktası etrafında döndürür. + Flips objects across an axis through a reference point. Nesneleri bir referans noktasından geçen bir eksene göre yansıtır. + Resizes objects from a reference point. Nesneleri bir referans noktasından yeniden boyutlandırır. + Slants objects from a reference point. Nesneleri bir referans noktasından eğer. + Moves the view of the document. Belgenin görünümünü kaydırır. + Magnifies or reduces the view. Görünümü büyütür veya küçültür. + Copies the color and other attributes of one object to the selection. Bir nesnenin rengini ve diğer niteliklerini seçime kopyalar. + Sets the direction and length of a gradient. Bir degradenin yönünü ve uzunluğunu ayarlar. + Creates, selects and resizes artboards. Çalışma yüzeyleri oluşturur, seçer ve yeniden boyutlandırır. + Changes the width of a stroke along its length. Bir konturun genişliğini uzunluğu boyunca değiştirir. + Bends art by dragging pins placed on it. Üzerine yerleştirilen raptiyeleri sürükleyerek resmi büker. + Pushes the outlines of paths in the direction you drag. Yolların dış hatlarını sürüklediğiniz yöne iter. + Twists the outlines of paths into swirls. Yolların dış hatlarını girdaplar halinde büker. + Pulls the outlines of paths in toward the brush. Yolların dış hatlarını fırçaya doğru çeker. + Pushes the outlines of paths out from the brush. Yolların dış hatlarını fırçadan dışarı doğru iter. + Adds curved details along the outlines of paths. Yolların dış hatları boyunca kavisli ayrıntılar ekler. + Adds spiky details along the outlines of paths. Yolların dış hatları boyunca sivri ayrıntılar ekler. + Adds wrinkles along the outlines of paths. Yolların dış hatları boyunca kırışıklıklar ekler. + Moves, copies and resizes objects on the perspective grid. Perspektif ızgarasındaki nesneleri taşır, kopyalar ve yeniden boyutlandırır. + Makes a series of steps between two or more objects. İki veya daha fazla nesne arasında bir dizi adım oluşturur. + Places dimension lines that show measured lengths. Ölçülen uzunlukları gösteren ölçü çizgileri yerleştirir. Tap Kısa Basma Clear Hold Basılı Tutmayı Temizle Hold Shortcuts Basılı Tutma Kısayolları diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsv index 3ec0f8248a..589c1fcd53 100644 --- a/crates/ui-egui/src/i18n/uk.tsv +++ b/crates/ui-egui/src/i18n/uk.tsv @@ -3799,6 +3799,7 @@ digits Malayalam Малаялам Show Thumbnails Показати мініатюри Show Tile Edge Показати край плитки Show Tints/Shades Показати відтінки/тіні + Show Tool Cards Показувати картки інструментів Show Tool Tips Показувати підказки Show Transparency Grid Показати сітку прозорості Show Video Rulers Показати відео-лінійки @@ -10083,6 +10084,39 @@ breakText Glyphs Гліфи No objects are selected. Об’єкти не виділено. Open a document to mark its fold lines. Відкрийте документ, щоб позначити його лінії згину. Remove Fold Line Role Прибрати тип лінії +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Замість підказки показує картку з тим, що роблять інструмент панелі та його клавіші; потрібно Показувати підказки. + Selects whole objects and groups to move, resize or rotate them. Виділяє об’єкти й групи цілком, щоб переміщувати, масштабувати або обертати їх. + Selects anchor points and path segments to reshape a path. Виділяє опорні точки й сегменти контуру, щоб змінити форму контуру. + Draws paths point by point, with straight segments and smooth curves. Малює контури точка за точкою, з прямими сегментами й плавними кривими. + Draws smooth curves through the points you click. Малює плавні криві через точки, на яких ви клацаєте. + Adds text at a point, or in a frame you drag. Додає текст у точці або в рамці, яку ви розтягуєте. + Draws rectangles and squares. Малює прямокутники й квадрати. + Draws rectangles with rounded corners. Малює прямокутники із заокругленими кутами. + Draws ellipses and circles. Малює еліпси й кола. + Draws polygons with sides of equal length. Малює багатокутники з рівними сторонами. + Draws stars. Малює зірки. + Turns objects around a reference point. Обертає об’єкти навколо опорної точки. + Flips objects across an axis through a reference point. Дзеркально відбиває об’єкти відносно осі, що проходить через опорну точку. + Resizes objects from a reference point. Масштабує об’єкти від опорної точки. + Slants objects from a reference point. Нахиляє об’єкти від опорної точки. + Moves the view of the document. Переміщує вигляд документа. + Magnifies or reduces the view. Збільшує або зменшує масштаб вигляду. + Copies the color and other attributes of one object to the selection. Копіює колір та інші атрибути одного об’єкта на виділення. + Sets the direction and length of a gradient. Задає напрямок і довжину градієнта. + Creates, selects and resizes artboards. Створює, виділяє й масштабує монтажні області. + Changes the width of a stroke along its length. Змінює ширину обведення вздовж його довжини. + Bends art by dragging pins placed on it. Згинає графіку перетягуванням шпильок, розставлених на ній. + Pushes the outlines of paths in the direction you drag. Зсуває обриси контурів у напрямку перетягування. + Twists the outlines of paths into swirls. Закручує обриси контурів у вихори. + Pulls the outlines of paths in toward the brush. Стягує обриси контурів до пензля. + Pushes the outlines of paths out from the brush. Роздуває обриси контурів від пензля назовні. + Adds curved details along the outlines of paths. Додає вигнуті деталі вздовж обрисів контурів. + Adds spiky details along the outlines of paths. Додає гострі деталі вздовж обрисів контурів. + Adds wrinkles along the outlines of paths. Додає складки вздовж обрисів контурів. + Moves, copies and resizes objects on the perspective grid. Переміщує, копіює й масштабує об’єкти на сітці перспективи. + Makes a series of steps between two or more objects. Створює ряд переходів між двома або більше об’єктами. + Places dimension lines that show measured lengths. Розміщує розмірні лінії з виміряними довжинами. Tap Коротке натискання Clear Hold Очистити утримання Hold Shortcuts Клавіші утримання diff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsv index 0f3b1c894b..cd0000e764 100644 --- a/crates/ui-egui/src/i18n/vi.tsv +++ b/crates/ui-egui/src/i18n/vi.tsv @@ -4176,6 +4176,7 @@ mark-style Japanese Kiểu Nhật Show Tile Edge Hiện cạnh ô Show Tints/Shades Hiện tông/bóng màu Show Tool Group Labels Hiện nhãn nhóm công cụ + Show Tool Cards Hiện thẻ công cụ Show Tool Tips Hiện chú thích công cụ Show Transparency Grid Hiện lưới trong suốt Show Video Rulers Hiện thước video @@ -8341,6 +8342,39 @@ breakText Glyphs Glyph @msg {width} × {height} pixels is too large for Targa (at most 65535 pixels a side): lower the resolution {width} × {height} điểm ảnh quá lớn cho Targa (tối đa 65535 điểm ảnh mỗi cạnh): hãy giảm độ phân giải @msg {w} × {h} pixels is too large for PSD (at most {MAX_SIDE} pixels a side): lower the resolution {w} × {h} điểm ảnh quá lớn cho PSD (tối đa {MAX_SIDE} điểm ảnh mỗi cạnh): hãy giảm độ phân giải @msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer phải là "singleLine", "everyLine", "standardSingleLine" hoặc "standardEveryLine" +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. Hiện thẻ cho biết công cụ trên thanh công cụ và các phím của nó làm gì thay cho chú thích; cần bật Hiện chú thích công cụ. + Selects whole objects and groups to move, resize or rotate them. Chọn toàn bộ đối tượng và nhóm để di chuyển, đổi kích thước hoặc xoay chúng. + Selects anchor points and path segments to reshape a path. Chọn điểm neo và đoạn đường dẫn để thay đổi hình dạng một đường dẫn. + Draws paths point by point, with straight segments and smooth curves. Vẽ đường dẫn từng điểm một, với các đoạn thẳng và đường cong mượt. + Draws smooth curves through the points you click. Vẽ đường cong mượt đi qua các điểm bạn nhấp. + Adds text at a point, or in a frame you drag. Thêm văn bản tại một điểm hoặc trong một khung bạn kéo. + Draws rectangles and squares. Vẽ hình chữ nhật và hình vuông. + Draws rectangles with rounded corners. Vẽ hình chữ nhật bo góc. + Draws ellipses and circles. Vẽ hình elip và hình tròn. + Draws polygons with sides of equal length. Vẽ đa giác có các cạnh dài bằng nhau. + Draws stars. Vẽ ngôi sao. + Turns objects around a reference point. Xoay đối tượng quanh một điểm tham chiếu. + Flips objects across an axis through a reference point. Lật đối tượng qua một trục đi qua điểm tham chiếu. + Resizes objects from a reference point. Đổi kích thước đối tượng từ một điểm tham chiếu. + Slants objects from a reference point. Làm nghiêng đối tượng từ một điểm tham chiếu. + Moves the view of the document. Di chuyển khung nhìn của tài liệu. + Magnifies or reduces the view. Phóng to hoặc thu nhỏ khung nhìn. + Copies the color and other attributes of one object to the selection. Sao chép màu và các thuộc tính khác của một đối tượng sang vùng chọn. + Sets the direction and length of a gradient. Đặt hướng và độ dài của một dải chuyển sắc. + Creates, selects and resizes artboards. Tạo, chọn và đổi kích thước bảng vẽ. + Changes the width of a stroke along its length. Thay đổi độ rộng của nét dọc theo chiều dài của nó. + Bends art by dragging pins placed on it. Uốn hình vẽ bằng cách kéo các ghim đặt trên đó. + Pushes the outlines of paths in the direction you drag. Đẩy đường viền của đường dẫn theo hướng bạn kéo. + Twists the outlines of paths into swirls. Xoắn đường viền của đường dẫn thành các vòng xoáy. + Pulls the outlines of paths in toward the brush. Kéo đường viền của đường dẫn vào phía cọ. + Pushes the outlines of paths out from the brush. Đẩy đường viền của đường dẫn ra xa cọ. + Adds curved details along the outlines of paths. Thêm chi tiết cong dọc theo đường viền của đường dẫn. + Adds spiky details along the outlines of paths. Thêm chi tiết nhọn dọc theo đường viền của đường dẫn. + Adds wrinkles along the outlines of paths. Thêm nếp nhăn dọc theo đường viền của đường dẫn. + Moves, copies and resizes objects on the perspective grid. Di chuyển, sao chép và đổi kích thước đối tượng trên lưới phối cảnh. + Makes a series of steps between two or more objects. Tạo một loạt bước chuyển giữa hai hoặc nhiều đối tượng. + Places dimension lines that show measured lengths. Đặt các đường kích thước hiển thị độ dài đo được. Tap Nhấn nhanh Clear Hold Xóa nhấn giữ Hold Shortcuts Phím tắt nhấn giữ diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsv index b841fcce8a..2c0664267e 100644 --- a/crates/ui-egui/src/i18n/zh-hans.tsv +++ b/crates/ui-egui/src/i18n/zh-hans.tsv @@ -3619,6 +3619,7 @@ digits Malayalam 马拉雅拉姆数字 Show Thumbnails 显示缩略图 Show Tile Edge 显示拼贴边缘 Show Tints/Shades 显示浅色调/深色调 + Show Tool Cards 显示工具卡片 Show Tool Tips 显示工具提示 Show Transparency Grid 显示透明网格 Show Video Rulers 显示视频标尺 @@ -10339,6 +10340,39 @@ breakText Glyphs 字形 @msg A joint does not close by {gap} pt. 有一处接缝相差 {gap} pt 未闭合。 @msg Two panels pass through each other. 两个面板相互穿插。 @msg {w} × {h} pixels is too large for PSD (at most {MAX_SIDE} pixels a side): lower the resolution {w} × {h} 像素对 PSD 而言过大 (每边最多 {MAX_SIDE} 像素):请降低分辨率 +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. 以卡片代替提示,显示工具栏工具及其按键的作用;需要开启显示工具提示。 + Selects whole objects and groups to move, resize or rotate them. 选择整个对象和编组,以移动、缩放或旋转它们。 + Selects anchor points and path segments to reshape a path. 选择锚点和路径段,以改变路径的形状。 + Draws paths point by point, with straight segments and smooth curves. 逐点绘制路径,包括直线段和平滑曲线。 + Draws smooth curves through the points you click. 绘制经过所点击各点的平滑曲线。 + Adds text at a point, or in a frame you drag. 在某一点或拖出的文本框中添加文字。 + Draws rectangles and squares. 绘制矩形和正方形。 + Draws rectangles with rounded corners. 绘制圆角矩形。 + Draws ellipses and circles. 绘制椭圆和圆形。 + Draws polygons with sides of equal length. 绘制各边等长的多边形。 + Draws stars. 绘制星形。 + Turns objects around a reference point. 围绕参考点旋转对象。 + Flips objects across an axis through a reference point. 沿经过参考点的轴镜像对象。 + Resizes objects from a reference point. 从参考点缩放对象。 + Slants objects from a reference point. 从参考点倾斜对象。 + Moves the view of the document. 移动文档的视图。 + Magnifies or reduces the view. 放大或缩小视图。 + Copies the color and other attributes of one object to the selection. 将一个对象的颜色和其他属性复制到所选对象。 + Sets the direction and length of a gradient. 设置渐变的方向和长度。 + Creates, selects and resizes artboards. 创建、选择画板并调整其大小。 + Changes the width of a stroke along its length. 沿描边的长度改变其宽度。 + Bends art by dragging pins placed on it. 拖动放在图稿上的图钉来弯曲图稿。 + Pushes the outlines of paths in the direction you drag. 沿拖动方向推动路径的轮廓。 + Twists the outlines of paths into swirls. 将路径的轮廓扭转成漩涡。 + Pulls the outlines of paths in toward the brush. 将路径的轮廓向画笔收缩。 + Pushes the outlines of paths out from the brush. 将路径的轮廓从画笔向外膨胀。 + Adds curved details along the outlines of paths. 沿路径的轮廓添加弧形细节。 + Adds spiky details along the outlines of paths. 沿路径的轮廓添加尖刺细节。 + Adds wrinkles along the outlines of paths. 沿路径的轮廓添加皱褶。 + Moves, copies and resizes objects on the perspective grid. 在透视网格上移动、复制和缩放对象。 + Makes a series of steps between two or more objects. 在两个或多个对象之间生成一系列步骤。 + Places dimension lines that show measured lengths. 放置显示测量长度的尺寸线。 Tap 短按 Clear Hold 清除按住 Hold Shortcuts 按住快捷键 diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsv index e185b07a7e..83d0263038 100644 --- a/crates/ui-egui/src/i18n/zh-hant.tsv +++ b/crates/ui-egui/src/i18n/zh-hant.tsv @@ -5009,6 +5009,7 @@ digits Malayalam 馬來亞拉姆數字 Show Thumbnails 顯示縮圖 Show Tile Edge 顯示拼貼邊緣 Show Tints/Shades 顯示淺色調/深色調 + Show Tool Cards 顯示工具卡片 Show Tool Tips 顯示工具提示 Show Transparency Grid 顯示透明度格點 Show Video Rulers 顯示視訊尺標 @@ -10154,6 +10155,39 @@ breakText Glyphs 字符 @msg A joint does not close by {gap} pt. 有一處接縫相差 {gap} pt 未閉合。 @msg Two panels pass through each other. 兩個面板相互穿插。 @msg {what} would print on more than {MAX_TILES} tiles: scale it down {what} 會列印在超過 {MAX_TILES} 個拼貼上:請縮小 +# Tool cards (General › Show Tool Cards): one sentence on what each tool does. + Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips. 以卡片取代提示,顯示工具列工具及其按鍵的作用;需要開啟顯示工具提示。 + Selects whole objects and groups to move, resize or rotate them. 選取整個物件和群組,以移動、縮放或旋轉它們。 + Selects anchor points and path segments to reshape a path. 選取錨點和路徑區段,以改變路徑的形狀。 + Draws paths point by point, with straight segments and smooth curves. 逐點繪製路徑,包括直線區段和平滑曲線。 + Draws smooth curves through the points you click. 繪製通過所按各點的平滑曲線。 + Adds text at a point, or in a frame you drag. 在某一點或拖曳出的框架中加入文字。 + Draws rectangles and squares. 繪製矩形和正方形。 + Draws rectangles with rounded corners. 繪製圓角矩形。 + Draws ellipses and circles. 繪製橢圓形和圓形。 + Draws polygons with sides of equal length. 繪製各邊等長的多邊形。 + Draws stars. 繪製星形。 + Turns objects around a reference point. 繞著參考點旋轉物件。 + Flips objects across an axis through a reference point. 沿通過參考點的軸鏡射物件。 + Resizes objects from a reference point. 從參考點縮放物件。 + Slants objects from a reference point. 從參考點傾斜物件。 + Moves the view of the document. 移動文件的檢視。 + Magnifies or reduces the view. 放大或縮小檢視。 + Copies the color and other attributes of one object to the selection. 將一個物件的顏色和其他屬性複製到選取的物件。 + Sets the direction and length of a gradient. 設定漸層的方向和長度。 + Creates, selects and resizes artboards. 建立、選取工作區域並調整其大小。 + Changes the width of a stroke along its length. 沿筆畫的長度改變其寬度。 + Bends art by dragging pins placed on it. 拖曳放在圖稿上的圖釘來彎曲圖稿。 + Pushes the outlines of paths in the direction you drag. 沿拖曳方向推動路徑的輪廓。 + Twists the outlines of paths into swirls. 將路徑的輪廓扭轉成漩渦。 + Pulls the outlines of paths in toward the brush. 將路徑的輪廓向筆刷收縮。 + Pushes the outlines of paths out from the brush. 將路徑的輪廓從筆刷向外膨脹。 + Adds curved details along the outlines of paths. 沿路徑的輪廓加入弧形細節。 + Adds spiky details along the outlines of paths. 沿路徑的輪廓加入尖刺細節。 + Adds wrinkles along the outlines of paths. 沿路徑的輪廓加入皺褶。 + Moves, copies and resizes objects on the perspective grid. 在透視格點上移動、複製和縮放物件。 + Makes a series of steps between two or more objects. 在兩個或多個物件之間產生一系列步驟。 + Places dimension lines that show measured lengths. 放置顯示測量長度的尺寸線。 Tap 短按 Clear Hold 清除按住 Hold Shortcuts 按住快速鍵 diff --git a/crates/ui-egui/src/prefs_dialog.rs b/crates/ui-egui/src/prefs_dialog.rs index cecac1d47b..f6bd364449 100644 --- a/crates/ui-egui/src/prefs_dialog.rs +++ b/crates/ui-egui/src/prefs_dialog.rs @@ -340,6 +340,10 @@ fn apply(app: &mut VectorcraftApp, ctx: &egui::Context, force: bool) { app.canvas.key = None; ctx.data_mut(|d| d.insert_temp(id, Some(want))); } + // Cards show only with Show Tool Tips on: an open card goes away as soon as tool tips are turned off. + let p = &app.session.prefs; + let cards = crate::toolbar::card::CardPrefs { on: p.show_tool_cards && p.show_tool_tips, animated_zoom: crate::canvas::animated_zoom(p) }; + crate::toolbar::card::set_prefs(ctx, cards); let z = app.session.prefs.ui_scaling.clamp(0.75, 2.0) as f32; if (ctx.zoom_factor() - z).abs() > 1e-3 { ctx.set_zoom_factor(z); @@ -560,6 +564,27 @@ impl DescribedRows { } } +/// Whether the checkbox of the setting `key` is enabled, for a setting that acts only while +/// another setting allows it and is dimmed otherwise. `None` for every other setting. +fn bool_enabled(d: &Dialog, key: &str) -> Option { + match key { + // General › Scroll Sideways with Cmd/Ctrl + Wheel acts only while Zoom with Mouse Wheel + // is off: dimmed while it is on. + "ctrlWheelScrollsSideways" => Some(!d.bool("zoomWithMouseWheel")), + // Units › Numbers Without Units Are Points only tells points from picas: dimmed + // unless a unit is Picas. + "numbersWithoutUnitsArePoints" => Some(picas_in_use(d)), + // General › Show Tool Cards replaces the tool tips: dimmed while Show Tool Tips is off. + "showToolCards" => Some(d.bool("showToolTips")), + // Performance › Animated Zoom needs GPU Performance: dimmed while it is off. + "animatedZoom" => Some(d.bool("gpuPerformance")), + // Type › Show samples on white draws the samples that Enable in-menu font previews + // shows: dimmed while previews are off. + "fontSamplesOnWhite" => Some(d.bool("fontPreview")), + _ => None, + } +} + /// The fields of the category `cat`. → The rows under the pointer and with the keyboard focus. fn category_fields(ui: &mut egui::Ui, app: &mut VectorcraftApp, d: &mut Dialog, cat: &str) -> DescribedRows { let t = Tokens::get(ui.ctx()); @@ -599,25 +624,10 @@ fn category_fields(ui: &mut egui::Ui, app: &mut VectorcraftApp, d: &mut Dialog, let v = d.fields.get(sp.key).cloned().unwrap_or(Value::Null); let top = ui.cursor().top(); let mark = found_mark(ui, d, sp.key); + let enabled = bool_enabled(d, sp.key); match sp.kind { - // General › Scroll Sideways with Cmd/Ctrl + Wheel acts only while Zoom with Mouse Wheel - // is off: dimmed while it is on. - PrefKind::Bool if sp.key == "ctrlWheelScrollsSideways" => { - ui.add_enabled_ui(!d.bool("zoomWithMouseWheel"), |ui| bool_row(ui, d, sp.key, sp.label)); - } - // Units › Numbers Without Units Are Points only tells points from picas: dimmed - // unless a unit is Picas. - PrefKind::Bool if sp.key == "numbersWithoutUnitsArePoints" => { - ui.add_enabled_ui(picas_in_use(d), |ui| bool_row(ui, d, sp.key, sp.label)); - } - // Performance › Animated Zoom needs GPU Performance: dimmed while it is off. - PrefKind::Bool if sp.key == "animatedZoom" => { - ui.add_enabled_ui(d.bool("gpuPerformance"), |ui| bool_row(ui, d, sp.key, sp.label)); - } - // Type › Show samples on white draws the samples that Enable in-menu font previews - // shows: dimmed while previews are off. - PrefKind::Bool if sp.key == "fontSamplesOnWhite" => { - ui.add_enabled_ui(d.bool("fontPreview"), |ui| bool_row(ui, d, sp.key, sp.label)); + PrefKind::Bool if enabled.is_some() => { + ui.add_enabled_ui(enabled == Some(true), |ui| bool_row(ui, d, sp.key, sp.label)); } // Windows and Linux only: macOS always has the system's title bar, the web has none. PrefKind::Bool if sp.key == "systemTitleBar" => { diff --git a/crates/ui-egui/src/prefs_dialog/descriptions.rs b/crates/ui-egui/src/prefs_dialog/descriptions.rs index 9d765e95eb..06a1fc64b9 100644 --- a/crates/ui-egui/src/prefs_dialog/descriptions.rs +++ b/crates/ui-egui/src/prefs_dialog/descriptions.rs @@ -16,6 +16,7 @@ pub(crate) const DESCRIPTIONS: &[(&str, &str)] = &[ ("disableAutoAddDelete", "Stops the Pen tool from deleting the anchor you click on a selected path, or adding one where you click its segment."), ("usePreciseCursors", "Drawing tools show a crosshair pointer instead of their icon; Caps Lock does the same while it is on."), ("showToolTips", "Shows a tip when the pointer rests on a button or field that has one."), + ("showToolCards", "Shows a card with what a toolbar tool does and what its keys do instead of its tip; it needs Show Tool Tips."), ("showExternalScriptWarning", "Shows a warning before a script you choose runs."), ("antiAliasedArtwork", "Smooths the edges of artwork on the canvas."), ( diff --git a/crates/ui-egui/src/prefs_dialog/tests.rs b/crates/ui-egui/src/prefs_dialog/tests.rs index 895d52d1c5..16c8a427e8 100644 --- a/crates/ui-egui/src/prefs_dialog/tests.rs +++ b/crates/ui-egui/src/prefs_dialog/tests.rs @@ -1250,6 +1250,46 @@ fn show_samples_on_white_dims_without_in_menu_font_previews() { } } +/// General › Show Tool Cards: its checkbox is dimmed while Show Tool Tips is unchecked in the +/// dialog, and a click on it then leaves the setting as it was. +#[test] +fn show_tool_cards_dims_without_tool_tips() { + fn label(s: &egui::Shape, text: &str) -> Option<(egui::Color32, egui::Rect)> { + match s { + egui::Shape::Text(t) if t.galley.text() == text => t.galley.job.sections.first().map(|s| (s.format.color, t.visual_bounding_rect())), + egui::Shape::Vec(v) => v.iter().find_map(|s| label(s, text)), + _ => None, + } + } + let ctx = egui::Context::default(); + crate::theme::install_fonts(&ctx); + let mut a = app(); + let mut frame = |d: &mut Dialog, events: Vec| { + let raw = egui::RawInput { + screen_rect: Some(egui::Rect::from_min_size(egui::Pos2::ZERO, egui::vec2(600.0, 3000.0))), + events, + ..Default::default() + }; + let mut out = ctx.run_ui(raw, |ui| { + category_fields(ui, &mut a, d, "General"); + }); + out.textures_delta.clear(); + out.shapes.iter().find_map(|c| label(&c.shape, "Show Tool Cards")) + }; + let t = Tokens::get(&ctx); + for (tips, color, what) in [(true, t.text, "enabled while tool tips are on"), (false, t.text_disabled, "dimmed while they are off")] { + let mut d = Dialog::new("preferences", json!({"showToolTips": tips, "showToolCards": false})); + let (shown, at) = frame(&mut d, vec![]).unwrap_or_else(|| panic!("no label ({what})")); + assert_eq!(shown, color, "{what}"); + let press = + |pressed| egui::Event::PointerButton { pos: at.center(), button: egui::PointerButton::Primary, pressed, modifiers: Default::default() }; + frame(&mut d, vec![egui::Event::PointerMoved(at.center()), press(true)]); + frame(&mut d, vec![press(false)]); + // A click turns it on while it is enabled, and leaves it off while it is dimmed. + assert_eq!(d.fields["showToolCards"], json!(tips), "after a click, {what}"); + } +} + /// 0.5.0 saved `powerSaving` for everyone (its default): it reads as Automatic, while the /// choices this version offers are kept (#502). #[test] diff --git a/crates/ui-egui/src/toolbar.rs b/crates/ui-egui/src/toolbar.rs index 80c82a6283..9e78a370bd 100644 --- a/crates/ui-egui/src/toolbar.rs +++ b/crates/ui-egui/src/toolbar.rs @@ -352,7 +352,7 @@ fn body(app: &mut VectorcraftApp, ui: &mut Ui, cols: usize, floating: Option Id { + Id::unique("tool-card-prefs") +} + +/// The button whose card a press, key or scroll put away, until the pointer leaves it. +fn quiet_id() -> Id { + Id::unique("tool-card-quiet") +} + +pub(crate) fn set_prefs(ctx: &Context, prefs: CardPrefs) { + ctx.data_mut(|d| d.insert_temp(prefs_id(), prefs)); +} + +fn prefs(ctx: &Context) -> CardPrefs { + ctx.data(|d| d.get_temp(prefs_id())).unwrap_or_default() +} + +/// Where a card goes beside its button: right of it (left when there is no room), or below it +/// (above when there is no room) for a row of buttons. +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub(crate) enum Side { + Beside, + Below, + /// Right of a flyout's row, clear of the grab bar down the flyout's right side. + Row, +} + +/// The hover help of the button `resp` for `tool`: its card with Show Tool Cards on when the tool +/// has a description and the window has room for the card beside the button, else `tip` as a +/// one-line tool tip (none: no tool tip). While a group's flyout +/// or the All Tools drawer is open, only the flyout's own rows show cards: a card beside another +/// button could sit over the flyout. +pub(crate) fn hover(resp: Response, tool: &ToolInfo, side: Side, tip: Option) -> Response { + let ctx = resp.ctx.clone(); + let prefs = prefs(&ctx); + let allowed = side == Side::Row || !flyout_drawn(&ctx); + let description = if prefs.on && allowed { tool_description(tool.id) } else { None }; + // A button the pointer is not on shows neither a card nor a tool tip. Its quiet mark goes, with + // the cards off too, so the next rest on it shows its card; and its card is not measured. + if !pointer_on(&ctx, &resp) { + forget_quiet(&ctx, &resp); + if description.is_some() { + return resp; + } + } + let place = description.and_then(|d| placement(&ctx, resp.rect, side, height(tool.id, prefs.animated_zoom)).map(|p| (d, p))); + let Some((description, (align, others, gap))) = place else { + return match tip { + Some(tip) => resp.on_hover_text(tip), + None => resp, + }; + }; + if quiet(&ctx, &resp) { + return resp; + } + let mut tooltip = egui::Tooltip::for_enabled(&resp).gap(gap); + tooltip.popup = tooltip.popup.align(align).align_alternatives(others).width(WIDTH); + tooltip.show(|ui| card(ui, tool, description, prefs.animated_zoom)); + resp +} + +/// Where the card of the button at `rect` goes: its alignment, the alignments to try when it does +/// not fit, and its gap from the button. None when the window has no room for it beside the button, +/// or above or below a row of buttons for a card about `height` tall (a card pushed back into the +/// window would cover the button or its flyout). +fn placement(ctx: &Context, rect: egui::Rect, side: Side, height: f32) -> Option<(RectAlign, &'static [RectAlign], f32)> { + let screen = ctx.content_rect(); + let right = |gap: f32| screen.right() - rect.right() - gap >= ROOM; + let left = |gap: f32| rect.left() - gap - screen.left() >= ROOM; + let below = screen.bottom() - rect.bottom() - GAP >= height; + let above = rect.top() - GAP - screen.top() >= height; + match side { + Side::Beside if right(GAP) => Some((RectAlign::RIGHT_START, &[RectAlign::RIGHT_END], GAP)), + Side::Beside if left(GAP) => Some((RectAlign::LEFT_START, &[RectAlign::LEFT_END], GAP)), + Side::Beside => None, + // On the side the flyout opened toward, never back over the button that opened it. + Side::Row if flyout_opens_left(ctx) => left(GAP).then_some((RectAlign::LEFT_START, &[RectAlign::LEFT_END], GAP)), + Side::Row => right(GAP + super::BAR).then_some((RectAlign::RIGHT_START, &[RectAlign::RIGHT_END], GAP + super::BAR)), + Side::Below if below => Some((RectAlign::BOTTOM_START, &[RectAlign::BOTTOM_END], GAP)), + Side::Below if above => Some((RectAlign::TOP_START, &[RectAlign::TOP_END], GAP)), + Side::Below => None, + } +} + +/// A generous estimate of a card's height, before it is laid out: the icon row, a description of +/// up to three lines and each hint line wrapped once, with the frame's margins. +fn height(tool: &str, animated_zoom: bool) -> f32 { + let hints = lines(tool, animated_zoom).len() as f32; + let hint_rows = if hints > 0.0 { 8.0 + hints * 2.0 * LINE } else { 0.0 }; + ICON + 20.0 + 3.0 * LINE + hint_rows +} + +/// Whether a tool group's flyout or the All Tools drawer drew in this pass or the one before. The +/// tool buttons draw before the flyout, so in a pass they read the mark of the pass before. +fn flyout_drawn(ctx: &Context) -> bool { + let pass = ctx.cumulative_pass_nr(); + ctx.data(|d| d.get_temp::(super::flyout_open_pass_id())).is_some_and(|p| p.saturating_add(1) >= pass) +} + +/// Whether the open flyout sits left of the button that opened it (a toolbar docked right). +fn flyout_opens_left(ctx: &Context) -> bool { + let anchor = ctx.data(|d| d.get_temp::(Id::unique("flyout-anchor"))); + let menu = ctx.memory(|m| m.area_rect(Id::unique("tool-flyout"))); + anchor.zip(menu).is_some_and(|(a, m)| m.center().x < a.center().x) +} + +/// Whether the card of `resp` stays away: the pointer is not resting on the button, a button or a +/// modifier key is held, or a press, key, modifier, scroll or pinch came since it arrived. +fn quiet(ctx: &Context, resp: &Response) -> bool { + let quiet_for: Option = ctx.data(|d| d.get_temp(quiet_id())); + if !pointer_on(ctx, resp) { + forget_quiet(ctx, resp); + return true; + } + let busy = ctx.input(|i| { + i.pointer.any_down() + || i.pointer.any_pressed() + || i.pointer.any_released() + || i.modifiers.any() + // The frame's raw events: the shortcuts, which run before the toolbar draws, take the + // keys they handle (such as the arrows that nudge the selection) out of `i.events`. + || i.raw.events.iter().any(|e| { + matches!( + e, + Event::Key { pressed: true, .. } + | Event::Text(_) + | Event::MouseWheel { .. } + | Event::ModifiersChanged(_) + | Event::Zoom(_) + | Event::Rotate(_) + ) + }) + }); + if busy { + ctx.data_mut(|d| d.insert_temp(quiet_id(), resp.id)); + return true; + } + quiet_for == Some(resp.id) +} + +/// Whether the pointer rests on the button `resp`. +fn pointer_on(ctx: &Context, resp: &Response) -> bool { + resp.hovered() && ctx.input(|i| i.pointer.hover_pos()).is_some_and(|p| resp.rect.contains(p)) +} + +/// Drops the quiet mark of `resp`, once the pointer has left it. +fn forget_quiet(ctx: &Context, resp: &Response) { + if ctx.data(|d| d.get_temp::(quiet_id())) == Some(resp.id) { + ctx.data_mut(|d| d.remove::(quiet_id())); + } +} + +/// The card: icon, name and shortcut; what the tool does; one line per action of its hint. +fn card(ui: &mut Ui, tool: &ToolInfo, description: &str, animated_zoom: bool) { + let t = Tokens::get(ui.ctx()); + // Every line wraps inside the width `placement` keeps free, long translated names included. + ui.set_max_width(WIDTH); + ui.horizontal(|ui| { + let (r, _) = ui.allocate_exact_size(vec2(ICON, ICON), Sense::hover()); + icons::paint(ui, icons::tool_icon(tool.icon), r, t.icon); + ui.add_space(4.0); + ui.add(egui::Label::new(RichText::new(super::tip(tool)).strong().color(t.text_strong)).wrap()); + }); + ui.add(egui::Label::new(RichText::new(tl!(description)).color(t.text)).wrap()); + let lines = lines(tool.id, animated_zoom); + if !lines.is_empty() { + ui.separator(); + } + for line in lines { + let mut job = egui::text::LayoutJob::default(); + job.wrap.max_width = ui.available_width(); + for (text, bold) in line { + let font = if bold { crate::theme::semibold(12.0) } else { egui::FontId::proportional(12.0) }; + job.append(&text, 0.0, egui::TextFormat { font_id: font, color: if bold { t.text_strong } else { t.text }, ..Default::default() }); + } + ui.label(job); + } +} + +/// The hint bar's segments for `tool`, one line per action: a line ends at a `|` in the hint's text. +pub(crate) fn lines(tool: &str, animated_zoom: bool) -> Vec> { + let mut lines = vec![]; + let mut line: Vec<(String, bool)> = vec![]; + for (text, bold) in crate::chrome::tool_hint(tool, animated_zoom).unwrap_or_default() { + if bold { + line.push((text.into_owned(), true)); + continue; + } + let mut parts = text.split('|').peekable(); + while let Some(part) = parts.next() { + let part = if line.is_empty() { part.trim_start() } else { part }; + let part = if parts.peek().is_some() { part.trim_end() } else { part }; + if !part.is_empty() { + line.push((part.to_string(), false)); + } + if parts.peek().is_some() && !line.is_empty() { + lines.push(std::mem::take(&mut line)); + } + } + } + if !line.is_empty() { + lines.push(line); + } + lines +} diff --git a/crates/ui-egui/src/toolbar/tests.rs b/crates/ui-egui/src/toolbar/tests.rs index 708e5e9807..4c8c25392d 100644 --- a/crates/ui-egui/src/toolbar/tests.rs +++ b/crates/ui-egui/src/toolbar/tests.rs @@ -989,6 +989,388 @@ fn a_floating_flyouts_buttons_have_tool_tips_when_tool_tips_are_on() { assert!(hovered_texts(&mut app, &ctx, 30.0, star).contains(&tip), "on again"); } +/// The window of the tool card tests. +const WINDOW: egui::Vec2 = vec2(400.0, 1200.0); + +/// One frame with the preferences applied, as the app runs it, in a window `size` points big: the +/// texts it paints, each with its rect. +fn painted_in(app: &mut VectorcraftApp, ctx: &egui::Context, time: f64, events: Vec, size: egui::Vec2) -> Vec<(String, egui::Rect)> { + painted_after(app, ctx, time, events, size, None) +} + +/// [`painted_in`], with `taken` (a key the shortcuts handle before the toolbar draws) taken out of +/// the frame's input first, as the shortcuts take it. +fn painted_after( + app: &mut VectorcraftApp, + ctx: &egui::Context, + time: f64, + events: Vec, + size: egui::Vec2, + taken: Option, +) -> Vec<(String, egui::Rect)> { + fn texts(s: &egui::Shape, out: &mut Vec<(String, egui::Rect)>) { + match s { + egui::Shape::Text(t) => out.push((t.galley.text().to_string(), t.visual_bounding_rect())), + egui::Shape::Vec(v) => v.iter().for_each(|s| texts(s, out)), + _ => {} + } + } + let raw = egui::RawInput { events, time: Some(time), screen_rect: Some(egui::Rect::from_min_size(Pos2::ZERO, size)), ..Default::default() }; + let mut out = ctx.run_ui(raw, |ui| { + crate::prefs_dialog::apply_runtime(app, ui.ctx()); + if let Some(key) = taken { + assert!(ui.ctx().input_mut(|i| i.consume_key(egui::Modifiers::NONE, key)), "{key:?} taken"); + } + show(app, ui); + }); + out.textures_delta.clear(); + let mut shown = vec![]; + out.shapes.iter().for_each(|c| texts(&c.shape, &mut shown)); + shown +} + +/// [`painted_in`] in [`WINDOW`], the texts alone. +fn painted_texts(app: &mut VectorcraftApp, ctx: &egui::Context, time: f64, events: Vec) -> Vec { + painted_in(app, ctx, time, events, WINDOW).into_iter().map(|(s, _)| s).collect() +} + +/// The description of the tool `id`, as its card shows it. +fn described(id: &str) -> String { + vectorcraft_tools::catalog::tool_description(id).unwrap_or_else(|| panic!("{id} has no description")).to_string() +} + +/// Rest the pointer on `at` from `t0`, in a window `size` points big, until the card of the tool +/// `id` shows; returns the time and the rect of the card's description. +fn until_card_in(app: &mut VectorcraftApp, ctx: &egui::Context, t0: f64, at: Pos2, id: &str, size: egui::Vec2) -> (f64, egui::Rect) { + let text = described(id); + painted_in(app, ctx, t0, vec![Event::PointerGone], size); + painted_in(app, ctx, t0 + 0.1, vec![Event::PointerMoved(at)], size); + let mut last = vec![]; + for i in 2..30 { + let time = t0 + f64::from(i) * 0.1; + last = painted_in(app, ctx, time, vec![], size); + if let Some((_, rect)) = last.iter().find(|(s, _)| *s == text) { + return (time, *rect); + } + } + last.retain(|(s, _)| !s.starts_with('⚠')); + panic!("no card for {id} on {at:?}: {last:?}"); +} + +/// Rest the pointer on `at` from `t0` for three seconds, in a window `size` points big: the texts of +/// each frame. +fn hovered_in(app: &mut VectorcraftApp, ctx: &egui::Context, t0: f64, at: Pos2, size: egui::Vec2) -> Vec> { + painted_in(app, ctx, t0, vec![Event::PointerGone], size); + let moved = painted_in(app, ctx, t0 + 0.1, vec![Event::PointerMoved(at)], size); + std::iter::once(moved).chain((2..30).map(|i| painted_in(app, ctx, t0 + f64::from(i) * 0.1, vec![], size))).collect() +} + +/// [`until_card_in`] in [`WINDOW`]. +fn until_card(app: &mut VectorcraftApp, ctx: &egui::Context, t0: f64, at: Pos2, id: &str) -> (f64, egui::Rect) { + until_card_in(app, ctx, t0, at, id, WINDOW) +} + +/// General › Show Tool Cards: a tool's tool tip becomes a card with its name and shortcut, what it +/// does, and one line per action of its hint, the modifier keys named for the platform. +#[test] +fn a_tool_card_shows_what_the_tool_does_and_what_its_keys_do() { + let lines = card::lines("selection", false); + let plain = |line: &Vec<(String, bool)>| line.iter().map(|(s, _)| s.as_str()).collect::(); + assert_eq!(lines.len(), 3, "{lines:?}"); + assert_eq!(plain(&lines[0]), "Click the object to select"); + let shift = crate::menus::shown_shortcut("Shift+Click"); + assert_eq!(lines[1], vec![(shift.clone(), true), (" to select multiple objects".to_string(), false)]); + assert!(plain(&lines[2]).ends_with(" the object to duplicate"), "{lines:?}"); + // A segment that runs on past a key keeps its pieces on one line. + let warp = card::lines("warp", false); + assert_eq!(warp.len(), 2, "{warp:?}"); + assert!(plain(&warp[1]).ends_with(" keeps its proportions)"), "{warp:?}"); + // The Zoom tool's card follows the animated zoom's hint. + assert_ne!(card::lines("zoom", false), card::lines("zoom", true)); + + let mut app = VectorcraftApp::new(Session::new(), Default::default()); + app.run("file.new", json!({"width": 300, "height": 300})).unwrap(); + app.run("prefs.set", json!({"key": "showToolCards", "value": true})).unwrap(); + let ctx = egui::Context::default(); + let selection = frame(&mut app, &ctx, 0.0, vec![])[0]; + let shown = hovered_texts(&mut app, &ctx, 1.0, selection.center()); + assert!(shown.contains(&described("selection")), "{shown:?}"); + assert!(shown.contains(&tip(tool_info("selection").unwrap())), "{shown:?}"); + assert!(shown.contains(&format!("{shift} to select multiple objects")), "{shown:?}"); + // The card sits beside its button, inside the window. + let (_, text) = until_card(&mut app, &ctx, 10.0, selection.center(), "selection"); + let window = egui::Rect::from_min_size(Pos2::ZERO, WINDOW); + assert!(text.left() >= selection.right() && window.contains_rect(text), "{text:?} beside {selection:?}"); +} + +/// A tool without a description keeps its one-line tool tip with the cards on; with the cards off +/// (the default), or tool tips off, no card shows. +#[test] +fn tool_cards_are_off_by_default_and_fall_back_to_the_tool_tip() { + assert!(!Session::new().prefs.show_tool_cards, "off by default"); + let mut app = VectorcraftApp::new(Session::new(), Default::default()); + app.run("file.new", json!({"width": 300, "height": 300})).unwrap(); + let ctx = egui::Context::default(); + let rects = frame(&mut app, &ctx, 0.0, vec![]); + let (selection, lasso) = (rects[0].center(), rects[2].center()); + let selection_tip = tip(tool_info("selection").unwrap()); + let off = hovered_texts(&mut app, &ctx, 1.0, selection); + assert!(off.contains(&selection_tip) && !off.contains(&described("selection")), "off: the tool tip, {off:?}"); + + app.run("prefs.set", json!({"key": "showToolCards", "value": true})).unwrap(); + assert_eq!(vectorcraft_tools::catalog::tool_description("lasso"), None); + let lasso_tip = tip(tool_info("lasso").unwrap()); + assert!(hovered_texts(&mut app, &ctx, 10.0, lasso).contains(&lasso_tip), "no description: the tool tip"); + + app.session.prefs.show_tool_tips = false; + let none = hovered_texts(&mut app, &ctx, 20.0, selection); + assert!(!none.contains(&described("selection")) && !none.contains(&selection_tip), "tool tips off: {none:?}"); +} + +/// A card that is showing goes away when tool tips are turned off, while the pointer stays on its +/// button. +#[test] +fn a_shown_tool_card_goes_away_when_tool_tips_are_turned_off() { + let mut app = VectorcraftApp::new(Session::new(), Default::default()); + app.run("file.new", json!({"width": 300, "height": 300})).unwrap(); + app.run("prefs.set", json!({"key": "showToolCards", "value": true})).unwrap(); + let ctx = egui::Context::default(); + let selection = frame(&mut app, &ctx, 0.0, vec![])[0].center(); + let (time, _) = until_card(&mut app, &ctx, 1.0, selection, "selection"); + app.run("prefs.set", json!({"key": "showToolTips", "value": false})).unwrap(); + let after: Vec = (1..5).flat_map(|i| painted_texts(&mut app, &ctx, time + f64::from(i) * 0.1, vec![])).collect(); + assert!(!after.contains(&described("selection")), "{after:?}"); + + // A card a click put away stays away while the pointer rests on its button, and shows again on + // the next rest when the pointer left and came back while tool tips were off. + app.run("prefs.set", json!({"key": "showToolTips", "value": true})).unwrap(); + let (t, _) = until_card(&mut app, &ctx, 10.0, selection, "selection"); + let b = |pressed| Event::PointerButton { pos: selection, button: PointerButton::Primary, pressed, modifiers: Default::default() }; + painted_texts(&mut app, &ctx, t + 0.1, vec![b(true)]); + painted_texts(&mut app, &ctx, t + 0.15, vec![b(false)]); + // Tool tips off and on again while the pointer stays: the card stays away. + app.run("prefs.set", json!({"key": "showToolTips", "value": false})).unwrap(); + painted_texts(&mut app, &ctx, t + 0.2, vec![]); + app.run("prefs.set", json!({"key": "showToolTips", "value": true})).unwrap(); + let stayed: Vec = (3..30).flat_map(|i| painted_texts(&mut app, &ctx, t + f64::from(i) * 0.1, vec![])).collect(); + assert!(!stayed.contains(&described("selection")), "{stayed:?}"); + let t = t + 3.0; + app.run("prefs.set", json!({"key": "showToolTips", "value": false})).unwrap(); + painted_texts(&mut app, &ctx, t + 0.2, vec![Event::PointerGone]); + // Back onto the button. + painted_texts(&mut app, &ctx, t + 0.3, vec![Event::PointerMoved(selection + vec2(2.0, 2.0))]); + painted_texts(&mut app, &ctx, t + 0.35, vec![Event::PointerMoved(selection)]); + app.run("prefs.set", json!({"key": "showToolTips", "value": true})).unwrap(); + let again: Vec = (4..30).flat_map(|i| painted_texts(&mut app, &ctx, t + f64::from(i) * 0.1, vec![])).collect(); + assert!(again.contains(&described("selection")), "{again:?}"); +} + +/// A card never gets in the way: a press with it showing picks the tool and puts the card away at +/// once, it stays away until the pointer leaves, a key (one the shortcuts take first too), a +/// modifier key alone and a scroll put it away, a long press with it showing still opens a group's flyout on time, while that flyout is +/// open the other buttons show their one-line tool tips and the flyout's rows show cards past its +/// bar, and a press held from off the toolbar (as a drag on the canvas holds one) shows none. +#[test] +fn a_tool_card_never_gets_in_the_way() { + let mut app = VectorcraftApp::new(Session::new(), Default::default()); + app.run("file.new", json!({"width": 300, "height": 300})).unwrap(); + app.run("prefs.set", json!({"key": "showToolCards", "value": true})).unwrap(); + let ctx = egui::Context::default(); + let rects = frame(&mut app, &ctx, 0.0, vec![]); + let (selection, direct, shapes) = (rects[0].center(), rects[1].center(), rects[3].center()); + let has_card = |shown: &Vec, id: &str| shown.contains(&described(id)); + let b = |pos, pressed| Event::PointerButton { pos, button: PointerButton::Primary, pressed, modifiers: Default::default() }; + + // A click with the card showing picks the tool and does nothing else. + assert_eq!(app.session.tool_id(), "selection"); + let (t, _) = until_card(&mut app, &ctx, 1.0, direct, "directSelection"); + assert!(!has_card(&painted_texts(&mut app, &ctx, t + 0.1, vec![b(direct, true)]), "directSelection"), "gone on the press"); + assert!(!has_card(&painted_texts(&mut app, &ctx, t + 0.15, vec![b(direct, false)]), "directSelection")); + assert_eq!(app.session.tool_id(), "directSelection", "the click picked the tool"); + assert_eq!(app.ui.flyout, None, "and did nothing else"); + for i in 0..20 { + let shown = painted_texts(&mut app, &ctx, t + 0.2 + f64::from(i) * 0.1, vec![]); + assert!(!has_card(&shown, "directSelection"), "stays away while the pointer rests there"); + } + + // A key, a modifier key alone and a scroll each put a showing card away. + let key = Event::Key { key: egui::Key::X, physical_key: None, pressed: true, repeat: false, modifiers: Default::default() }; + let scroll = wheel(selection, 10.0).pop().unwrap(); + for (k, event) in [key, Event::ModifiersChanged(egui::Modifiers::SHIFT), scroll].into_iter().enumerate() { + let what = format!("{event:?}"); + let (t, _) = until_card(&mut app, &ctx, 10.0 + 10.0 * k as f64, selection, "selection"); + assert!(!has_card(&painted_texts(&mut app, &ctx, t + 0.1, vec![event]), "selection"), "gone on {what}"); + // The key or the modifier comes up again. + let up = Event::Key { key: egui::Key::X, physical_key: None, pressed: false, repeat: false, modifiers: Default::default() }; + painted_texts(&mut app, &ctx, t + 0.2, vec![up, Event::ModifiersChanged(egui::Modifiers::NONE)]); + } + // So does an arrow key that the shortcuts take before the toolbar draws (it nudges the selection). + let (t, _) = until_card(&mut app, &ctx, 45.0, selection, "selection"); + let arrow = Event::Key { key: egui::Key::ArrowLeft, physical_key: None, pressed: true, repeat: false, modifiers: Default::default() }; + let shown = painted_after(&mut app, &ctx, t + 0.1, vec![arrow], WINDOW, Some(egui::Key::ArrowLeft)); + assert!(!shown.iter().any(|(s, _)| *s == described("selection")), "gone on an arrow key the shortcuts took"); + + // A long press on a group's button with its card showing still opens its flyout on time. + let (t, _) = until_card(&mut app, &ctx, 50.0, shapes, "rectangle"); + assert!(!has_card(&painted_texts(&mut app, &ctx, t + 0.1, vec![b(shapes, true)]), "rectangle"), "gone on the press"); + painted_texts(&mut app, &ctx, t + 0.1 + LONG_PRESS + 0.01, vec![]); + assert!(app.ui.flyout.is_some(), "the long press opened the flyout"); + assert_eq!(app.session.tool_id(), "directSelection"); + painted_texts(&mut app, &ctx, t + 1.0, vec![b(shapes, false)]); + assert!(app.ui.flyout.is_some()); + + // While it is open, another button shows its one-line tool tip instead of a card ... + let shown = hovered_texts(&mut app, &ctx, 60.0, selection); + assert!(!has_card(&shown, "selection") && shown.contains(&tip(tool_info("selection").unwrap())), "{shown:?}"); + // ... and its rows show theirs beside it, past its bar, when the window has room there; when + // it has none, a row shows no card rather than one pushed over the flyout. + let menu = ctx.memory(|m| m.area_rect(egui::Id::unique("tool-flyout"))).expect("the flyout is shown"); + let row = pos2(menu.left() + 60.0, menu.top() + 45.0); + let narrow = vec2(menu.right() + 100.0, WINDOW.y); + for (k, shown) in hovered_in(&mut app, &ctx, 65.0, row, narrow).into_iter().enumerate() { + assert!(!shown.iter().any(|(s, _)| *s == described("roundedRectangle")), "no room: no card (frame {k})"); + } + let (_, text) = until_card_in(&mut app, &ctx, 70.0, row, "roundedRectangle", vec2(menu.right() + 400.0, WINDOW.y)); + assert!(text.left() >= menu.right(), "{text:?} beside {menu:?}"); + let away = pos2(300.0, 1000.0); + painted_texts(&mut app, &ctx, 80.0, vec![Event::PointerMoved(away), b(away, true)]); + painted_texts(&mut app, &ctx, 80.05, vec![b(away, false)]); + assert_eq!(app.ui.flyout, None); + + // A press held from off the toolbar, moved over a tool button, shows no card. + painted_texts(&mut app, &ctx, 90.0, vec![Event::PointerMoved(away), b(away, true)]); + painted_texts(&mut app, &ctx, 90.1, vec![Event::PointerMoved(selection)]); + for i in 2..30 { + let shown = painted_texts(&mut app, &ctx, 90.0 + f64::from(i) * 0.1, vec![]); + assert!(!has_card(&shown, "selection"), "no card while a button is held"); + } + painted_texts(&mut app, &ctx, 93.0, vec![b(selection, false)]); +} + +/// A floating flyout's buttons show cards below the strip, except while a group's flyout is open: +/// then they show their one-line tool tips. +#[test] +fn a_floating_flyouts_cards_give_way_to_an_open_flyout() { + let mut app = VectorcraftApp::new(Session::new(), Default::default()); + let tools: Vec = ["rectangle", "roundedRectangle", "star"].map(String::from).to_vec(); + app.ui.floating_flyouts.push(crate::state::FloatingFlyout { tools, pos: [150.0, 600.0] }); + let ctx = egui::Context::default(); + shapes_button(&mut app, &ctx); + app.run("prefs.set", json!({"key": "showToolCards", "value": true})).unwrap(); + let rects = frame(&mut app, &ctx, 1.0, vec![]); + let strip = ctx.memory(|m| m.area_rect(floating_area("rectangle"))).unwrap(); + let star = pos2(strip.left() + STRIP_BUTTON.x * 2.5, strip.center().y); + let (_, text) = until_card(&mut app, &ctx, 10.0, star, "star"); + let window = egui::Rect::from_min_size(Pos2::ZERO, WINDOW); + assert!(text.top() >= strip.bottom() && window.contains_rect(text), "{text:?} below {strip:?}"); + // A right-click on the Direct Selection group's button opens its flyout. + let direct = rects[1].center(); + let r = |pressed| Event::PointerButton { pos: direct, button: PointerButton::Secondary, pressed, modifiers: Default::default() }; + frame(&mut app, &ctx, 20.0, vec![Event::PointerMoved(direct), r(true)]); + frame(&mut app, &ctx, 20.05, vec![r(false)]); + assert!(app.ui.flyout.is_some()); + let shown = hovered_texts(&mut app, &ctx, 30.0, star); + assert!(!shown.contains(&described("star")) && shown.contains(&tl!("Star Tool").to_string()), "{shown:?}"); +} + +/// A floating flyout's card goes above the strip when the window has no room below it, and when it +/// has room neither above nor below, the button keeps its one-line tool tip. +#[test] +fn a_floating_flyouts_card_goes_above_or_gives_way_in_a_short_window() { + let mut app = VectorcraftApp::new(Session::new(), Default::default()); + let tools: Vec = ["rectangle", "roundedRectangle", "star"].map(String::from).to_vec(); + app.ui.floating_flyouts.push(crate::state::FloatingFlyout { tools, pos: [150.0, 600.0] }); + let ctx = egui::Context::default(); + shapes_button(&mut app, &ctx); + app.run("prefs.set", json!({"key": "showToolCards", "value": true})).unwrap(); + frame(&mut app, &ctx, 1.0, vec![]); + let strip = ctx.memory(|m| m.area_rect(floating_area("rectangle"))).unwrap(); + let star = pos2(strip.left() + STRIP_BUTTON.x * 2.5, strip.center().y); + let low = vec2(WINDOW.x, strip.bottom() + 40.0); + let (_, text) = until_card_in(&mut app, &ctx, 10.0, star, "star", low); + assert!(text.bottom() <= strip.top(), "{text:?} above {strip:?}"); + + app.ui.floating_flyouts[0].pos = [150.0, 150.0]; + let short = vec2(WINDOW.x, 360.0); + painted_in(&mut app, &ctx, 20.0, vec![], short); + let strip = ctx.memory(|m| m.area_rect(floating_area("rectangle"))).unwrap(); + let star = pos2(strip.left() + STRIP_BUTTON.x * 2.5, strip.center().y); + let frames = hovered_in(&mut app, &ctx, 30.0, star, short); + let shown: Vec<&String> = frames.iter().flatten().map(|(s, _)| s).collect(); + assert!(!shown.contains(&&described("star")) && shown.contains(&&tl!("Star Tool").to_string()), "{shown:?}"); +} + +/// A flyout that opens left of its button (a toolbar docked right) shows its rows' cards on its +/// left, clear of the button. +#[test] +fn a_flyout_opened_to_the_left_shows_its_cards_on_the_left() { + let mut app = VectorcraftApp::new(Session::new(), Default::default()); + app.run("file.new", json!({"width": 300, "height": 300})).unwrap(); + app.run("prefs.set", json!({"key": "showToolCards", "value": true})).unwrap(); + let ctx = egui::Context::default(); + let size = vec2(800.0, 1200.0); + let anchor = egui::Rect::from_min_size(pos2(760.0, 100.0), vec2(36.0, PITCH - 1.0)); + app.ui.flyout = Some(0); + ctx.data_mut(|d| { + d.insert_temp(egui::Id::unique("flyout-anchor"), anchor); + d.insert_temp(egui::Id::unique("flyout-tools"), ["rectangle", "roundedRectangle", "ellipse"].map(String::from).to_vec()); + d.insert_temp(flyout_toolbar_id(), None::); + }); + painted_in(&mut app, &ctx, 0.0, vec![], size); + painted_in(&mut app, &ctx, 0.1, vec![], size); + let menu = ctx.memory(|m| m.area_rect(egui::Id::unique("tool-flyout"))).expect("the flyout is shown"); + assert!(menu.right() <= anchor.left(), "the flyout opened left: {menu:?}"); + let row = pos2(menu.left() + 60.0, menu.top() + 45.0); + let (_, text) = until_card_in(&mut app, &ctx, 1.0, row, "roundedRectangle", size); + assert!(text.right() <= menu.left() && !text.intersects(anchor), "{text:?} left of {menu:?}"); +} + +/// A long translated tool name wraps inside the card's width, so the card keeps to the room its +/// placement checked. +#[test] +fn a_long_translated_name_wraps_inside_the_card() { + let ru = crate::i18n::Lang::from_code("ru").unwrap(); + crate::i18n::set_current(ru); + let mut app = VectorcraftApp::new(Session::new(), Default::default()); + app.run("file.new", json!({"width": 300, "height": 300})).unwrap(); + app.run("prefs.set", json!({"key": "showToolCards", "value": true})).unwrap(); + let ctx = egui::Context::default(); + crate::theme::install_fonts(&ctx); + let anchor = egui::Rect::from_min_size(pos2(760.0, 100.0), vec2(36.0, PITCH - 1.0)); + app.ui.flyout = Some(0); + ctx.data_mut(|d| { + d.insert_temp(egui::Id::unique("flyout-anchor"), anchor); + d.insert_temp(egui::Id::unique("flyout-tools"), ["rectangle", "roundedRectangle", "ellipse"].map(String::from).to_vec()); + d.insert_temp(flyout_toolbar_id(), None::); + }); + let size = vec2(800.0, 1200.0); + painted_in(&mut app, &ctx, 0.0, vec![], size); + painted_in(&mut app, &ctx, 0.1, vec![], size); + let menu = ctx.memory(|m| m.area_rect(egui::Id::unique("tool-flyout"))).expect("the flyout is shown"); + let row = pos2(menu.left() + 60.0, menu.top() + 45.0); + let name = tip(tool_info("roundedRectangle").unwrap()); + let english = described("roundedRectangle"); + let description = tl!(english.as_str()).to_string(); + assert_ne!(description, english, "the description has a Russian row"); + painted_in(&mut app, &ctx, 1.0, vec![Event::PointerGone], size); + painted_in(&mut app, &ctx, 1.1, vec![Event::PointerMoved(row)], size); + let mut card = None; + for i in 2..30 { + let shown = painted_in(&mut app, &ctx, 1.0 + f64::from(i) * 0.1, vec![], size); + if shown.iter().any(|(s, _)| *s == description) { + card = Some(shown); + break; + } + } + crate::i18n::set_current(crate::i18n::Lang::EN); + let shown = card.expect("the Russian card shows"); + let heading = shown.iter().filter(|(s, _)| *s == name).map(|(_, r)| *r).max_by(|a, b| a.left().total_cmp(&b.left()).reverse()); + let heading = heading.expect("the card shows the name"); + // The name sits right of the icon, inside the card's width. + assert!(heading.width() <= card::WIDTH - card::ICON, "{name}: {heading:?}"); + assert!(heading.right() <= menu.left(), "{heading:?} left of {menu:?}"); +} + /// Screen readers name a flyout's rows and a floating strip's buttons by their tools' tool tips, /// with the active tool's pressed, and name the strip's close box and both tear-off bars. #[test] diff --git a/docs/mcp.md b/docs/mcp.md index 11ccc45bd9..6ad67e3d40 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -7689,6 +7689,9 @@ wheel zooms about the pointer, Shift-wheel scrolls up and down, Cmd/Ctrl-wheel s `ui.wheel` turns the wheel), `trackpadRotateView` (on by default: a two-finger rotation on a Mac trackpad, in the macOS app or in Safari, turns the view about the pointer once it reaches 5°; with it off, the gesture does not turn the view), `zoomToSelection` (on: Zoom In and Zoom Out centre the selection), `showToolTips`, +`showToolCards` (off by default: with `showToolTips` on, resting the pointer on a tool button shows a card with what +the tool does and the keys its hint-bar text lists, for the tools that have a description; a press, drag, key, +modifier key, scroll or pinch puts the card away), `anchorSize` (1–7), `gridColor`, `gridStyle`, `gridsInBack`, `guideColor`, `guideStyle`, `showPixelGrid` (on by default: in View › Pixel Preview at 600% zoom and above, a line at every document pixel over the art), `recentFontsCount`, `antiAliasedArtwork` (on by default; off, the canvas draws the art with hard edges — a pixel is diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index a4841fc843..fcc6a6c3fa 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -1050,6 +1050,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur - With anchor points selected with Direct Selection, the contextual task bar offers Remove Anchor Points, Connect (`path.join`), Cut Path, and Convert Selected Anchor Points to Corner and to Smooth (`path.convertAnchors` with `to` set to `corner` or `smooth`), the commands of the Control bar's anchor buttons; the two convert buttons show their icons alone, named by their tool tips as on the Control bar (VectorCraft's own choice). The overview lists items that delete the selected anchors, join selected end points, split the path at the selected anchors, and make the selected anchors corner or smooth points ([Contextual Task Bar overview](https://helpx.adobe.com/illustrator/desktop/get-started/learn-the-basics/contextual-task-bar-overview.html)). With a path selected whole with Direct Selection, the bar also offers Simplify and Smooth, which open the Simplify and Smooth sliders as Object › Path › Simplify… and Smooth… do; the same overview names Smooth as adjusting the path's curvature (#6784). VectorCraft's own rule: while anchors are picked out, the bar offers the anchor items without Simplify and Smooth. Evidence: `direct_selection_smooth_opens_the_smooth_slider` in `crates/ui-egui/src/tests/taskbar.rs`. - Tool flyouts tear off: dragging or clicking the tear-off bar on a flyout's right side (or releasing the long press over it) floats its group as a strip of tool buttons, moved by the same bar and put back in the toolbar by the × at its top (`window.floatTools`). While a group floats, the presses that would open its flyout raise the strip instead. Floating strips are kept with the preferences and in user workspaces. Not done: turning a strip vertical, docking it. - Screen readers get a name for the Tools panel's tool buttons, flyout rows, floating strips and tear-off bars, and for the icon buttons, text buttons, toggles, checkboxes, radio buttons, tabs, chips, sliders, angle dials and combo boxes that panels and dialogs draw with `crates/ui-egui/src/widgets.rs`: the text, label or tool tip each one shows, or a name of its own where it shows none (the angle dial, the spinner, the preset arrow, the color wheel and the Reference Point's squares). The tool buttons, toggles, checkboxes, radio buttons, tabs and the Reference Point's nine squares also report whether they are on, an icon button that is lit, such as the chosen Align To button, reports that it is pressed, and the angle dial reports its angle. The status bar's First, Previous, Next and Last Artboard buttons have tool tips. + - General › Show Tool Cards (`showToolCards`, off by default, VectorCraft's own feature): with Show Tool Tips on, resting the pointer on a tool button in the Tools panel, a floating flyout or a toolbar made with New Toolbar shows a card in place of its one-line tool tip, and resting it on a flyout's row shows one too. The card has the tool's icon, name and shortcut, one sentence on what the tool does, and one line for each action of its hint-bar text, with the modifier keys named for the platform. A tool without a description keeps its one-line tool tip. The card does not take clicks, keys or the pointer, sits beside its button inside the window (beside a flyout on the side the flyout opened toward, past its bar; below a floating flyout, or above it when there is no room below; where the window has no room for it, the button keeps its one-line tool tip), and goes away on a press, drag, key, modifier key, scroll or pinch until the pointer leaves the button. While a group's flyout is open, only its rows show cards. The checkbox is dimmed while Show Tool Tips is off. Evidence: `a_tool_card_never_gets_in_the_way`, `a_floating_flyouts_cards_give_way_to_an_open_flyout`, `a_floating_flyouts_card_goes_above_or_gives_way_in_a_short_window` and `a_flyout_opened_to_the_left_shows_its_cards_on_the_left` in `crates/ui-egui/src/toolbar/tests.rs`. - Tab does not stop on the regions that only the pointer uses: the custom title bar's background and the window's resize zones, the band at the top of a dialog that moves it, the Tools panel's grip, a flyout's and a floating strip's tear-off bar, the isolation bar's background, and the rulers and the box where they meet. - These dialog sliders, each beside a number field, respond to the keyboard: those of the effect, tool option, brush and transform dialogs, the Perspective Grid, the 3D dialogs, and the flattener options, which the Flattener Preview panel also shows. A click, or Tab, gives a slider the keyboard focus, and an outline shows it. Then → and ↑ step the field's number up to the next whole number and ← and ↓ step it down to the next whole number, Shift with an arrow and Page Up and Page Down step it by ten, and Home and End set the slider's first and last value; no step goes past either end. Screen readers' increment and decrement actions step the slider as → and ← do. The Color panel's, Swatch Options', the Navigator's and the Character panel's sliders, and the Color Picker's channel slider, respond only to the pointer. The keys follow the WAI-ARIA slider pattern (); the reference app's help does not describe keys on a dialog's slider, so the step sizes are VectorCraft's own. - Screen readers get the value of the color and channel sliders that panels and dialogs draw (the Color panel, the Color Picker, Swatch Options, the Navigator's Zoom, the Character panel's variable font axes, the Perspective Grid and flattener options, and the sliders of the effect, tool option and transform dialogs): the number and text of the field beside each one, such as 128 for G or 50% for an opacity, with the slider's range, which extends to include a number past the slider's end. The harmony wheel's Brightness slider, which has no field, reports its brightness in percent.