Add Interface Scale setting to zoom the whole app (80-200%)

This commit is contained in:
Yuri Karamian
2026-06-04 19:27:00 +02:00
parent 4b82d51f6c
commit 139ecc8176
8 changed files with 75 additions and 2 deletions
+8
View File
@@ -103,6 +103,14 @@ pub fn set_line_height(state: State<'_, AppState>, height: f64) -> Result<(), St
Ok(())
}
#[tauri::command]
pub fn set_ui_scale(state: State<'_, AppState>, scale: f64) -> Result<(), String> {
let mut config = state.config.lock().map_err(|e| e.to_string())?;
config.ui_scale = Some(scale);
save_app_config(&config)?;
Ok(())
}
// ── Notebooks ──
#[tauri::command]