tweak position on windows
This commit is contained in:
parent
0068b6bd9d
commit
62af7e8ed3
2 changed files with 10 additions and 1 deletions
|
|
@ -5,9 +5,18 @@ use tauri::{AppHandle, Emitter, Manager, WebviewWindowBuilder};
|
|||
|
||||
const OVERLAY_WIDTH: f64 = 172.0;
|
||||
const OVERLAY_HEIGHT: f64 = 36.0;
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
const OVERLAY_TOP_OFFSET: f64 = 46.0;
|
||||
#[cfg(any(target_os = "windows", target_os = "linux"))]
|
||||
const OVERLAY_TOP_OFFSET: f64 = 4.0;
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
const OVERLAY_BOTTOM_OFFSET: f64 = 15.0;
|
||||
|
||||
#[cfg(any(target_os = "windows", target_os = "linux"))]
|
||||
const OVERLAY_BOTTOM_OFFSET: f64 = 40.0;
|
||||
|
||||
fn calculate_overlay_position(app_handle: &AppHandle) -> Option<(f64, f64)> {
|
||||
if let Ok(monitors) = app_handle.primary_monitor() {
|
||||
if let Some(monitor) = monitors {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ use std::sync::Arc;
|
|||
use tauri::{AppHandle, Manager};
|
||||
|
||||
// Re-export all utility modules for easy access
|
||||
pub use crate::audio_feedback::*;
|
||||
// pub use crate::audio_feedback::*;
|
||||
pub use crate::clipboard::*;
|
||||
pub use crate::overlay::*;
|
||||
pub use crate::tray::*;
|
||||
|
|
|
|||
Loading…
Reference in a new issue