Startup now uses the Android iris animation, and playback can continue in a corner miniplayer while browsing (the video is drawn into a corner rectangle beneath a matching hole in the page). The player keeps the window controls, hides its chrome when the pointer leaves, and gains audio/subtitle tracks, audio sync, source bitrate and playback details in its options. Subtitles can be styled in Settings with a live preview. Categories replace Collections, the A–Z rail magnifies, descriptions expand in place, downloads can be removed in bulk, and search keeps its results while typing. Fixes scroll jank from per-card and scrolling backdrop blurs, the hidden colour wash, the cubic volume curve, loud theme music, the search focus ring, a stray nav indicator, Continue Watching previews and the TV Shows header overlap. Removes the star rating, the duplicate Settings menu entry and the server settings' Show advanced switch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
65 lines
2.2 KiB
Rust
65 lines
2.2 KiB
Rust
mod downloads;
|
|
mod mpv;
|
|
mod platform;
|
|
mod player;
|
|
mod system;
|
|
|
|
use tauri::{Manager, WindowEvent};
|
|
|
|
pub fn run() {
|
|
tauri::Builder::default()
|
|
.plugin(tauri_plugin_http::init())
|
|
.plugin(tauri_plugin_dialog::init())
|
|
.plugin(tauri_plugin_opener::init())
|
|
.plugin(tauri_plugin_updater::Builder::new().build())
|
|
.plugin(tauri_plugin_process::init())
|
|
.plugin(
|
|
tauri_plugin_window_state::Builder::default()
|
|
.with_state_flags(
|
|
tauri_plugin_window_state::StateFlags::SIZE
|
|
| tauri_plugin_window_state::StateFlags::POSITION
|
|
| tauri_plugin_window_state::StateFlags::MAXIMIZED,
|
|
)
|
|
.build(),
|
|
)
|
|
.manage(player::PlayerState::default())
|
|
.manage(downloads::Downloads::default())
|
|
.setup(|app| {
|
|
let handle = app.handle().clone();
|
|
downloads::restore(&handle);
|
|
if let Some(window) = app.get_webview_window("main") {
|
|
let w = window.clone();
|
|
window.on_window_event(move |event| {
|
|
if let WindowEvent::Resized(_) | WindowEvent::ScaleFactorChanged { .. } = event {
|
|
player::on_resize(&w);
|
|
}
|
|
});
|
|
}
|
|
Ok(())
|
|
})
|
|
.invoke_handler(tauri::generate_handler![
|
|
player::player_init,
|
|
player::player_show,
|
|
player::player_rect,
|
|
player::player_command,
|
|
player::player_set,
|
|
player::player_get,
|
|
system::secret_get,
|
|
system::secret_set,
|
|
system::secret_delete,
|
|
system::app_info,
|
|
system::dev_session,
|
|
system::keep_awake,
|
|
system::disk_space,
|
|
system::save_url,
|
|
downloads::download_start,
|
|
downloads::download_pause,
|
|
downloads::download_resume,
|
|
downloads::download_remove,
|
|
downloads::download_list,
|
|
downloads::download_set_dir,
|
|
downloads::download_write_meta,
|
|
])
|
|
.run(tauri::generate_context!())
|
|
.expect("error while running Kaleido");
|
|
}
|