M0.9: Project panel parity — sortable columns (folders mixed by name), Frame Rate column, Size = file size, AE durations

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-01 21:38:34 -04:00
co-authored by Claude Opus 5.5
parent 4f47a01fed
commit 62cfa66496
2 changed files with 130 additions and 17 deletions
+12
View File
@@ -268,6 +268,10 @@ impl Default for TimelineState {
}
}
fn default_project_sort() -> String {
"name".into()
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct UiState {
pub tool: Tool,
@@ -286,6 +290,12 @@ pub struct UiState {
pub effects_open: BTreeSet<String>,
pub project_search: String,
pub project_open_folders: BTreeSet<u64>,
/// Project panel sort column (`name`, `type`, `size`, `fps`) and direction, as in AE's
/// clickable column headers. Folders sort with everything else.
#[serde(default = "default_project_sort")]
pub project_sort: String,
#[serde(default)]
pub project_sort_desc: bool,
/// Effect Controls twirl state (group uids that are collapsed).
pub fx_closed: BTreeSet<u64>,
/// Shape tool options.
@@ -318,6 +328,8 @@ impl Default for UiState {
effects_open: BTreeSet::new(),
project_search: String::new(),
project_open_folders: BTreeSet::new(),
project_sort: default_project_sort(),
project_sort_desc: false,
fx_closed: BTreeSet::new(),
fill_color: [0.24, 0.55, 0.96],
stroke_color: [1.0, 1.0, 1.0],