Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

Merge branch 'main' of github.com:siddharthvaddem/openscreen into feature/color-wheel

BaptisteAuscher916d649037b9
diff --cc package-lock.json
index d4b1d13dd,4f854bc92..a449101ec
--- a/package-lock.json
+++ b/package-lock.json
@@@ -23,29 -23,28 +23,29 @@@
"@radix-ui/react-toggle-group": "^1.1.11",
"@radix-ui/react-tooltip": "^1.2.8",
"@types/gif.js": "^0.2.5",
- "@uiw/color-convert": "^2.9.2",
- "@uiw/react-color-block": "^2.9.2",
+ "@uiw/color-convert": "^2.10.1",
+ "@uiw/react-color-block": "^2.10.1",
+ "@uiw/react-color-colorful": "^2.9.2",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
- "dnd-timeline": "^2.2.0",
- "emoji-picker-react": "^4.16.1",
+ "dnd-timeline": "^2.4.0",
+ "emoji-picker-react": "^4.18.0",
"fix-webm-duration": "^1.0.6",
"gif.js": "^0.2.0",
- "gsap": "^3.13.0",
+ "gsap": "^3.15.0",
"lucide-react": "^0.545.0",
- "mediabunny": "^1.25.1",
- "motion": "^12.23.24",
- "mp4box": "^2.2.0",
+ "mediabunny": "^1.40.1",
+ "motion": "^12.38.0",
+ "mp4box": "^2.3.0",
"pixi-filters": "^6.1.5",
- "pixi.js": "^8.14.0",
- "react": "^18.2.0",
- "react-dom": "^18.2.0",
- "react-icons": "^5.5.0",
+ "pixi.js": "^8.18.1",
+ "react": "^18.3.1",
+ "react-dom": "^18.3.1",
+ "react-icons": "^5.6.0",
"react-resizable-panels": "^3.0.6",
- "react-rnd": "^10.5.2",
+ "react-rnd": "^10.5.3",
"sonner": "^2.0.7",
- "tailwind-merge": "^3.3.1",
+ "tailwind-merge": "^3.5.0",
"tailwindcss-animate": "^1.0.7",
"uuid": "^13.0.0",
"web-demuxer": "^4.0.0"
@@@ -4878,45 -4073,15 +4074,45 @@@
"@babel/runtime": ">=7.19.0"
}
},
+ "node_modules/@uiw/react-color-alpha": {
+ "version": "2.9.6",
+ "resolved": "https://registry.npmjs.org/@uiw/react-color-alpha/-/react-color-alpha-2.9.6.tgz",
+ "integrity": "sha512-DNzEVHZ0Izp4NAwzKqTcl4rLdPjSFjyZCP6Q2vKJEglugZ/bdPsmZaos9IYOrgnd1kPDmTSKZ/p8nI7vBIATGw==",
+ "license": "MIT",
+ "dependencies": {
+ "@uiw/color-convert": "2.9.6",
+ "@uiw/react-drag-event-interactive": "2.9.6"
+ },
+ "funding": {
+ "url": "https://jaywcjlove.github.io/#/sponsor"
+ },
+ "peerDependencies": {
+ "@babel/runtime": ">=7.19.0",
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@uiw/react-color-alpha/node_modules/@uiw/color-convert": {
+ "version": "2.9.6",
+ "resolved": "https://registry.npmjs.org/@uiw/color-convert/-/color-convert-2.9.6.tgz",
+ "integrity": "sha512-w8TpU3MRcquurQJxWR1daKcRygu/a0hLP/VGsLMA3ebb41sAZGxMQLHtS+zC/e3ciFNB7BbPrSPlzOcz6w6cRg==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://jaywcjlove.github.io/#/sponsor"
+ },
+ "peerDependencies": {
+ "@babel/runtime": ">=7.19.0"
+ }
+ },
"node_modules/@uiw/react-color-block": {
- "version": "2.9.2",
- "resolved": "https://registry.npmjs.org/@uiw/react-color-block/-/react-color-block-2.9.2.tgz",
- "integrity": "sha512-0EIZTELA5pnxyMlBOFo3hrpy73db+Qeq6E+QptNfD/8izor8OvY1Uquj2VqD6gDz+iVHMELIoKxpaQ8sZR7NOg==",
+ "version": "2.10.1",
+ "resolved": "https://registry.npmjs.org/@uiw/react-color-block/-/react-color-block-2.10.1.tgz",
+ "integrity": "sha512-nGfhUGZhCbYH/gVvD12H9wZ/NBiToiSyrSdbracyIbA01tZInmkRNmfzTCkPq7yoXMa09I9G8pPISoyHre4TQg==",
"license": "MIT",
"dependencies": {
- "@uiw/color-convert": "2.9.2",
- "@uiw/react-color-editable-input": "2.9.2",
- "@uiw/react-color-swatch": "2.9.2"
+ "@uiw/color-convert": "2.10.1",
+ "@uiw/react-color-editable-input": "2.10.1",
+ "@uiw/react-color-swatch": "2.10.1"
},
"funding": {
"url": "https://jaywcjlove.github.io/#/sponsor"
@@@ -4927,42 -4092,10 +4123,42 @@@
"react-dom": ">=16.9.0"
}
},
+ "node_modules/@uiw/react-color-colorful": {
+ "version": "2.9.6",
+ "resolved": "https://registry.npmjs.org/@uiw/react-color-colorful/-/react-color-colorful-2.9.6.tgz",
+ "integrity": "sha512-h74zo+ve9Rpv7xwb1dRfoa23yN39b6eYScDIm7V2d5FzkXN6hR7jnnJ7ZUD9Joz/rdaCz1eFQD9ig+wp8+wSnQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@uiw/color-convert": "2.9.6",
+ "@uiw/react-color-alpha": "2.9.6",
+ "@uiw/react-color-hue": "2.9.6",
+ "@uiw/react-color-saturation": "2.9.6"
+ },
+ "funding": {
+ "url": "https://jaywcjlove.github.io/#/sponsor"
+ },
+ "peerDependencies": {
+ "@babel/runtime": ">=7.19.0",
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@uiw/react-color-colorful/node_modules/@uiw/color-convert": {
+ "version": "2.9.6",
+ "resolved": "https://registry.npmjs.org/@uiw/color-convert/-/color-convert-2.9.6.tgz",
+ "integrity": "sha512-w8TpU3MRcquurQJxWR1daKcRygu/a0hLP/VGsLMA3ebb41sAZGxMQLHtS+zC/e3ciFNB7BbPrSPlzOcz6w6cRg==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://jaywcjlove.github.io/#/sponsor"
+ },
+ "peerDependencies": {
+ "@babel/runtime": ">=7.19.0"
+ }
+ },
"node_modules/@uiw/react-color-editable-input": {
- "version": "2.9.2",
- "resolved": "https://registry.npmjs.org/@uiw/react-color-editable-input/-/react-color-editable-input-2.9.2.tgz",
- "integrity": "sha512-DY7pu12+LDRn6cxDMvsy1/quaPTxicAPz/kfODV7KBf8+Hq4rFWeJ4KS6m22IKIbQxrBQgmQG0WFJLaPeY7cPw==",
+ "version": "2.10.1",
+ "resolved": "https://registry.npmjs.org/@uiw/react-color-editable-input/-/react-color-editable-input-2.10.1.tgz",
+ "integrity": "sha512-jMim8eAw/5hz7gaZwBy3vM5wMxPMocOG+u1+wcKbqvavHaeg/wHq7Y29uRyFKj80s4FXvUKehXRQl0F68mA7jQ==",
"license": "MIT",
"funding": {
"url": "https://jaywcjlove.github.io/#/sponsor"
@@@ -4973,73 -4106,13 +4169,73 @@@
"react-dom": ">=16.9.0"
}
},
+ "node_modules/@uiw/react-color-hue": {
+ "version": "2.9.6",
+ "resolved": "https://registry.npmjs.org/@uiw/react-color-hue/-/react-color-hue-2.9.6.tgz",
+ "integrity": "sha512-B99dW2/AHMD3py83BrXl94bhXeGCZR1FMpU/FNbIIbUrV9QTiIXDs2/SB/tMD9ltcSP59RD5Sc5m2vCb/8anjw==",
+ "license": "MIT",
+ "dependencies": {
+ "@uiw/color-convert": "2.9.6",
+ "@uiw/react-color-alpha": "2.9.6"
+ },
+ "funding": {
+ "url": "https://jaywcjlove.github.io/#/sponsor"
+ },
+ "peerDependencies": {
+ "@babel/runtime": ">=7.19.0",
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@uiw/react-color-hue/node_modules/@uiw/color-convert": {
+ "version": "2.9.6",
+ "resolved": "https://registry.npmjs.org/@uiw/color-convert/-/color-convert-2.9.6.tgz",
+ "integrity": "sha512-w8TpU3MRcquurQJxWR1daKcRygu/a0hLP/VGsLMA3ebb41sAZGxMQLHtS+zC/e3ciFNB7BbPrSPlzOcz6w6cRg==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://jaywcjlove.github.io/#/sponsor"
+ },
+ "peerDependencies": {
+ "@babel/runtime": ">=7.19.0"
+ }
+ },
+ "node_modules/@uiw/react-color-saturation": {
+ "version": "2.9.6",
+ "resolved": "https://registry.npmjs.org/@uiw/react-color-saturation/-/react-color-saturation-2.9.6.tgz",
+ "integrity": "sha512-R1tiKbTG2WiJXerkmuaKnBFfzgyZUn08q9OjQSvNH1f3ov2/YeUVlOwQY9MbQE7ytZv+9x+1h0Lpk4QG7AdulQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@uiw/color-convert": "2.9.6",
+ "@uiw/react-drag-event-interactive": "2.9.6"
+ },
+ "funding": {
+ "url": "https://jaywcjlove.github.io/#/sponsor"
+ },
+ "peerDependencies": {
+ "@babel/runtime": ">=7.19.0",
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
+ "node_modules/@uiw/react-color-saturation/node_modules/@uiw/color-convert": {
+ "version": "2.9.6",
+ "resolved": "https://registry.npmjs.org/@uiw/color-convert/-/color-convert-2.9.6.tgz",
+ "integrity": "sha512-w8TpU3MRcquurQJxWR1daKcRygu/a0hLP/VGsLMA3ebb41sAZGxMQLHtS+zC/e3ciFNB7BbPrSPlzOcz6w6cRg==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://jaywcjlove.github.io/#/sponsor"
+ },
+ "peerDependencies": {
+ "@babel/runtime": ">=7.19.0"
+ }
+ },
"node_modules/@uiw/react-color-swatch": {
- "version": "2.9.2",
- "resolved": "https://registry.npmjs.org/@uiw/react-color-swatch/-/react-color-swatch-2.9.2.tgz",
- "integrity": "sha512-6zBy+E9NzZR672M2wPsbbNRqKy9Wi9jOuuxxyzov1CEZp+pPX7UwMlCX6RUhKdO0PzTSPCVQmbz5bplu5vsW0w==",
+ "version": "2.10.1",
+ "resolved": "https://registry.npmjs.org/@uiw/react-color-swatch/-/react-color-swatch-2.10.1.tgz",
+ "integrity": "sha512-DuGlaIszNcvtsY8BfW+RiUkEK1yVmnAamkzc/S5cQZwaAA5bCKhwwyaKPqh1/XWs7pR4pysjSNlMaeqaSOO34A==",
"license": "MIT",
"dependencies": {
- "@uiw/color-convert": "2.9.2"
+ "@uiw/color-convert": "2.10.1"
},
"funding": {
"url": "https://jaywcjlove.github.io/#/sponsor"
@@@ -5050,24 -4123,10 +4246,24 @@@
"react-dom": ">=16.9.0"
}
},
+ "node_modules/@uiw/react-drag-event-interactive": {
+ "version": "2.9.6",
+ "resolved": "https://registry.npmjs.org/@uiw/react-drag-event-interactive/-/react-drag-event-interactive-2.9.6.tgz",
+ "integrity": "sha512-jXzt3Xis/BIYap2Hj2++gB3aEUD0mZoVNGfckurrwjAwxasxNiwkmTGxV5er3due0ZgaVKdOAfTRoYKlgZukSg==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://jaywcjlove.github.io/#/sponsor"
+ },
+ "peerDependencies": {
+ "@babel/runtime": ">=7.19.0",
+ "react": ">=16.9.0",
+ "react-dom": ">=16.9.0"
+ }
+ },
"node_modules/@vitejs/plugin-react": {
- "version": "4.7.0",
- "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz",
- "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==",
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.2.0.tgz",
+ "integrity": "sha512-YmKkfhOAi3wsB1PhJq5Scj3GXMn3WvtQ/JC0xoopuHoXSdmtdStOpFrYaT1kie2YgFBcIe64ROzMYRjCrYOdYw==",
"dev": true,
"license": "MIT",
"dependencies": {
diff --cc package.json
index 1c4c47149,dbd586252..102e97cd2
--- a/package.json
+++ b/package.json
@@@ -47,29 -47,28 +47,29 @@@
"@radix-ui/react-toggle-group": "^1.1.11",
"@radix-ui/react-tooltip": "^1.2.8",
"@types/gif.js": "^0.2.5",
- "@uiw/color-convert": "^2.9.2",
- "@uiw/react-color-block": "^2.9.2",
+ "@uiw/color-convert": "^2.10.1",
+ "@uiw/react-color-block": "^2.10.1",
+ "@uiw/react-color-colorful": "^2.9.2",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
- "dnd-timeline": "^2.2.0",
- "emoji-picker-react": "^4.16.1",
+ "dnd-timeline": "^2.4.0",
+ "emoji-picker-react": "^4.18.0",
"fix-webm-duration": "^1.0.6",
"gif.js": "^0.2.0",
- "gsap": "^3.13.0",
+ "gsap": "^3.15.0",
"lucide-react": "^0.545.0",
- "mediabunny": "^1.25.1",
- "motion": "^12.23.24",
- "mp4box": "^2.2.0",
+ "mediabunny": "^1.40.1",
+ "motion": "^12.38.0",
+ "mp4box": "^2.3.0",
"pixi-filters": "^6.1.5",
- "pixi.js": "^8.14.0",
- "react": "^18.2.0",
- "react-dom": "^18.2.0",
- "react-icons": "^5.5.0",
+ "pixi.js": "^8.18.1",
+ "react": "^18.3.1",
+ "react-dom": "^18.3.1",
+ "react-icons": "^5.6.0",
"react-resizable-panels": "^3.0.6",
- "react-rnd": "^10.5.2",
+ "react-rnd": "^10.5.3",
"sonner": "^2.0.7",
- "tailwind-merge": "^3.3.1",
+ "tailwind-merge": "^3.5.0",
"tailwindcss-animate": "^1.0.7",
"uuid": "^13.0.0",
"web-demuxer": "^4.0.0"
diff --cc src/components/video-editor/AnnotationSettingsPanel.tsx
index eb6a9be37,4c26c8858..3f8064ee3
--- a/src/components/video-editor/AnnotationSettingsPanel.tsx
+++ b/src/components/video-editor/AnnotationSettingsPanel.tsx
@@@ -30,10 -31,14 +31,15 @@@ import { ToggleGroup, ToggleGroupItem
import { useScopedT } from "@/contexts/I18nContext";
import { type CustomFont, getCustomFonts } from "@/lib/customFonts";
import { cn } from "@/lib/utils";
+import ColorPicker from "../ui/color-picker";
import { AddCustomFontDialog } from "./AddCustomFontDialog";
import { getArrowComponent } from "./ArrowSvgs";
- import type { AnnotationRegion, AnnotationType, ArrowDirection, FigureData } from "./types";
+ import {
+ type AnnotationRegion,
+ type AnnotationType,
+ type ArrowDirection,
+ type FigureData,
+ } from "./types";
interface AnnotationSettingsPanelProps {
annotation: AnnotationRegion;
diff --cc src/components/video-editor/SettingsPanel.tsx
index c9bfb6c8c,f21f0183e..82e106c5c
--- a/src/components/video-editor/SettingsPanel.tsx
+++ b/src/components/video-editor/SettingsPanel.tsx
@@@ -38,10 -38,11 +37,12 @@@ import { WEBCAM_LAYOUT_PRESETS } from "
import type { ExportFormat, ExportQuality, GifFrameRate, GifSizePreset } from "@/lib/exporter";
import { GIF_FRAME_RATES, GIF_SIZE_PRESETS } from "@/lib/exporter";
import { cn } from "@/lib/utils";
+ import { resolveImageWallpaperUrl, WALLPAPER_PATHS } from "@/lib/wallpaper";
import { type AspectRatio, isPortraitAspectRatio } from "@/utils/aspectRatioUtils";
import { getTestId } from "@/utils/getTestId";
+import ColorPicker from "../ui/color-picker";
import { AnnotationSettingsPanel } from "./AnnotationSettingsPanel";
+ import { BlurSettingsPanel } from "./BlurSettingsPanel";
import { CropControl } from "./CropControl";
import { KeyboardShortcutsHelp } from "./KeyboardShortcutsHelp";
import type {