use tauri::{AppHandle, command, Runtime, State, Window}; use crate::{MyState, Result}; #[command] pub(crate) async fn COMMAND_NAME<R: Runtime>( _app: AppHandle<R>, _window: Window<R>, my_msg: String ) -> Result<String> { Ok(my_msg) }...
window-vibrancy Make your windows vibrant. Tip If you're usingtauri@v1, you need to use version0.4of this crate. Platform-specific Linux: Unsupported, Blur and any vibrancy effects are controlled by the compositor installed on the end-user system. ...
// SPDX-License-Identifier: MIT constCOMMANDS:&[&str]=&["save_window_state","restore_window_state"]; constCOMMANDS:&[&str]=&["save_window_state","restore_state","filename"]; fnmain(){ tauri_plugin::Builder::new(COMMANDS) 13 changes: 13 additions & 0 deletions13plugins/window-state...
SwitchButton } from'@element-plus/icons-vue'import { getCurrentWindow } from'@tauri-apps/api/window'import { listen } from'@tauri-apps/api/event'import { exit } from'@tauri-apps/plugin-process'import { isTrue } from'@/utils'import { authState } from'@/...
/*** @desc Tauri2多窗口封装管理* @author: Andy QQ:282310962* @time 2024.9*/import{getAllWindows,getCurrentWindow}from'@tauri-apps/api/window'import{WebviewWindow,getAllWebviewWindows,getCurrentWebviewWindow}from'@tauri-apps/api/webviewWindow'import{relaunch,exit}from'@tauri-apps/plugin-process...
361ec37f(#8932) Removed the unityUri option from the progress bar state, no longer required. Yarn Publish yarn run v1.22.21 $ yarn build && cd ./dist && yarn publish --access public --loglevel silly --tag next $ rollup -c --configPlugin typescript [36m [1m./src/app.ts, ./src...
icon(app.default_window_icon().unwrap().clone()) .on_tray_icon_event(|tray, event| match event { TrayIconEvent::Click { id: _, position, rect: _, button, button_state: _, } => match button { MouseButton::Left {} => { let windows = tray.app_handle().webview_windows(); ...
import{ref,markRaw}from'vue'import{ElMessageBox}from'element-plus'import{QuestionFilled,SwitchButton}from'@element-plus/icons-vue'import{getCurrentWindow}from'@tauri-apps/api/window'import{listen}from'@tauri-apps/api/event'import{exit}from'@tauri-apps/plugin-process'import{isTrue}from'@/utils'im...
*/import{getAllWindows,getCurrentWindow}from'@tauri-apps/api/window'import{WebviewWindow,getAllWebviewWindows,getCurrentWebviewWindow}from'@tauri-apps/api/webviewWindow'import{relaunch,exit}from'@tauri-apps/plugin-process'import{emit,listen}from'@tauri-apps/api/event'import{setWin}from'./actions...
import { exit } from '@tauri-apps/plugin-process' import { authState } from '@/pinia...