Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix(windows): square hover areas for the window controls
EtienneLescotfefbfcc59be1
diff --git a/electron/windows.ts b/electron/windows.tsindex 6f885c1d5..0faaef02f 100644--- a/electron/windows.ts+++ b/electron/windows.ts@@ -486,9 +486,11 @@ export function createEditorWindow(query: Record<string, string> = {}): BrowserWtitleBarStyle: "hidden",...(isMac? { trafficLightPosition: { x: 18, y: 21 } }- : // One pixel short of the 58px topbar, so its bottom rule runs on under the controls- // instead of stopping where the overlay starts.- { titleBarOverlay: { color: "#09090b", symbolColor: "#a1a1aa", height: 57 } }),+ : // Windows fixes the width of its caption buttons (46px) and leaves us the height: at+ // 46px each hover area is a square in the top-right corner, as in Chrome or Explorer,+ // instead of a 58px-tall slab, and the top bar's bottom rule runs on under it.+ // Native, so Snap Layouts stays on the maximise button.+ { titleBarOverlay: { color: "#09090b", symbolColor: "#a1a1aa", height: 46 } }),transparent: false,resizable: true,alwaysOnTop: false,