import { Button } from "@/components/button"; import { Dialog, DialogContent, DialogTitle, DialogTrigger } from "@/components/dialog"; import { Shortcut } from "@/components/kbd"; import { SocialFooter } from "@/components/social-footer"; import useHotkeys from "@/utils/useHotkeys"; import { Info02Icon } from "@raycast/icons"; import { useCallback, useState } from "react"; import usePngClipboardSupported from "../util/usePngClipboardSupported"; export function InfoDialog() { const [isOpen, setIsOpen] = useState(false); const toggleOpen = useCallback(() => setIsOpen((prev) => !prev), [setIsOpen]); const pngClipboardSupported = usePngClipboardSupported(); useHotkeys("shift+/", toggleOpen); return (
About

Code Images by Raycast is a tool to create beautiful screenshots of your code.

Pick a theme from a range of syntax colors and backgrounds, the language of your code and choose between light or dark mode.

Customize the padding and when you’re ready, click export image in the top-right corner to save the image as a png, svg or share a link to your code.

You can also change the image resolution in the export menu.

Contribute

The project is Open Source and{" "} available on GitHub .

If you have any questions or feedback, please write to us on{" "} 𝕏 {" "} or{" "} send us an email .

Shortcuts

Focus text editor Unfocus text editor Change colors Toggle background Toggle dark mode Toggle line numbers Change padding Select language Highlight line Format code Toggle Export Menu Save PNG Save SVG {pngClipboardSupported && Copy image} Copy URL Open shortcuts
); }