diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index a7818a9..3d2132f 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -26,15 +26,10 @@ wry = "0.24.1" dark-light = "1.0.0" serde = { version = "1.0", features = ["derive"] } tokio = { version = "1.23.0", features = ["macros"] } -tauri-plugin-positioner = { version = "1.0.4", features = ["system-tray"] } tauri = { version = "1.2.3", features = ["api-all", "devtools", "global-shortcut", "system-tray", "updater"] } -[dependencies.tauri-plugin-log] -git = "https://github.com/lencx/tauri-plugin-log" -branch = "dev" -features = ["colored"] -[dependencies.tauri-plugin-autostart] -git = "https://github.com/lencx/tauri-plugin-autostart" -branch = "dev" +tauri-plugin-positioner = { version = "1.0.4", features = ["system-tray"] } +tauri-plugin-log = { git = "https://github.com/lencx/tauri-plugins-workspace", branch = "dev", features = ["colored"] } +tauri-plugin-autostart = { git = "https://github.com/lencx/tauri-plugins-workspace", branch = "dev" } # sqlx = { version = "0.6.2", features = ["runtime-tokio-rustls", "sqlite"] } diff --git a/src-tauri/src/app/window.rs b/src-tauri/src/app/window.rs index d1dcf53..d614214 100644 --- a/src-tauri/src/app/window.rs +++ b/src-tauri/src/app/window.rs @@ -94,7 +94,7 @@ pub fn control_window(handle: &tauri::AppHandle) { .title("Control Center") .resizable(true) .fullscreen(false) - .inner_size(800.0, 600.0) + .inner_size(1000.0, 700.0) .min_inner_size(800.0, 600.0) .build() .unwrap(); diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index b41eee9..bed964b 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -13,7 +13,7 @@ use tauri::api::path; use tauri_plugin_autostart::MacosLauncher; use tauri_plugin_log::{ fern::colors::{Color, ColoredLevelConfig}, - LogTarget, LoggerBuilder, + LogTarget, }; #[tokio::main] @@ -38,9 +38,7 @@ async fn main() { let mut builder = tauri::Builder::default() // https://github.com/tauri-apps/tauri/pull/2736 .plugin( - LoggerBuilder::new() - .level(log::LevelFilter::Debug) - .with_colors(colors) + tauri_plugin_log::Builder::default() .targets([ // LogTarget::LogDir, // LOG PATH: ~/.chatgpt/ChatGPT.log @@ -48,6 +46,8 @@ async fn main() { LogTarget::Stdout, LogTarget::Webview, ]) + .level(log::LevelFilter::Debug) + .with_colors(colors) .build(), ) .plugin(tauri_plugin_positioner::init())