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
Refactor: Update NotesWindow integration and improve accessibility
itzadetunjib37efc63a988
diff --git a/src/App.tsx b/src/App.tsxindex 76b5f024f..a59c2aeee 100644--- a/src/App.tsx+++ b/src/App.tsx@@ -60,8 +60,6 @@ export default function App() {const content = (() => {switch (windowType) {- case "notes":- return <NotesWindow />;case "hud-overlay":return <LaunchWindow />;case "source-selector":@@ -116,9 +114,17 @@ export default function App() {}})();+ if (showNotes) {+ return (+ <TooltipProvider>+ <NotesWindow />+ <Toaster theme="dark" />+ </TooltipProvider>+ );+ }+return (<TooltipProvider>- {showNotes && <NotesWindow />}{content}<Toaster theme="dark" /></TooltipProvider>diff --git a/src/components/launch/LaunchWindow.tsx b/src/components/launch/LaunchWindow.tsxindex 86eac7d3f..8f7ef5cd8 100644--- a/src/components/launch/LaunchWindow.tsx+++ b/src/components/launch/LaunchWindow.tsx@@ -1047,6 +1047,8 @@ export function LaunchWindow() {<Tooltip content={t("tooltips.openNotes")}><button+ type="button"+ aria-label={t("tooltips.openNotes")}className={`${hudIconBtnClasses} ${styles.electronNoDrag}`}onClick={() => window.electronAPI.openNotes()}>diff --git a/src/components/launch/NotesWindow.tsx b/src/components/launch/NotesWindow.tsxindex 4d72a931d..ae23a3a1c 100644--- a/src/components/launch/NotesWindow.tsx+++ b/src/components/launch/NotesWindow.tsx@@ -1,6 +1,8 @@import React, { useLayoutEffect, useState } from "react";+import { useScopedT } from "@/contexts/I18nContext";export function NotesWindow() {+ const t = useScopedT("launch");const [notes, setNotes] = useState("");const handleNotesChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {@@ -16,7 +18,7 @@ export function NotesWindow() {<div className="bg-white h-screen w-screen px-6 py-4"><textareaclassName="w-full h-full bg-transparent outline-none resize-none caret-black text-black"- placeholder="Take notes here..."+ placeholder={t("tooltips.openNotesPlaceholder")}value={notes}onChange={handleNotesChange}/>diff --git a/src/i18n/locales/en/launch.json b/src/i18n/locales/en/launch.jsonindex 6e25a7a29..af9d60b55 100644--- a/src/i18n/locales/en/launch.json+++ b/src/i18n/locales/en/launch.json@@ -11,7 +11,8 @@"useVerticalTray": "Use vertical tray","useHorizontalTray": "Use horizontal tray","openStudio": "Open Studio",- "openNotes": "Open Notes"+ "openNotes": "Open Notes",+ "openNotesPlaceholder": "Take notes here..."},"audio": {"enableSystemAudio": "Enable system audio",