ui: rename the Graphics and Titles menu to Graphics (#5350)

* ui: rename the Graphics and Titles menu to Graphics

The top-level menu was labelled "Graphics and Titles". It is now
"Graphics", matching how the area is already named in docs/graphics.md
and in the existing i18n key.

Command menu paths, the keyboard-shortcuts category (taken from the
first path segment), docs, comments, and the view_ui path assertion
follow the new name. Shortcut presets stay compatible: bindings are
stored by command id, not menu title.

Catalogs already had a "Graphics" entry, so the menu uses that key and
its existing translations. The unused "Graphics and Titles" rows were
removed. Ukrainian has no "Graphics" entry yet and will show English
until a translator adds one; no translation was invented.

* i18n(uk): keep a Graphics menu translation from the existing wording

Ukrainian had no Graphics key. The retired "Graphics and Titles" row was
"Графіка й титри", and the catalog already translates "Graphics…" as
"Графіка…". Use "Графіка" for the renamed menu rather than leaving it in
English.
This commit is contained in:
FredApps authored and GitHub committed 2026-11-28 22:24:12 +01:00
1 parent 86ac361103
commit 5423fa818e
25 files changed
+26 -41

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ fn query(id: &'static str, label: &'static str, params: &'static str, run: Run)
CommandSpec { id, label, menu: &[], shortcut: None, params, enabled: always, run, journal: false, named: crate::commands::NamedKeys::NONE }
}
const G: &[&str] = &["Graphics and Titles"];
const G: &[&str] = &["Graphics"];
const MAX_THUMBNAIL_DIMENSION: u32 = 1920;
fn has_graphic(s: &Session) -> std::result::Result<(), String> {
+12 -12
View File
@@ -820,13 +820,13 @@ const ALIGN_PARAMS: &str = r#"{"clip":id?,"layers":[n]? (default: the selected l
macro_rules! align_cmd {
($id:literal, $label:literal, $menu:expr, $how:literal, $mode:expr, $en:expr) => {
spec($id, $label, &["Graphics and Titles", $menu], None, ALIGN_PARAMS, $en, |s, p| align_layers(s, p, $how, $mode))
spec($id, $label, &["Graphics", $menu], None, ALIGN_PARAMS, $en, |s, p| align_layers(s, p, $how, $mode))
};
}
macro_rules! arrange_cmd {
($id:literal, $label:literal, $sc:literal, $to:literal) => {
spec($id, $label, &["Graphics and Titles", "Arrange"], Some($sc), r#"{"clip":id?,"layer":n?}"#, has_graphic, |s, p| arrange_layer(s, p, json!($to)))
spec($id, $label, &["Graphics", "Arrange"], Some($sc), r#"{"clip":id?,"layer":n?}"#, has_graphic, |s, p| arrange_layer(s, p, json!($to)))
};
}
@@ -845,13 +845,13 @@ fn menu_commands() -> Vec<CommandSpec> {
const F: &str = "Align to Video Frame";
const G: &str = "Align to Video Frame as Group";
const S: &str = "Align to Selection";
const D: &[&str] = &["Graphics and Titles", "Distribute"];
const SEL: &[&str] = &["Graphics and Titles", "Select"];
const D: &[&str] = &["Graphics", "Distribute"];
const SEL: &[&str] = &["Graphics", "Select"];
vec![
spec(
"graphics.newVerticalText",
"Vertical Text",
&["Graphics and Titles", "New Layer"],
&["Graphics", "New Layer"],
None,
r#"{"text":str="New Text","position":[x,y]?,"clip":id?,"size":px=100,"seconds":f64=5,"time":ticks?}"#,
has_seq,
@@ -864,7 +864,7 @@ fn menu_commands() -> Vec<CommandSpec> {
spec(
"graphics.newRectangle",
"Rectangle",
&["Graphics and Titles", "New Layer"],
&["Graphics", "New Layer"],
Some("Cmd+Alt+R"),
r#"{"position":[x,y]?,"size":[w,h]=[400,200],"clip":id?,"seconds":f64=5,"track":index?,"time":ticks?}"#,
has_seq,
@@ -873,7 +873,7 @@ fn menu_commands() -> Vec<CommandSpec> {
spec(
"graphics.newEllipse",
"Ellipse",
&["Graphics and Titles", "New Layer"],
&["Graphics", "New Layer"],
Some("Cmd+Alt+E"),
r#"{"position":[x,y]?,"size":[w,h]=[400,200],"clip":id?,"seconds":f64=5,"track":index?,"time":ticks?}"#,
has_seq,
@@ -882,7 +882,7 @@ fn menu_commands() -> Vec<CommandSpec> {
spec(
"graphics.newPolygon",
"Polygon",
&["Graphics and Titles", "New Layer"],
&["Graphics", "New Layer"],
None,
r#"{"position":[x,y]?,"size":[w,h]=[300,300],"sides":n=6,"clip":id?,"seconds":f64=5,"track":index?,"time":ticks?}"#,
has_seq,
@@ -911,7 +911,7 @@ fn menu_commands() -> Vec<CommandSpec> {
spec(
"graphics.newFromFile",
"From file…",
&["Graphics and Titles", "New Layer"],
&["Graphics", "New Layer"],
None,
r#"{"path":str,"time":ticks?,"track":index?} (imports the image or video and places it above the clips at the playhead)"#,
has_seq,
@@ -973,7 +973,7 @@ fn menu_commands() -> Vec<CommandSpec> {
spec(
"graphics.resetAllParameters",
"Reset All Parameters",
&["Graphics and Titles"],
&["Graphics"],
None,
r#"{"clip":id?,"layers":[n]? (default: the selected layers, else all)}"#,
has_graphic,
@@ -1002,7 +1002,7 @@ fn menu_commands() -> Vec<CommandSpec> {
spec(
"graphics.resetDuration",
"Reset Duration",
&["Graphics and Titles"],
&["Graphics"],
None,
r#"{"clip":id?,"seconds":f64=5 (the default graphic duration; limited by the next clip on the track)}"#,
has_graphic,
@@ -1031,7 +1031,7 @@ pub fn commands() -> Vec<CommandSpec> {
spec(
"graphics.newText",
"Text",
&["Graphics and Titles", "New Layer"],
&["Graphics", "New Layer"],
Some("Cmd+T"),
r#"{"text":str="New Text","position":[x,y]? (point text: its alignment point on the first baseline; with `box`: the box's top-left corner),"box":[w,h]? (paragraph text wrapped in a box this size),"clip":id?,"newClip":bool?,"vertical":bool=false,"size":px=100,"font":str?,"fontStyle":str?,"seconds":f64=5,"track":index?,"time":ticks?}"#,
has_seq,
+1 -1
View File
@@ -390,7 +390,7 @@ fn new_layer_menu_items_make_shapes_and_vertical_text() {
let b = quad_box(&mut s, v, 0);
assert!(b[3] - b[1] > 2.5 * (b[2] - b[0]), "vertical text is tall: {b:?}");
// the menu has the New Layer entries and no generic "Shape"
let ids: Vec<&str> = crate::command_specs().iter().filter(|c| c.menu == ["Graphics and Titles", "New Layer"]).map(|c| c.id).collect();
let ids: Vec<&str> = crate::command_specs().iter().filter(|c| c.menu == ["Graphics", "New Layer"]).map(|c| c.id).collect();
assert_eq!(
ids,
["graphics.newText", "graphics.newVerticalText", "graphics.newRectangle", "graphics.newEllipse", "graphics.newPolygon", "graphics.newFromFile"]
+1 -1
View File
@@ -797,7 +797,7 @@ pub fn commands() -> Vec<CommandSpec> {
s.toast(if on { "Audio during scrubbing on" } else { "Audio during scrubbing off" });
Ok(json!({"scrubAudio": on}))
}),
// ---- graphics and titles
// ---- graphics
spec("graphics.fontSizeUp", "Increase Font Size by One Unit", Some("Cmd+Alt+Right"), "{}", has_graphic, |s, _| font_size(s, 1.0)),
spec("graphics.fontSizeDown", "Decrease Font Size by One Unit", Some("Cmd+Alt+Left"), "{}", has_graphic, |s, _| font_size(s, -1.0)),
spec("graphics.fontSizeUp5", "Increase Font Size by Five Units", Some("Cmd+Alt+Shift+Right"), "{}", has_graphic, |s, _| font_size(s, 5.0)),
+1 -1
View File
@@ -540,7 +540,7 @@ pub fn remap_time(m: &GraphicMeta, u: Tick, d: Tick) -> Tick {
m.design_in + Tick(local)
}
/// A source graphic (Graphics and Titles ▸ Upgrade to Source Graphic): the layers and settings
/// A source graphic (Graphics ▸ Upgrade to Source Graphic): the layers and settings
/// shared by every clip of one project item. Editing one instance updates the others.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
#[serde(default)]
+1 -1
View File
@@ -112,7 +112,7 @@ pub struct Project {
/// Schema v11.
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub search_bins: Vec<SearchBin>,
/// Source graphics (Graphics and Titles ▸ Upgrade to Source Graphic): shared layers by
/// Source graphics (Graphics ▸ Upgrade to Source Graphic): shared layers by
/// project item. Schema v12.
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
pub source_graphics: BTreeMap<ItemId, SourceGraphic>,
-1
View File
@@ -154,7 +154,6 @@
Go to Previous Caption Segment Idi na prethodni segment titla
Go to Previous Marker Idi na prethodni marker
Go to Split Idi na podjelu
Graphics and Titles Grafika i naslovi
Graphics… Grafika…
Green Zelena
Group Grupiši
1 # Bosnian (bs) catalog, Latin script, Ijekavian. Columns separated by TAB: context <TAB> source <TAB> translation
154
155
156
157
158
159
-1
View File
@@ -160,7 +160,6 @@
Go to Previous Caption Segment Přejít na předchozí segment titulků
Go to Previous Marker Přejít na předchozí značku
Go to Split Přejít na rozdělený střih
Graphics and Titles Grafika a titulky
Graphics… Grafika…
Green Zelená
Group Seskupit
1 # Czech (cs) catalog. Columns separated by TAB: context <TAB> source <TAB> translation.
160
161
162
163
164
165
-1
View File
@@ -179,7 +179,6 @@
Go to Previous Caption Segment Zum vorherigen Untertitelsegment gehen
Go to Previous Marker Zum vorherigen Marker gehen
Go to Split Zum Split-Punkt gehen
Graphics and Titles Grafiken und Titel
Graphics… Grafiken…
Green Grün
Group Gruppieren
Can't render this file because it contains an unexpected character in line 6 and column 45.
-1
View File
@@ -164,7 +164,6 @@
Go to Previous Caption Segment Ir al segmento de subtítulo anterior
Go to Previous Marker Ir al marcador anterior
Go to Split Ir a la división
Graphics and Titles Gráficos y títulos
Graphics… Gráficos…
Green Verde
Group Agrupar
Can't render this file because it contains an unexpected character in line 3 and column 95.
-1
View File
@@ -166,7 +166,6 @@
Go to Previous Caption Segment Atteindre le segment de sous-titre précédent
Go to Previous Marker Atteindre le marqueur précédent
Go to Split Atteindre la division
Graphics and Titles Graphiques et titres
Graphics… Graphiques…
Green Vert
Group Grouper
Can't render this file because it contains an unexpected character in line 5 and column 83.
-1
View File
@@ -171,7 +171,6 @@
Go to Previous Caption Segment Ke Segmen Takarir Sebelumnya
Go to Previous Marker Ke Penanda Sebelumnya
Go to Split Ke Split
Graphics and Titles Grafis dan Judul
Graphics… Grafis…
Green Hijau
Group Grupkan
Can't render this file because it contains an unexpected character in line 6 and column 14.
-1
View File
@@ -164,7 +164,6 @@
Go to Previous Caption Segment Vai al segmento di sottotitolo precedente
Go to Previous Marker Vai al marcatore precedente
Go to Split Vai al taglio
Graphics and Titles Grafica e titoli
Graphics… Grafica…
Green Verde
Group Raggruppa
Can't render this file because it contains an unexpected character in line 3 and column 95.
-1
View File
@@ -171,7 +171,6 @@
Go to Previous Caption Segment 前のキャプションセグメントへ移動
Go to Previous Marker 前のマーカーへ移動
Go to Split スプリットへ移動
Graphics and Titles グラフィックスとタイトル
Graphics… グラフィックス…
Green グリーン
Group グループ
Can't render this file because it contains an unexpected character in line 11 and column 59.
-1
View File
@@ -1357,7 +1357,6 @@
Graphic Equalizer (20 Bands) 그래픽 이퀄라이저(20밴드)
Graphic Equalizer (30 Bands) 그래픽 이퀄라이저(30밴드)
Graphics 그래픽
Graphics and Titles 그래픽 및 제목
Graphics problem: switched to software compositing 그래픽 문제: 소프트웨어 합성으로 전환됨
Graphics text search arrives with M10.1–M10.2 그래픽 텍스트 검색은 M10.1–M10.2에서 제공
Graphics… 그래픽…
1 # Korean (ko) catalog. Columns, separated by a TAB: context <TAB> source <TAB> translation
1357
1358
1359
1360
1361
1362
-1
View File
@@ -158,7 +158,6 @@
Go to Previous Caption Segment Przejdź do poprzedniego segmentu napisów
Go to Previous Marker Przejdź do poprzedniego znacznika
Go to Split Przejdź do podziału
Graphics and Titles Grafika i tytuły
Graphics… Grafika…
Green Zielony
Group Grupuj
Can't render this file because it contains an unexpected character in line 6 and column 50.
-1
View File
@@ -168,7 +168,6 @@
Go to Previous Caption Segment Ir para o segmento de legenda anterior
Go to Previous Marker Ir para o marcador anterior
Go to Split Ir para a divisão
Graphics and Titles Gráficos e títulos
Graphics… Gráficos…
Green Verde
Group Agrupar
Can't render this file because it contains an unexpected character in line 6 and column 4.
-1
View File
@@ -149,7 +149,6 @@
Go to Previous Caption Segment Перейти к предыдущему сегменту субтитров
Go to Previous Marker Перейти к предыдущему маркеру
Go to Split Перейти к точке разделения
Graphics and Titles Графика и титры
Graphics… Графика…
Green Зелёный
Group Сгруппировать
1 # Russian (ru) catalog. Columns separated by TAB: context <TAB> source <TAB> translation
149
150
151
152
153
154
-1
View File
@@ -161,7 +161,6 @@
Go to Previous Caption Segment Gå till föregående undertextsegment
Go to Previous Marker Gå till föregående markör
Go to Split Gå till delat snitt
Graphics and Titles Grafik och titlar
Graphics… Grafik…
Green Grön
Group Gruppera
Can't render this file because it contains an unexpected character in line 3 and column 95.
-1
View File
@@ -158,7 +158,6 @@
Go to Previous Caption Segment Önceki Altyazı Segmentine Git
Go to Previous Marker Önceki İşaretçiye Git
Go to Split Bölünmeye Git
Graphics and Titles Grafikler ve Başlıklar
Graphics… Grafikler…
Green Yeşil
Group Grupla
Can't render this file because it contains an unexpected character in line 3 and column 95.
+1 -1
View File
@@ -153,7 +153,7 @@
Go to Previous Caption Segment Перейти до попереднього сегмента субтитрів
Go to Previous Marker Перейти до попереднього маркера
Go to Split Перейти до розділеної позначки
Graphics and Titles Графіка й титри
Graphics Графіка
Graphics… Графіка…
Green Зелений
Group Згрупувати
1 # Ukrainian (uk) catalog. Columns separated by TAB: context <TAB> source <TAB> translation
153
154
155
156
157
158
159
-1
View File
@@ -159,7 +159,6 @@
Go to Previous Caption Segment 转到上一段字幕
Go to Previous Marker 转到上一个标记
Go to Split 转到拆分点
Graphics and Titles 图形与字幕
Graphics… 图形…
Green 绿
Group 编组
Can't render this file because it contains an unexpected character in line 3 and column 95.
+1 -1
View File
@@ -1076,7 +1076,7 @@ pub struct MenuItem {
pub checked: Option<bool>,
}
pub const MENUS: [&str; 9] = ["File", "Edit", "Clip", "Sequence", "Markers", "Graphics and Titles", "View", "Window", "Help"];
pub const MENUS: [&str; 9] = ["File", "Edit", "Clip", "Sequence", "Markers", "Graphics", "View", "Window", "Help"];
/// Labels only the native macOS app menu shows, with no command in the menu tree behind them: the
/// Settings submenu and the predefined Hide, Hide Others and Quit items. They are translated through
+1 -1
View File
@@ -103,7 +103,7 @@ fn view_menu_resolutions_and_display_modes() {
assert_eq!(item("view.display.composite")["checked"], true);
assert_eq!(item("view.magnification.1600")["label"], "1600%");
assert_eq!(item("view.clearGuides")["enabled"], false, "no guides yet");
assert_eq!(item("graphics.alignFrame.left")["path"], json!(["Graphics and Titles", "Align to Video Frame"]));
assert_eq!(item("graphics.alignFrame.left")["path"], json!(["Graphics", "Align to Video Frame"]));
d.menu("view.playbackRes.sixteenth");
d.menu("view.pausedRes.quarter");
+6 -6
View File
@@ -106,7 +106,7 @@ Timecode and Clip Name effects also draw with the text engine.
| Command | Menu / shortcut | Params |
|---|---|---|
| `graphics.newText` | Graphics and Titles ▸ New Layer ▸ Text (⌘T) | `text`, `position`, `box` (`[w, h]`: paragraph text in a box, `position` is its top-left corner), `clip` (add to this graphic), `vertical`, `size`, `font`, `fontStyle`, `seconds` (5), `track`, `time` |
| `graphics.newText` | Graphics ▸ New Layer ▸ Text (⌘T) | `text`, `position`, `box` (`[w, h]`: paragraph text in a box, `position` is its top-left corner), `clip` (add to this graphic), `vertical`, `size`, `font`, `fontStyle`, `seconds` (5), `track`, `time` |
| `graphics.newVerticalText` | New Layer ▸ Vertical Text | as `graphics.newText`; characters stack top to bottom, paragraphs are columns right to left |
| `graphics.newRectangle`, `graphics.newEllipse`, `graphics.newPolygon` | New Layer ▸ Rectangle (⌥⌘R), Ellipse (⌥⌘E), Polygon | `position` (the shape's centre), `size`, `clip`, `seconds` (5), `track`, `time`; polygon `sides` (6) |
| `graphics.newFromFile` | New Layer ▸ From file… | `path` — imports the image or video and places it above the clips at the playhead (a separate clip; graphics have no media layers yet) |
@@ -251,9 +251,9 @@ engine at runtime.
|---|---|---|
| `graphics.template.list` | (query) | `query`, `category`, `source` (builtin / user) |
| `graphics.template.apply` | Browse tab: drag or double-click | `template` (id, name or `.fcgt` path), `values` {control: value}, `time`, `track` |
| `graphics.template.export` | Graphics and Titles ▸ Export As Motion Graphics Template… | `clip`, `name`, `category`, `description`, `controls` [{`layer`, `param`, `name`, `kind`, `min`, `max`}], `path` (default: the user folder), `embedFonts` |
| `graphics.template.export` | Graphics ▸ Export As Motion Graphics Template… | `clip`, `name`, `category`, `description`, `controls` [{`layer`, `param`, `name`, `kind`, `min`, `max`}], `path` (default: the user folder), `embedFonts` |
| `file.exportGraphicsTemplate` | File ▸ Export ▸ Motion Graphics Template… | as above |
| `graphics.template.install` | Graphics and Titles ▸ Install Motion Graphics Template… | `path` (a `.fcgt`) |
| `graphics.template.install` | Graphics ▸ Install Motion Graphics Template… | `path` (a `.fcgt`) |
| `graphics.template.remove` | Browse tab | `template` (user templates) |
| `graphics.template.set` / `graphics.template.controls` | Essential Graphics ▸ Edit | `clip`, `control`, `value` / `values` |
| `graphics.template.thumbnail` | (query) | `template`, `width`, `path` (PNG) |
@@ -280,9 +280,9 @@ panel state and the Type-tool selection.
| Command | Menu | Params |
|---|---|---|
| `graphics.upgradeCaption` | Graphics and Titles ▸ Upgrade Caption to Graphic | `captions` (default: the selection, else the one under the playhead): each caption becomes a graphic clip on a video track with the track style (font and font style, size, colour, background, outline, alignment, position); `<i>`/`<b>`/`<u>` become character styles; one undo step |
| `graphics.upgradeToSourceGraphic` | Graphics and Titles ▸ Upgrade to Source Graphic | `clip`: the graphic gets its own project item (shown in the Project panel); every clip of that item shares its layers — editing one updates the others in the same undo step (`project.source_graphics`) |
| `file.replaceFonts` | Graphics and Titles ▸ Replace Fonts in Projects… | `from` (family or {family, style}), `to`, `toStyle`: graphic layers, character styles, source graphics and caption tracks |
| `graphics.upgradeCaption` | Graphics ▸ Upgrade Caption to Graphic | `captions` (default: the selection, else the one under the playhead): each caption becomes a graphic clip on a video track with the track style (font and font style, size, colour, background, outline, alignment, position); `<i>`/`<b>`/`<u>` become character styles; one undo step |
| `graphics.upgradeToSourceGraphic` | Graphics ▸ Upgrade to Source Graphic | `clip`: the graphic gets its own project item (shown in the Project panel); every clip of that item shares its layers — editing one updates the others in the same undo step (`project.source_graphics`) |
| `file.replaceFonts` | Graphics ▸ Replace Fonts in Projects… | `from` (family or {family, style}), `to`, `toStyle`: graphic layers, character styles, source graphics and caption tracks |
| `graphics.fonts.used` | (query) | fonts in use with counts and whether they are missing |
## Gradient fills