gif retry respects budget priority (resolution=only adjust fps, framerate=only adjust resolution, balanced=adjust both), gif colors factored into size estimate, overlay queries aspect ratio from rust on resize instead of relying on cross-window events

This commit is contained in:
2026-05-27 21:34:52 +03:00
parent 2d060fe8f9
commit 1c89bb6b0f
4 changed files with 44 additions and 38 deletions
+6
View File
@@ -946,6 +946,11 @@ fn set_overlay_aspect(app: AppHandle, state: State<'_, AppState>, ratio: Option<
Ok(())
}
#[tauri::command]
fn get_overlay_aspect(state: State<'_, AppState>) -> Option<f64> {
*lock(&state.overlay_aspect_ratio)
}
#[tauri::command]
fn list_windows() -> Vec<windows_list::WindowInfo> {
windows_list::list_visible_windows()
@@ -1501,6 +1506,7 @@ pub fn run() {
hide_overlay,
set_overlay_size,
set_overlay_aspect,
get_overlay_aspect,
set_overlay_to_window,
list_windows,
open_window_picker,