diff options
| author | David Hill <[email protected]> | 2025-12-12 20:23:06 +0000 |
|---|---|---|
| committer | David Hill <[email protected]> | 2025-12-12 20:23:06 +0000 |
| commit | 9b77246246ab0d81aaee23514c343ccb93c36847 (patch) | |
| tree | 09749dd9d91275b7fec4035fafbefc9e4cd0cb6c /packages/tauri/src-tauri/src/lib.rs | |
| parent | cf3bc1e0a6324a01ae10a2849476d7dc07e4876b (diff) | |
| parent | d51c6ca39f382ef616157680ca7366b6ee58713e (diff) | |
| download | opencode-9b77246246ab0d81aaee23514c343ccb93c36847.tar.gz opencode-9b77246246ab0d81aaee23514c343ccb93c36847.zip | |
Merge branch 'dev' of https://github.com/sst/opencode into dev
Diffstat (limited to 'packages/tauri/src-tauri/src/lib.rs')
| -rw-r--r-- | packages/tauri/src-tauri/src/lib.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/tauri/src-tauri/src/lib.rs b/packages/tauri/src-tauri/src/lib.rs index eb712235e..fea3addb5 100644 --- a/packages/tauri/src-tauri/src/lib.rs +++ b/packages/tauri/src-tauri/src/lib.rs @@ -4,7 +4,9 @@ use std::{ sync::{Arc, Mutex}, time::{Duration, Instant}, }; -use tauri::{AppHandle, LogicalSize, Manager, Monitor, RunEvent, WebviewUrl, WebviewWindow}; +use tauri::{ + AppHandle, LogicalSize, Manager, Monitor, RunEvent, TitleBarStyle, WebviewUrl, WebviewWindow, +}; use tauri_plugin_dialog::{DialogExt, MessageDialogButtons, MessageDialogResult}; use tauri_plugin_shell::process::{CommandChild, CommandEvent}; use tauri_plugin_shell::ShellExt; @@ -107,6 +109,7 @@ pub fn run() { let updater_enabled = option_env!("TAURI_SIGNING_PRIVATE_KEY").is_some(); let mut builder = tauri::Builder::default() + .plugin(tauri_plugin_os::init()) .plugin(tauri_plugin_window_state::Builder::new().build()) .plugin(tauri_plugin_store::Builder::new().build()) .plugin(tauri_plugin_dialog::init()) @@ -180,6 +183,7 @@ pub fn run() { .inner_size(size.width as f64, size.height as f64) .decorations(true) .zoom_hotkeys_enabled(true) + .title_bar_style(TitleBarStyle::Overlay) .initialization_script(format!( r#" window.__OPENCODE__ ??= {{}}; |
