Phase 5-4. - The workspace button sits at the left end of the header. It shows the workspace name and opens the workspace list below it. - The left ribbon is always present: plugin views at the top, Help and Settings at the bottom. The left pane footer is gone. - Tabs keep 120 pixels and scroll. Fades show tabs out of view, and a list button names all tabs, with pinned and unsaved marks. The active tab now scrolls into view with its close button. - A drag area of 120 pixels follows the tabs. In a narrow header, the tabs shrink first, and the drag area keeps at least 48 pixels. - Caption buttons are square, 46 pixels wide, and full height. When the pointer rests on maximize, the new window_snap_layouts command opens Snap Layouts with Win+Z for the focused window. - macOS keeps its native traffic lights: tauri.macos.conf.json and the runtime window builders use an overlay title bar. Title bars leave --rs-titlebar-inset-start free for the traffic lights. - 3 new catalog rows and 1 removed row, in French, Japanese, and Simplified Chinese. - Docs: UI-050, the user guide, and ui-design.md. Tests: the new layout/titleBar. Tests that used the left pane footer, the rounded caption buttons, the 600-pixel theme editor pane, or a ribbon of no width now follow the new layout.
101 lines
3.6 KiB
Rust
101 lines
3.6 KiB
Rust
fn main() {
|
|
// tauri-build requires every bundle resource to exist. `pnpm browser:stage` fills this
|
|
// folder for installers. An empty folder lets `cargo test` and `tauri dev` run without it.
|
|
std::fs::create_dir_all("browser-engine").expect("failed to create browser-engine");
|
|
tauri_build::try_build(
|
|
tauri_build::Attributes::new().app_manifest(
|
|
tauri_build::AppManifest::new().commands(&[
|
|
"theme_export",
|
|
"backgrounds_choose_folder",
|
|
"backgrounds_default_folder",
|
|
"backgrounds_list",
|
|
"backgrounds_read",
|
|
"backgrounds_read_image_settings",
|
|
"backgrounds_write_image_settings",
|
|
"folders_choose",
|
|
"folders_picture",
|
|
"folders_grants",
|
|
"folders_revoke",
|
|
"folders_list",
|
|
"folders_read",
|
|
"folders_read_sidecar",
|
|
"folders_write_sidecar",
|
|
"spelling_suggestions",
|
|
"spelling_menu_install",
|
|
"spelling_menu_select",
|
|
"spelling_menu_uninstall",
|
|
"settings_open_window",
|
|
"window_snap_layouts",
|
|
"settings_read",
|
|
"settings_write",
|
|
"settings_migrate",
|
|
"tab_transfer_offer",
|
|
"tab_transfer_take",
|
|
"tab_transfer_finish",
|
|
"tab_transfer_cancel",
|
|
"completion_request",
|
|
"completion_cancel",
|
|
"browser_request",
|
|
"browser_connect",
|
|
"browser_stop",
|
|
"git_status",
|
|
"git_diff",
|
|
"git_stage",
|
|
"git_unstage",
|
|
"git_commit",
|
|
"git_blame",
|
|
"git_push",
|
|
"git_pull",
|
|
"git_graph",
|
|
"git_commit_diff",
|
|
"git_commit_details",
|
|
"workspace_open",
|
|
"workspace_open_window",
|
|
"workspace_last_path",
|
|
"workspace_recent",
|
|
"workspace_forget",
|
|
"workspace_new",
|
|
"workspace_list",
|
|
"workspace_list_markdown",
|
|
"workspace_read",
|
|
"workspace_read_many",
|
|
"workspace_read_bytes",
|
|
"workspace_write",
|
|
"workspace_create",
|
|
"workspace_rename",
|
|
"workspace_delete",
|
|
"workspace_read_data_url",
|
|
"workspace_write_bytes",
|
|
"workspace_copy",
|
|
"workspace_abs_path",
|
|
"workspace_reveal",
|
|
"workspace_open_terminal",
|
|
"workspace_open_default",
|
|
"workspace_search",
|
|
"plugins_snapshot",
|
|
"plugins_choose",
|
|
"plugins_from_git",
|
|
"plugins_cancel",
|
|
"plugins_install",
|
|
"plugins_set_enabled",
|
|
"plugins_load",
|
|
"plugins_release",
|
|
"plugins_prepare_remove",
|
|
"plugins_remove",
|
|
"plugins_retry_remove",
|
|
"plugins_reveal",
|
|
"plugins_data",
|
|
"plugins_asset",
|
|
"pty_open",
|
|
"pty_write",
|
|
"pty_resize",
|
|
"pty_close",
|
|
"pty_profiles",
|
|
"pty_new_window",
|
|
"pty_dictation",
|
|
]),
|
|
),
|
|
)
|
|
.expect("failed to run tauri-build");
|
|
}
|