Create polished demo videos without editing skills. Mac/Windows/Linux
Merge remote-tracking branch 'origin/main' into fix/linux-hud-menu-bounds
wiiiii12338accfea9731
diff --cc electron/hudOverlayBounds.test.tsindex a98b79f3,dcc4daef..b45c9a56--- a/electron/hudOverlayBounds.test.ts+++ b/electron/hudOverlayBounds.test.ts@@@ -3,7 -3,7 +3,8 @@@ import { describe, expect, it } from "vimport {getHudOverlayWindowBounds,resizeHudOverlayFallbackBounds,+ shouldExpandHudOverlayFallback,+ shouldResizeHudOverlayFallback,} from "./hudOverlayBounds";describe("getHudOverlayWindowBounds", () => {@@@ -145,16 -145,34 +146,48 @@@ describe("resizeHudOverlayFallbackBound});});+describe("shouldResizeHudOverlayFallback", () => {+ it("allows non-passthrough HUD windows to expand for menus when idle", () => {+ expect(shouldResizeHudOverlayFallback(false, false)).toBe(true);+ });++ it("does not resize full passthrough HUD windows", () => {+ expect(shouldResizeHudOverlayFallback(true, false)).toBe(false);+ });++ it("keeps the recording HUD compact in non-passthrough mode", () => {+ expect(shouldResizeHudOverlayFallback(false, true)).toBe(false);+ });+});+++ describe("shouldExpandHudOverlayFallback", () => {+ it("expands while recording only when the floating webcam preview is visible", () => {+ expect(+ shouldExpandHudOverlayFallback({+ fallbackExpanded: false,+ recordingActive: true,+ webcamPreviewVisible: true,+ }),+ ).toBe(true);+ });++ it("keeps the compact recording fallback when there is no webcam preview", () => {+ expect(+ shouldExpandHudOverlayFallback({+ fallbackExpanded: false,+ recordingActive: true,+ webcamPreviewVisible: false,+ }),+ ).toBe(false);+ });++ it("preserves manual fallback expansion outside recording", () => {+ expect(+ shouldExpandHudOverlayFallback({+ fallbackExpanded: true,+ recordingActive: false,+ webcamPreviewVisible: false,+ }),+ ).toBe(true);+ });+ });diff --cc electron/hudOverlayBounds.tsindex 74205dbe,8c51b88c..e56c3e8b--- a/electron/hudOverlayBounds.ts+++ b/electron/hudOverlayBounds.ts@@@ -38,13 -38,18 +38,25 @@@ export function getHudOverlayWindowBoun};}+export function shouldResizeHudOverlayFallback(+ mousePassthroughSupported: boolean,+ recordingActive: boolean,+): boolean {+ return !mousePassthroughSupported && !recordingActive;+}++ export function shouldExpandHudOverlayFallback({+ fallbackExpanded,+ recordingActive,+ webcamPreviewVisible,+ }: {+ fallbackExpanded: boolean;+ recordingActive: boolean;+ webcamPreviewVisible: boolean;+ }): boolean {+ return fallbackExpanded || (recordingActive && webcamPreviewVisible);+ }+export function resizeHudOverlayFallbackBounds(workArea: HudOverlayWorkArea,currentBounds: HudOverlayWorkArea,diff --cc electron/windows.tsindex cd17bb84,ba018862..486f6d82--- a/electron/windows.ts+++ b/electron/windows.ts@@@ -8,7 -8,7 +8,8 @@@ import { USER_DATA_PATH } from "./appPaimport {getHudOverlayWindowBounds,resizeHudOverlayFallbackBounds,+ shouldExpandHudOverlayFallback,+ shouldResizeHudOverlayFallback,} from "./hudOverlayBounds";import { getPackagedRendererBaseUrl } from "./rendererServer";