new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Tauri · Plugins and security · all subjects

plugin apis & functions

16 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Runtime system tray creation in 1.1.0

Tauri 1.1.0 introduces the tauri::SystemTray API that allows system trays to be created at runtime, not just during builder configuration. This gives control over the tray's lifetime and enables creating multiple trays. SystemTray can be instantiated with .with_id(), .with_menu(), .on_event(), and .build() methods.

Runtime system tray creation example

use tauri::{Builder, CustomMenuItem, SystemTray, SystemTrayEvent, SystemTrayMenu}; Builder::default() .setup(|app| { let handle = app.handle(); SystemTray::new() .with_id("main") .with_menu( SystemTrayMenu::new().add_item(CustomMenuItem::new("quit", "Quit")) ) .on_event(move |event| { let tray_handle = handle.tray_handle_by_id("main").unwrap(); if let SystemTrayEvent::MenuItemClick { id, .. } = event { if id == "quit" { tray_handle.destroy().unwrap(); } } }) .build(&handle) .expect("unable to create tray"); });

api::Command::encoding method in 1.1.0

Tauri 1.1.0 adds api::Command::encoding method to set the stdout/stderr encoding.

raw_window_handle::HasRawDisplayHandle implementation in 1.1.0

Tauri 1.1.0 implements raw_window_handle::HasRawDisplayHandle for App and AppHandle.

Theme APIs on Linux in 1.1.0

Tauri 1.1.0 adds Theme APIs on Linux.

additional_browser_args window option in 1.3.0

Tauri 1.3.0 adds an 'additional_browser_args' option when creating windows, allowing developers to pass additional arguments to the webview process. This feature is exposed only on the Rust side, not the frontend.

New window methods in 1.3.0

Tauri 1.3.0 adds several new window methods: is_minimized() to check if a window is minimized, a title getter to retrieve the window title, and a url() getter to retrieve the window's current URL.

Content protection APIs in 1.3.0

Tauri 1.3.0 adds content protection APIs to control window content protection features.

Device event filter methods in 1.3.0

Tauri 1.3.0 adds Builder::device_event_filter and App::set_device_event_filter methods to allow configuration of device event filtering.

WindowsAttributes app_manifest in 1.3.0

Tauri 1.3.0 adds WindowsAttributes::app_manifest to specify the application manifest on Windows.

Window on_navigation callback in 1.3.0

Tauri 1.3.0 adds Window::on_navigation method to allow registering a callback for navigation events.

System tray tooltip support in 1.3.0

Tauri 1.3.0 implements SystemTray::with_tooltip and SystemTrayHandle::set_tooltip methods for Windows and macOS to support system tray tooltips.

Dialog button text customization in 1.3.0

Tauri 1.3.0 allows setting custom text for dialog buttons.

macOS dylib support in frameworks in 1.3.0

Tauri 1.3.0 adds dylib support to tauri.bundle.macOS.frameworks configuration.

Windows webview theme synchronization in 1.3.0

Tauri 1.3.0 changes the webview theme on Windows based on the window theme for more accurate prefers-color-scheme media query support.

Window control disabling API in Tauri 1.4.0

Tauri 1.4.0 allows disabling window maximize, minimize, and close buttons via configuration or API calls. The Rust APIs are set_maximizable, set_minimizable, and set_closable. The JavaScript APIs are setMaximizable, setMinimizable, and setClosable.

Give your agent this brain