diff --git a/src/renderer/components/custom/documentation-dialog.tsx b/src/renderer/components/custom/documentation-dialog.tsx index 98dd5bb..1f2e73c 100644 --- a/src/renderer/components/custom/documentation-dialog.tsx +++ b/src/renderer/components/custom/documentation-dialog.tsx @@ -1,5 +1,11 @@ import React, { useEffect, useState } from 'react'; +import { + Accordion, + AccordionContent, + AccordionItem, + AccordionTrigger, +} from '@/components/ui/accordion'; import { Button } from '@/components/ui/button'; import { Dialog, @@ -62,45 +68,58 @@ export default function DocumentationDialog({ open, onOpenChange }: Documentatio -
-

Lost the window?

-

- In stealth mode {APP_NAME} leaves the taskbar and the macOS Dock so it is not visible - when you share your screen, which also means a minimized window has no button to click. - Just launch {APP_NAME} again: it does not start a second copy, it brings this window - back. Outside stealth mode the usual taskbar button and Dock icon are there. -

+
+ + + + Lost the window? + + +

+ In stealth mode {APP_NAME} leaves the taskbar and the macOS Dock so it is not + visible when you share your screen, which also means a minimized window has no + button to click. Just launch {APP_NAME} again: it does not start a second copy, it + brings this window back. Outside stealth mode the usual taskbar button and Dock + icon are there. +

+
+
-

Hotkeys

- {HOTKEY_GROUPS.map((group) => ( -
-

{group.label}

-
- {group.keys.map((hk) => { - const info = HOTKEYS[hk]; - return ( - -
-
- {info.combo} -
-
-
{info.description}
-
- ); - })} -
-
- ))} + + Hotkeys + + {HOTKEY_GROUPS.map((group) => ( +
+

{group.label}

+
+ {group.keys.map((hk) => { + const info = HOTKEYS[hk]; + return ( + +
+
+ {info.combo} +
+
+
{info.description}
+
+ ); + })} +
+
+ ))} +
+
+
diff --git a/src/renderer/components/ui/accordion.tsx b/src/renderer/components/ui/accordion.tsx new file mode 100644 index 0000000..9f25bca --- /dev/null +++ b/src/renderer/components/ui/accordion.tsx @@ -0,0 +1,62 @@ +import { ChevronDownIcon } from 'lucide-react'; +import { Accordion as AccordionPrimitive } from 'radix-ui'; +import * as React from 'react'; + +import { cn } from '@/lib/utils'; + +function Accordion({ ...props }: React.ComponentProps) { + return ; +} + +function AccordionItem({ + className, + ...props +}: React.ComponentProps) { + return ( + + ); +} + +function AccordionTrigger({ + className, + children, + ...props +}: React.ComponentProps) { + return ( + + svg]:rotate-180', + className + )} + {...props} + > + {children} + + + + ); +} + +function AccordionContent({ + className, + children, + ...props +}: React.ComponentProps) { + return ( + +
{children}
+
+ ); +} + +export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };