Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: hide titlebar elements on shortcut reminder window

Louis Beaumont7ac157d1e66b
diff --git a/screenpipe-app-tauri/app/shortcut-reminder/page.tsx b/screenpipe-app-tauri/app/shortcut-reminder/page.tsx
index 00e77bf3c..64ff1df70 100644
--- a/screenpipe-app-tauri/app/shortcut-reminder/page.tsx
+++ b/screenpipe-app-tauri/app/shortcut-reminder/page.tsx
@@ -80,9 +80,9 @@ export default function ShortcutReminderPage() {
style={{ cursor: "grab" }}
>
<div className="relative">
- {/* Main pill - no blur/glow to avoid artifacts on transparent window */}
+ {/* Main pill */}
<div
- className="relative flex items-center gap-1.5 py-1 px-2.5 bg-black/90 rounded-full border border-white/10"
+ className="relative flex items-center gap-1.5 py-1 px-2.5 bg-neutral-900 rounded-full border border-white/10 shadow-lg"
>
{/* Pulsing dot */}
<span className="relative flex h-1 w-1 flex-shrink-0">
diff --git a/screenpipe-app-tauri/src-tauri/src/commands.rs b/screenpipe-app-tauri/src-tauri/src/commands.rs
index 533c16393..48a587fdf 100644
--- a/screenpipe-app-tauri/src-tauri/src/commands.rs
+++ b/screenpipe-app-tauri/src-tauri/src/commands.rs
@@ -373,9 +373,9 @@ pub async fn show_shortcut_reminder(
let screen_size = monitor.size();
let scale_factor = monitor.scale_factor();
- // Compact window dimensions - sized to fit content tightly
- let window_width = 140.0;
- let window_height = 24.0;
+ // Compact window dimensions
+ let window_width = 180.0;
+ let window_height = 28.0;
// Position at top center of screen
let x = ((screen_size.width as f64 / scale_factor) - window_width) / 2.0;
@@ -388,7 +388,7 @@ pub async fn show_shortcut_reminder(
}
info!("Creating new shortcut-reminder window");
- let window = WebviewWindowBuilder::new(
+ let mut builder = WebviewWindowBuilder::new(
&app_handle,
label,
tauri::WebviewUrl::App("shortcut-reminder".into()),
@@ -404,9 +404,19 @@ pub async fn show_shortcut_reminder(
.transparent(true)
.visible(false)
.shadow(false)
- .resizable(false)
- .build()
- .map_err(|e| format!("Failed to create shortcut reminder window: {}", e))?;
+ .resizable(false);
+
+ // Hide title bar on macOS
+ #[cfg(target_os = "macos")]
+ {
+ builder = builder
+ .hidden_title(true)
+ .title_bar_style(tauri::TitleBarStyle::Overlay);
+ }
+
+ let window = builder
+ .build()
+ .map_err(|e| format!("Failed to create shortcut reminder window: {}", e))?;
info!("shortcut-reminder window created");