Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

added: more hooks for further seperating the code for LaunchWindow fix: Icons that were deprecated (mostly added Icon at the end of each ones.) I also removed "as" Microphone as Mic everywhere... Let's use normal icon names

Alan Trebugeaisdea9fd053ddd
diff --git a/src/components/launch/LaunchWindow.tsx b/src/components/launch/LaunchWindow.tsx
index f78d6889..91be0e5b 100644
--- a/src/components/launch/LaunchWindow.tsx
+++ b/src/components/launch/LaunchWindow.tsx
@@ -1,15 +1,15 @@
import {
- CaretUp as ChevronUp,
- Microphone as Mic,
- MicrophoneSlash as MicOff,
- Minus,
- Monitor,
- DotsThreeVertical as MoreVertical,
- Timer,
- VideoCamera as Video,
- VideoCameraSlash as VideoOff,
- X,
- ArrowClockwise as RefreshCw,
+ CaretUpIcon,
+ MicrophoneIcon,
+ MicrophoneSlashIcon,
+ MinusIcon,
+ MonitorIcon,
+ DotsThreeVerticalIcon,
+ TimerIcon,
+ VideoCameraIcon,
+ VideoCameraSlashIcon,
+ XIcon,
+ ArrowClockwiseIcon,
} from "@phosphor-icons/react";
import { AnimatePresence, motion } from "motion/react";
import { RxDragHandleDots2 } from "react-icons/rx";
@@ -17,13 +17,13 @@ import { useScopedT } from "../../contexts/I18nContext";
import { useHudBarDrag } from "./hooks/useHudBarDrag";
import { useMicrophoneDevices } from "../../hooks/useMicrophoneDevices";
import { useLaunchWindowSystemState } from "./hooks/useLaunchWindowSystemState";
+import { useLaunchHudInteractionState } from "./hooks/useLaunchHudInteractionState";
+import { useLaunchWindowActions } from "./hooks/useLaunchWindowActions";
import { useRecordingTimer } from "./hooks/useRecordingTimer";
import { useScreenRecorder } from "../../hooks/useScreenRecorder";
import { useVideoDevices } from "../../hooks/useVideoDevices";
import { useWebcamPreviewOverlay } from "./hooks/useWebcamPreviewOverlay";
-import ProjectBrowserDialog, {
- type ProjectLibraryEntry,
-} from "../video-editor/ProjectBrowserDialog";
+import ProjectBrowserDialog from "../video-editor/ProjectBrowserDialog";
import {
canToggleFloatingWebcamPreview,
} from "./floatingWebcamPreview";
@@ -32,14 +32,13 @@ import { CountdownPopover } from "./popovers/CountdownPopover";
import { MicPopover } from "./popovers/MicPopover";
import { MorePopover } from "./popovers/MorePopover";
import { SourcePopover } from "./popovers/SourcePopover";
-import type { DesktopSource } from "./popovers/types";
import { WebcamPopover } from "./popovers/WebcamPopover";
import styles from "./LaunchWindow.module.css";
import { Separator } from "@/components/ui/separator";
import { Button } from "../ui/button";
import { RecordingControls } from "./RecordingControls";
-import { useCallback, useEffect, useRef, useState } from "react";
+import { useCallback, useEffect, useRef } from "react";
const SHOW_DEV_UPDATE_PREVIEW = import.meta.env.DEV;
@@ -80,32 +79,8 @@ function LaunchWindowContent() {
} = useScreenRecorder();
const { elapsed, formatTime } = useRecordingTimer(recording, paused);
- const [selectedSource, setSelectedSource] = useState("Screen");
- const [hasSelectedSource, setHasSelectedSource] = useState(false);
- const [projectLibraryEntries, setProjectLibraryEntries] = useState<ProjectLibraryEntry[]>([]);
- const [projectBrowserOpen, setProjectBrowserOpen] = useState(false);
const hudContentRef = useRef<HTMLDivElement>(null);
const hudBarRef = useRef<HTMLDivElement>(null);
- const anyPopoverOpenRef = useRef(false);
- const projectBrowserOpenRef = useRef(false);
-
- const anyPopoverOpen = openId !== null;
-
- useEffect(() => {
- anyPopoverOpenRef.current = anyPopoverOpen;
- }, [anyPopoverOpen]);
-
- useEffect(() => {
- if (!openId) {
- return;
- }
- setProjectBrowserOpen(false);
- window.electronAPI?.hudOverlaySetIgnoreMouse?.(false);
- }, [openId]);
-
- useEffect(() => {
- projectBrowserOpenRef.current = projectBrowserOpen;
- }, [projectBrowserOpen]);
const closeAllPopovers = useCallback(() => {
if (openId) {
@@ -113,6 +88,19 @@ function LaunchWindowContent() {
}
}, [openId, requestClose]);
+ const {
+ selectedSource,
+ hasSelectedSource,
+ projectLibraryEntries,
+ projectBrowserOpen,
+ setProjectBrowserOpen,
+ handleSourceSelect,
+ openVideoFile,
+ openProjectBrowser,
+ openProjectFromLibrary,
+ syncSelectedSource,
+ } = useLaunchWindowActions({ closeAllPopovers });
+
const showWebcamControls = webcamEnabled && !recording;
const { devices, selectedDeviceId, setSelectedDeviceId } = useMicrophoneDevices(
microphoneEnabled || openId === "mic",
@@ -184,112 +172,31 @@ function LaunchWindowContent() {
recordingWebcamPreviewContainerRef,
});
+ const { handleHudMouseLeave, beginInteractiveHudAction } = useLaunchHudInteractionState({
+ openId,
+ projectBrowserOpen,
+ setProjectBrowserOpen,
+ isHudDraggingRef,
+ isWebcamPreviewDraggingRef,
+ webcamPreviewDragStartRef,
+ });
+
useEffect(() => {
let mounted = true;
- const applySelectedSource = (source: { name?: string } | null | undefined) => {
- if (!mounted) {
- return;
- }
-
- if (source?.name) {
- setSelectedSource(source.name);
- setHasSelectedSource(true);
- return;
- }
-
- setSelectedSource("Screen");
- setHasSelectedSource(false);
- };
-
void window.electronAPI.getSelectedSource().then((source) => {
- applySelectedSource(source);
+ if (mounted) syncSelectedSource(source);
});
const cleanup = window.electronAPI.onSelectedSourceChanged((source) => {
- applySelectedSource(source);
+ if (mounted) syncSelectedSource(source);
});
return () => {
mounted = false;
cleanup?.();
};
- }, []);
-
- const handleSourceSelect = async (source: DesktopSource) => {
- await window.electronAPI.selectSource(source);
- setSelectedSource(source.name);
- setHasSelectedSource(true);
- window.electronAPI.showSourceHighlight?.({
- ...source,
- name: source.appName ? `${source.appName} — ${source.name}` : source.name,
- appName: source.appName,
- });
- };
-
- const openVideoFile = async () => {
- const result = await window.electronAPI.openVideoFilePicker();
- if (result.canceled) return;
- if (result.success && result.path) {
- await window.electronAPI.setCurrentVideoPath(result.path);
- await window.electronAPI.switchToEditor();
- }
- };
-
- const refreshProjectLibrary = useCallback(async () => {
- try {
- const result = await window.electronAPI.listProjectFiles();
- if (!result.success) return;
-
- setProjectLibraryEntries(result.entries);
- } catch (error) {
- console.error("Failed to load project library:", error);
- }
- }, []);
-
- const openProjectBrowser = useCallback(async () => {
- if (projectBrowserOpen) {
- setProjectBrowserOpen(false);
- return;
- }
-
- closeAllPopovers();
- await refreshProjectLibrary();
- setProjectBrowserOpen(true);
- }, [closeAllPopovers, projectBrowserOpen, refreshProjectLibrary]);
-
- const openProjectFromLibrary = useCallback(async (projectPath: string) => {
- try {
- const result = await window.electronAPI.openProjectFileAtPath(projectPath);
- if (result.canceled || !result.success) {
- return;
- }
-
- setProjectBrowserOpen(false);
- await window.electronAPI.switchToEditor();
- } catch (error) {
- console.error("Failed to open project from library:", error);
- }
- }, []);
-
- const handleHudMouseLeave = useCallback((event: React.MouseEvent<HTMLDivElement>) => {
- const nextTarget = event.relatedTarget;
- if (nextTarget instanceof Node && event.currentTarget.contains(nextTarget)) {
- return;
- }
-
- requestAnimationFrame(() => {
- if (
- !isHudDraggingRef.current &&
- !isWebcamPreviewDraggingRef.current &&
- !webcamPreviewDragStartRef.current &&
- !anyPopoverOpenRef.current &&
- !projectBrowserOpenRef.current
- ) {
- window.electronAPI?.hudOverlaySetIgnoreMouse?.(true);
- }
- });
- }, []);
+ }, [syncSelectedSource]);
const hudStateTransition = {
duration: 0.24,
@@ -318,10 +225,7 @@ function LaunchWindowContent() {
<SourcePopover
selectedSource={selectedSource}
onSourceSelect={handleSourceSelect}
- onOpen={() => {
- setProjectBrowserOpen(false);
- window.electronAPI?.hudOverlaySetIgnoreMouse?.(false);
- }}
+ onOpen={beginInteractiveHudAction}
trigger={
<Button
variant="outline"
@@ -329,11 +233,11 @@ function LaunchWindowContent() {
className={`${styles.electronNoDrag} group gap-2 px-3 min-w-0 max-w-[180px] rounded-[11px] font-medium text-[12px] shrink-0 border-[#2a2a34] bg-[#1a1a22] text-[#eeeef2] hover:border-[#3e3e4c] hover:bg-[#20202a] transition-all ${openId === "sources" ? "border-[#3e3e4c] bg-[#20202a]" : ""}`}
title={selectedSource}
>
- <Monitor size={16} className="shrink-0" />
+ <MonitorIcon size={16} className="shrink-0" />
<div className="flex-1 min-w-0 overflow-hidden">
<div className="truncate">{selectedSource}</div>
</div>
- <ChevronUp
+ <CaretUpIcon
size={10}
className={`text-[#6b6b78] ml-0.5 shrink-0 transition-transform duration-200 ${
openId === "sources" ? "" : "rotate-180"
@@ -373,7 +277,7 @@ function LaunchWindowContent() {
}
className={microphoneEnabled ? styles.ibActive : ""}
>
- {microphoneEnabled ? <Mic size={18} /> : <MicOff size={18} />}
+ {microphoneEnabled ? <MicrophoneIcon size={18} /> : <MicrophoneSlashIcon size={18} />}
</Button>
}
/>
@@ -411,7 +315,7 @@ function LaunchWindowContent() {
}
className={webcamEnabled ? styles.ibActive : ""}
>
- {webcamEnabled ? <Video size={18} /> : <VideoOff size={18} />}
+ {webcamEnabled ? <VideoCameraIcon size={18} /> : <VideoCameraSlashIcon size={18} />}
</Button>
}
/>
@@ -427,7 +331,7 @@ function LaunchWindowContent() {
title={t("recording.countdownDelay")}
className={countdownDelay > 0 ? styles.ibActive : ""}
>
- <Timer size={18} />
+ <TimerIcon size={18} />
</Button>
}
/>
@@ -441,8 +345,7 @@ function LaunchWindowContent() {
hasSelectedSource || platform === "linux"
? toggleRecording
: () => {
- setProjectBrowserOpen(false);
- window.electronAPI?.hudOverlaySetIgnoreMouse?.(false);
+ beginInteractiveHudAction();
requestOpen("sources");
}
}
@@ -484,7 +387,7 @@ function LaunchWindowContent() {
iconSize="lg"
title={t("recording.more")}
>
- <MoreVertical size={18} />
+ <DotsThreeVerticalIcon size={18} />
</Button>
}
/>
@@ -496,7 +399,7 @@ function LaunchWindowContent() {
onClick={() => window.electronAPI?.hudOverlayHide?.()}
title={t("recording.hideHud")}
>
- <Minus size={16} />
+ <MinusIcon size={16} />
</Button>
<Button
@@ -506,14 +409,14 @@ function LaunchWindowContent() {
onClick={() => window.electronAPI?.hudOverlayClose?.()}
title={t("recording.closeApp")}
>
- <X size={16} />
+ <XIcon size={16} />
</Button>
</>
);
const finalizingControls = (
<div className={styles.finalizingState}>
- <RefreshCw size={15} className={styles.finalizingSpin} />
+ <ArrowClockwiseIcon size={15} className={styles.finalizingSpin} />
<div className={styles.finalizingCopy}>
<span>{t("recording.preparing", "Preparing recording")}</span>
<small>{t("recording.preparingSubtitle", "Opening the editor in a moment")}</small>
diff --git a/src/components/launch/RecordingControls.tsx b/src/components/launch/RecordingControls.tsx
index 3044e293..ab15b833 100644
--- a/src/components/launch/RecordingControls.tsx
+++ b/src/components/launch/RecordingControls.tsx
@@ -1,4 +1,4 @@
-import { Microphone as Mic, MicrophoneSlash as MicOff, Minus, Pause, Play, Stop as Square, X } from "@phosphor-icons/react";
+import { MicrophoneIcon, MicrophoneSlashIcon, MinusIcon, PauseIcon, PlayIcon, SquareIcon, XIcon } from "@phosphor-icons/react";
import { useMemo } from "react";
import { useScopedT } from "@/contexts/I18nContext";
import { Button } from "@/components/ui/button";
@@ -71,9 +71,9 @@ export const RecordingControls = ({
onClick={onToggleMicrophone}
>
{microphoneEnabled ? (
- <Mic size={18} />
+ <MicrophoneIcon size={18} />
) : (
- <MicOff size={18} />
+ <MicrophoneSlashIcon size={18} />
)}
</Button>
@@ -88,9 +88,9 @@ export const RecordingControls = ({
className={paused ? styles.ibGreen : ""}
>
{paused ? (
- <Play size={18} fill="currentColor" strokeWidth={0} />
+ <PlayIcon size={18} fill="currentColor" strokeWidth={0} />
) : (
- <Pause size={18} />
+ <PauseIcon size={18} />
)}
</Button>
@@ -102,7 +102,7 @@ export const RecordingControls = ({
title={t("recording.stop")}
className={styles.ibRed}
>
- <Square size={16} fill="currentColor" strokeWidth={0} />
+ <SquareIcon size={16} fill="currentColor" strokeWidth={0} />
</Button>
<Button
@@ -112,7 +112,7 @@ export const RecordingControls = ({
onClick={onHideHud}
title={t("recording.hideHud")}
>
- <Minus size={16} />
+ <MinusIcon size={16} />
</Button>
<Button
@@ -122,7 +122,7 @@ export const RecordingControls = ({
onClick={onCancelRecording}
title={t("recording.cancel")}
>
- <X size={18} />
+ <XIcon size={18} />
</Button>
</>
);
diff --git a/src/components/launch/hooks/useLaunchHudInteractionState.ts b/src/components/launch/hooks/useLaunchHudInteractionState.ts
new file mode 100644
index 00000000..3d3f427c
--- /dev/null
+++ b/src/components/launch/hooks/useLaunchHudInteractionState.ts
@@ -0,0 +1,63 @@
+import { useCallback, useEffect, useRef, type MouseEvent, type RefObject } from "react";
+
+export function useLaunchHudInteractionState({
+ openId,
+ projectBrowserOpen,
+ setProjectBrowserOpen,
+ isHudDraggingRef,
+ isWebcamPreviewDraggingRef,
+ webcamPreviewDragStartRef,
+}: {
+ openId: string | null;
+ projectBrowserOpen: boolean;
+ setProjectBrowserOpen: (open: boolean) => void;
+ isHudDraggingRef: RefObject<boolean>;
+ isWebcamPreviewDraggingRef: RefObject<boolean>;
+ webcamPreviewDragStartRef: RefObject<unknown>;
+}) {
+ const anyPopoverOpenRef = useRef(false);
+ const projectBrowserOpenRef = useRef(false);
+
+ useEffect(() => {
+ anyPopoverOpenRef.current = openId !== null;
+ }, [openId]);
+
+ useEffect(() => {
+ if (!openId) return;
+ setProjectBrowserOpen(false);
+ window.electronAPI?.hudOverlaySetIgnoreMouse?.(false);
+ }, [openId, setProjectBrowserOpen]);
+
+ useEffect(() => {
+ projectBrowserOpenRef.current = projectBrowserOpen;
+ }, [projectBrowserOpen]);
+
+ const beginInteractiveHudAction = useCallback(() => {
+ setProjectBrowserOpen(false);
+ window.electronAPI?.hudOverlaySetIgnoreMouse?.(false);
+ }, [setProjectBrowserOpen]);
+
+ const handleHudMouseLeave = useCallback((event: MouseEvent<HTMLDivElement>) => {
+ const nextTarget = event.relatedTarget;
+ if (nextTarget instanceof Node && event.currentTarget.contains(nextTarget)) {
+ return;
+ }
+
+ requestAnimationFrame(() => {
+ if (
+ !isHudDraggingRef.current &&
+ !isWebcamPreviewDraggingRef.current &&
+ !webcamPreviewDragStartRef.current &&
+ !anyPopoverOpenRef.current &&
+ !projectBrowserOpenRef.current
+ ) {
+ window.electronAPI?.hudOverlaySetIgnoreMouse?.(true);
+ }
+ });
+ }, [isHudDraggingRef, isWebcamPreviewDraggingRef, webcamPreviewDragStartRef]);
+
+ return {
+ handleHudMouseLeave,
+ beginInteractiveHudAction,
+ };
+}
diff --git a/src/components/launch/hooks/useLaunchWindowActions.ts b/src/components/launch/hooks/useLaunchWindowActions.ts
new file mode 100644
index 00000000..86330e12
--- /dev/null
+++ b/src/components/launch/hooks/useLaunchWindowActions.ts
@@ -0,0 +1,90 @@
+import { useCallback, useState } from "react";
+import type { ProjectLibraryEntry } from "@/components/video-editor/ProjectBrowserDialog";
+import type { DesktopSource } from "../popovers/launchPopoverTypes";
+
+export function useLaunchWindowActions({
+ closeAllPopovers,
+}: {
+ closeAllPopovers: () => void;
+}) {
+ const [selectedSource, setSelectedSource] = useState("Screen");
+ const [hasSelectedSource, setHasSelectedSource] = useState(false);
+ const [projectLibraryEntries, setProjectLibraryEntries] = useState<ProjectLibraryEntry[]>([]);
+ const [projectBrowserOpen, setProjectBrowserOpen] = useState(false);
+
+ const handleSourceSelect = useCallback(async (source: DesktopSource) => {
+ await window.electronAPI.selectSource(source);
+ setSelectedSource(source.name);
+ setHasSelectedSource(true);
+ window.electronAPI.showSourceHighlight?.({
+ ...source,
+ name: source.appName ? `${source.appName} — ${source.name}` : source.name,
+ appName: source.appName,
+ });
+ }, []);
+
+ const openVideoFile = useCallback(async () => {
+ const result = await window.electronAPI.openVideoFilePicker();
+ if (result.canceled) return;
+ if (result.success && result.path) {
+ await window.electronAPI.setCurrentVideoPath(result.path);
+ await window.electronAPI.switchToEditor();
+ }
+ }, []);
+
+ const refreshProjectLibrary = useCallback(async () => {
+ try {
+ const result = await window.electronAPI.listProjectFiles();
+ if (!result.success) return;
+ setProjectLibraryEntries(result.entries);
+ } catch (error) {
+ console.error("Failed to load project library:", error);
+ }
+ }, []);
+
+ const openProjectBrowser = useCallback(async () => {
+ if (projectBrowserOpen) {
+ setProjectBrowserOpen(false);
+ return;
+ }
+ closeAllPopovers();
+ await refreshProjectLibrary();
+ setProjectBrowserOpen(true);
+ }, [closeAllPopovers, projectBrowserOpen, refreshProjectLibrary]);
+
+ const openProjectFromLibrary = useCallback(async (projectPath: string) => {
+ try {
+ const result = await window.electronAPI.openProjectFileAtPath(projectPath);
+ if (result.canceled || !result.success) {
+ return;
+ }
+ setProjectBrowserOpen(false);
+ await window.electronAPI.switchToEditor();
+ } catch (error) {
+ console.error("Failed to open project from library:", error);
+ }
+ }, []);
+
+ const syncSelectedSource = useCallback((source: { name?: string } | null | undefined) => {
+ if (source?.name) {
+ setSelectedSource(source.name);
+ setHasSelectedSource(true);
+ return;
+ }
+ setSelectedSource("Screen");
+ setHasSelectedSource(false);
+ }, []);
+
+ return {
+ selectedSource,
+ hasSelectedSource,
+ projectLibraryEntries,
+ projectBrowserOpen,
+ setProjectBrowserOpen,
+ handleSourceSelect,
+ openVideoFile,
+ openProjectBrowser,
+ openProjectFromLibrary,
+ syncSelectedSource,
+ };
+}
diff --git a/src/components/launch/popovers/CountdownPopover.tsx b/src/components/launch/popovers/CountdownPopover.tsx
index afa56ad0..c94e2ca9 100644
--- a/src/components/launch/popovers/CountdownPopover.tsx
+++ b/src/components/launch/popovers/CountdownPopover.tsx
@@ -1,4 +1,4 @@
-import { Timer } from "@phosphor-icons/react";
+import { TimerIcon } from "@phosphor-icons/react";
import type { ReactNode } from "react";
import { useScopedT } from "@/contexts/I18nContext";
import styles from "../LaunchWindow.module.css";
@@ -38,7 +38,7 @@ export function CountdownPopover({
{COUNTDOWN_OPTIONS.map((delay) => (
<DropdownItem
key={delay}
- icon={<Timer size={16} />}
+ icon={<TimerIcon size={16} />}
selected={countdownDelay === delay}
onClick={() => {
onSelectDelay(delay);
diff --git a/src/components/launch/popovers/MicPopover.tsx b/src/components/launch/popovers/MicPopover.tsx
index 70a2a71e..8036aed2 100644
--- a/src/components/launch/popovers/MicPopover.tsx
+++ b/src/components/launch/popovers/MicPopover.tsx
@@ -1,8 +1,8 @@
-import { MicrophoneSlash as MicOff, SpeakerHigh as Volume2, SpeakerX as VolumeX } from "@phosphor-icons/react";
+import { MicrophoneSlashIcon, SpeakerHighIcon, SpeakerXIcon } from "@phosphor-icons/react";
import { useScopedT } from "@/contexts/I18nContext";
import { DropdownItem, HudPopover, MicDeviceRow } from "./PopoverScaffold";
import { useLaunchPopoverCoordinator } from "./LaunchPopoverCoordinator";
-import type { DeviceOption } from "./types";
+import type { DeviceOption } from "./launchPopoverTypes";
import type { ReactNode } from "react";
import styles from "../LaunchWindow.module.css";
@@ -53,7 +53,7 @@ export function MicPopover({
>
<div className={styles.ddLabel}>{t("recording.microphone")}</div>
<DropdownItem
- icon={systemAudioEnabled ? <Volume2 size={16} /> : <VolumeX size={16} />}
+ icon={systemAudioEnabled ? <SpeakerHighIcon size={16} /> : <SpeakerXIcon size={16} />}
selected={systemAudioEnabled}
onClick={onToggleSystemAudio}
>
@@ -63,7 +63,7 @@ export function MicPopover({
</DropdownItem>
{microphoneEnabled && (
<DropdownItem
- icon={<MicOff size={16} />}
+ icon={<MicrophoneSlashIcon size={16} />}
onClick={() => {
onDisableMicrophone();
requestClose(POPOVER_ID);
diff --git a/src/components/launch/popovers/MorePopover.tsx b/src/components/launch/popovers/MorePopover.tsx
index 070b6359..0a6f2225 100644
--- a/src/components/launch/popovers/MorePopover.tsx
+++ b/src/components/launch/popovers/MorePopover.tsx
@@ -1,10 +1,10 @@
import {
- Eye,
- EyeSlash as EyeOff,
- FolderOpen,
- Translate as Languages,
- VideoCamera as VideoIcon,
- ArrowClockwise as RefreshCw,
+ EyeIcon,
+ EyeSlashIcon,
+ FolderOpenIcon,
+ TranslateIcon,
+ VideoCameraIcon,
+ ArrowClockwiseIcon,
} from "@phosphor-icons/react";
import type { ReactNode } from "react";
import { useI18n } from "@/contexts/I18nContext";
@@ -71,7 +71,7 @@ export function MorePopover({
>
{supportsHudCaptureProtection && (
<DropdownItem
- icon={hideHudFromCapture ? <EyeOff size={16} /> : <Eye size={16} />}
+ icon={hideHudFromCapture ? <EyeSlashIcon size={16} /> : <EyeIcon size={16} />}
selected={hideHudFromCapture}
onClick={onToggleHudCaptureProtection}
>
@@ -81,7 +81,7 @@ export function MorePopover({
</DropdownItem>
)}
<DropdownItem
- icon={<FolderOpen size={16} />}
+ icon={<FolderOpenIcon size={16} />}
onClick={() => {
requestClose(POPOVER_ID);
onChooseRecordingsDirectory();
@@ -90,7 +90,7 @@ export function MorePopover({
{t("recording.recordingsFolder")}
</DropdownItem>
<DropdownItem
- icon={<VideoIcon size={16} />}
+ icon={<VideoCameraIcon size={16} />}
onClick={() => {
requestClose(POPOVER_ID);
onOpenVideoFile();
@@ -99,7 +99,7 @@ export function MorePopover({
{t("recording.openVideoFile")}
</DropdownItem>
<DropdownItem
- icon={<FolderOpen size={16} />}
+ icon={<FolderOpenIcon size={16} />}
onClick={() => {
requestClose(POPOVER_ID);
onOpenProjectBrowser();
@@ -109,7 +109,7 @@ export function MorePopover({
</DropdownItem>
{showDevUpdatePreview ? (
<DropdownItem
- icon={<RefreshCw size={16} />}
+ icon={<ArrowClockwiseIcon size={16} />}
onClick={() => {
requestClose(POPOVER_ID);
onPreviewUpdateUi();
@@ -124,7 +124,7 @@ export function MorePopover({
{SUPPORTED_LOCALES.map((code) => (
<DropdownItem
key={code}
- icon={<Languages size={16} />}
+ icon={<TranslateIcon size={16} />}
selected={locale === code}
onClick={() => {
setLocale(code as AppLocale);
diff --git a/src/components/launch/popovers/PopoverScaffold.tsx b/src/components/launch/popovers/PopoverScaffold.tsx
index e85b3a63..d42f2ccc 100644
--- a/src/components/launch/popovers/PopoverScaffold.tsx
+++ b/src/components/launch/popovers/PopoverScaffold.tsx
@@ -1,11 +1,11 @@
-import { Microphone as Mic, MicrophoneSlash as MicOff } from "@phosphor-icons/react";
+import { MicrophoneIcon, MicrophoneSlashIcon } from "@phosphor-icons/react";
import type { ReactNode } from "react";
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
import { useAudioLevelMeter } from "@/hooks/useAudioLevelMeter";
import { AudioLevelMeter } from "@/components/ui/audio-level-meter";
import styles from "../LaunchWindow.module.css";
import "../launchTheme.css";
-import type { DeviceOption } from "./types";
+import type { DeviceOption } from "./launchPopoverTypes";
export function DropdownItem({
onClick,
@@ -53,7 +53,7 @@ export function MicDeviceRow({
className={`${styles.ddItem} ${selected ? styles.ddItemSelected : ""}`}
onClick={onSelect}
>
- <span className="shrink-0">{selected ? <Mic size={16} /> : <MicOff size={16} />}</span>
+ <span className="shrink-0">{selected ? <MicrophoneIcon size={16} /> : <MicrophoneSlashIcon size={16} />}</span>
<span className="truncate flex-1">{device.label}</span>
<AudioLevelMeter level={level} className="w-16 shrink-0" />
</button>
diff --git a/src/components/launch/popovers/SourcePopover.tsx b/src/components/launch/popovers/SourcePopover.tsx
index 9db48c80..dba8407b 100644
--- a/src/components/launch/popovers/SourcePopover.tsx
+++ b/src/components/launch/popovers/SourcePopover.tsx
@@ -1,7 +1,7 @@
import { useCallback, useMemo, type ReactNode, useState } from "react";
import { SourceSelector } from "../SourceSelector";
import { useLaunchPopoverCoordinator } from "./LaunchPopoverCoordinator";
-import type { DesktopSource } from "./types";
+import type { DesktopSource } from "./launchPopoverTypes";
const POPOVER_ID = "sources";
diff --git a/src/components/launch/popovers/WebcamPopover.tsx b/src/components/launch/popovers/WebcamPopover.tsx
index 7d045a18..63d8741b 100644
--- a/src/components/launch/popovers/WebcamPopover.tsx
+++ b/src/components/launch/popovers/WebcamPopover.tsx
@@ -7,7 +7,7 @@ import {
import { useScopedT } from "@/contexts/I18nContext";
import { DropdownItem, HudPopover } from "./PopoverScaffold";
import { useLaunchPopoverCoordinator } from "./LaunchPopoverCoordinator";
-import type { DeviceOption } from "./types";
+import type { DeviceOption } from "./launchPopoverTypes";
import type { ReactNode } from "react";
const POPOVER_ID = "webcam";
diff --git a/src/components/launch/popovers/types.ts b/src/components/launch/popovers/launchPopoverTypes.ts
similarity index 100%
rename from src/components/launch/popovers/types.ts
rename to src/components/launch/popovers/launchPopoverTypes.ts