diff --git a/src-tauri/src/window.rs b/src-tauri/src/window.rs index a7cc498..edda14a 100644 --- a/src-tauri/src/window.rs +++ b/src-tauri/src/window.rs @@ -15,20 +15,16 @@ pub fn create_main_window(app: &AppHandle) -> Window { .expect("Failed to create main window") } -pub fn setup_main_window(window: &Window) { +pub fn setup_main_window(_window: &Window) { info!("Main window setup complete"); } pub fn create_overlay_window(app: &AppHandle) { - // Get primary monitor size - let monitor = app.primary_monitor().unwrap(); - let monitor_size = monitor.as_ref().map(|m| m.size()).unwrap_or_else(|| tauri::PhysicalSize::new(1920, 1080)); - - // Position overlay at bottom center like Windows Start Menu + // Position overlay at bottom center (fixed position, centered on 1920x1080) let window_width = 720.0; - let window_height = 600.0; // Expanded height - let x = (monitor_size.width as f64 - window_width) / 2.0; - let y = monitor_size.height as f64 - window_height - 20.0; // 20px from bottom + let window_height = 600.0; + let x = (1920.0 - window_width) / 2.0; // Center on 1920px width + let y = 1080.0 - window_height - 40.0; // 40px from bottom on 1080px height let _window = WindowBuilder::new( app, @@ -46,7 +42,7 @@ pub fn create_overlay_window(app: &AppHandle) { .build() .expect("Failed to create overlay window"); - info!("Overlay window created at bottom center (Windows-style)"); + info!("Overlay window created at bottom center"); } pub fn toggle_overlay_window(app: &AppHandle) {