From 2b471783c084800acd67c37e8a74439c1db864a1 Mon Sep 17 00:00:00 2001
From: Adam <69064669+abres33@users.noreply.github.com>
Date: Fri, 3 Apr 2026 02:00:36 -0500
Subject: [PATCH 1/3] feat: add Cancel Recording button to HUD
---
src/components/launch/LaunchWindow.tsx | 15 +++++++++++++++
src/hooks/useScreenRecorder.ts | 13 +++++++++++++
src/i18n/locales/en/launch.json | 1 +
src/i18n/locales/es/launch.json | 1 +
src/i18n/locales/zh-CN/launch.json | 1 +
5 files changed, 31 insertions(+)
diff --git a/src/components/launch/LaunchWindow.tsx b/src/components/launch/LaunchWindow.tsx
index f1b66b8..d1185e8 100644
--- a/src/components/launch/LaunchWindow.tsx
+++ b/src/components/launch/LaunchWindow.tsx
@@ -5,6 +5,7 @@ import { FaRegStopCircle } from "react-icons/fa";
import { FaFolderOpen } from "react-icons/fa6";
import { FiMinus, FiX } from "react-icons/fi";
import {
+ MdCancel,
MdMic,
MdMicOff,
MdMonitor,
@@ -43,6 +44,7 @@ const ICON_CONFIG = {
webcamOff: { icon: MdVideocamOff, size: ICON_SIZE },
stop: { icon: FaRegStopCircle, size: ICON_SIZE },
restart: { icon: MdRestartAlt, size: ICON_SIZE },
+ cancel: { icon: MdCancel, size: ICON_SIZE },
record: { icon: BsRecordCircle, size: ICON_SIZE },
videoFile: { icon: MdVideoFile, size: ICON_SIZE },
folder: { icon: FaFolderOpen, size: ICON_SIZE },
@@ -79,6 +81,7 @@ export function LaunchWindow() {
recording,
toggleRecording,
restartRecording,
+ cancelRecording,
microphoneEnabled,
setMicrophoneEnabled,
microphoneDeviceId,
@@ -477,6 +480,18 @@ export function LaunchWindow() {
)}
+ {/* Cancel recording */}
+ {recording && (
+
+
+
+ )}
+
{/* Open video file */}