The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.
Rust ffmpegfree-video-editormodel-context-protocolnon-linear-editoroffline-firstopen-source-video-editorself-hostedvideo-editingvideo-editing-automationvideo-editing-softwarevideo-editing-toolsvideo-editorvoice-cloningyoutube-automationyoutube-shorts
feat(ui): New project's frame rate is a dropdown, not twelve buttons
Jareerb0f7eed90d89
diff --git a/src/crates/concat/src/panes/start.rs b/src/crates/concat/src/panes/start.rsindex 662d6607..ce648c2c 100644--- a/src/crates/concat/src/panes/start.rs+++ b/src/crates/concat/src/panes/start.rs@@ -359,6 +359,13 @@ impl StartPane {custom_fps: fps_of(num, den) as f32,frame_aspect: width as f32 / height.max(1) as f32,rate_readout: format!("{num}/{den} fps").into(),+ rate_options: slint::ModelRc::from(std::rc::Rc::new(slint::VecModel::from(+ RATES+ .iter()+ .map(|(label, _, _)| slint::SharedString::from(format!("{label} fps")))+ .chain(std::iter::once(t("common.custom").into()))+ .collect::<Vec<_>>(),+ ))),busy: self.busy,error: self.error.as_str().into(),}diff --git a/src/crates/concat/ui/start.slint b/src/crates/concat/ui/start.slintindex 87774598..190ceb92 100644--- a/src/crates/concat/ui/start.slint+++ b/src/crates/concat/ui/start.slint@@ -10,6 +10,7 @@ import { ThinScrollbar } from "primitives/scrollbar.slint";import { Tip } from "primitives/tooltip.slint";import { Focus } from "util.slint";import { NumberField } from "primitives/number-field.slint";+import { Select } from "primitives/select.slint";// The launch screen: a launcher with a rail, and the window's own ground// under all of it — no card around the whole thing, no shadow. A setup@@ -103,6 +104,10 @@ export struct StartData {size: int,/// Index into `rates`.rate: int,+ /// The rates as the dropdown lists them, "24 fps" and the rest, then+ /// Custom: published with the rest of the sheet, so the words follow a+ /// change of language.+ rate-options: [string],/// "1920 x 1080"size-readout: string,/// The frame and rate as numbers, for the custom fields: the typed@@ -1446,19 +1451,19 @@ export component NewProjectDialog inherits Modal {HorizontalLayout {spacing: 16px;- // Eleven rates and Custom: two rows of six, or three- // of four across a phone, each cell wide enough for- // "23.976".- ChipRow {- horizontal-stretch: 1;- options: root.rates;- extra: I18n.t("common.custom");+ // Eleven rates and Custom in a list, not a wall of+ // twelve buttons: most edits want one of three, and+ // the rest are there when the list is opened.+ Select {+ width: 168px;+ options: root.data.rate-options;current: root.data.rate;enabled: !root.data.busy;- per-row: root.narrow ? 4 : 6;changed(index) => { root.rate-changed(index); }}+ Rectangle { horizontal-stretch: 1; }+VerticalLayout {alignment: center;horizontal-stretch: 0;