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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user