settings cleanup

This commit is contained in:
Siddharth
2025-11-28 21:55:42 -07:00
parent 71e2b51f5b
commit 4c725dfceb
8 changed files with 26 additions and 22 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 MiB

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 890 KiB

After

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 496 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 496 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 MiB

@@ -15,6 +15,10 @@ export function KeyboardShortcutsHelp() {
<span className="text-slate-400">Add Keyframe</span> <span className="text-slate-400">Add Keyframe</span>
<kbd className="px-1 py-0.5 bg-white/5 border border-white/10 rounded text-[#34B27B] font-mono">F</kbd> <kbd className="px-1 py-0.5 bg-white/5 border border-white/10 rounded text-[#34B27B] font-mono">F</kbd>
</div> </div>
<div className="flex items-center justify-between">
<span className="text-slate-400">Add Trim</span>
<kbd className="px-1 py-0.5 bg-white/5 border border-white/10 rounded text-[#34B27B] font-mono">T</kbd>
</div>
<div className="flex items-center justify-between"> <div className="flex items-center justify-between">
<span className="text-slate-400">Delete Selected</span> <span className="text-slate-400">Delete Selected</span>
<kbd className="px-1 py-0.5 bg-white/5 border border-white/10 rounded text-[#34B27B] font-mono"> + D</kbd> <kbd className="px-1 py-0.5 bg-white/5 border border-white/10 rounded text-[#34B27B] font-mono"> + D</kbd>
+21 -21
View File
@@ -15,7 +15,7 @@ import type { ZoomDepth, CropRegion } from "./types";
import { CropControl } from "./CropControl"; import { CropControl } from "./CropControl";
import { KeyboardShortcutsHelp } from "./KeyboardShortcutsHelp"; import { KeyboardShortcutsHelp } from "./KeyboardShortcutsHelp";
const WALLPAPER_COUNT = 20; const WALLPAPER_COUNT = 18;
const WALLPAPER_RELATIVE = Array.from({ length: WALLPAPER_COUNT }, (_, i) => `wallpapers/wallpaper${i + 1}.jpg`); const WALLPAPER_RELATIVE = Array.from({ length: WALLPAPER_COUNT }, (_, i) => `wallpapers/wallpaper${i + 1}.jpg`);
const GRADIENTS = [ const GRADIENTS = [
"linear-gradient( 111.6deg, rgba(114,167,232,1) 9.4%, rgba(253,129,82,1) 43.9%, rgba(253,129,82,1) 54.8%, rgba(249,202,86,1) 86.3% )", "linear-gradient( 111.6deg, rgba(114,167,232,1) 9.4%, rgba(253,129,82,1) 43.9%, rgba(253,129,82,1) 54.8%, rgba(249,202,86,1) 86.3% )",
@@ -209,19 +209,13 @@ export function SettingsPanel({ selected, onWallpaperChange, selectedZoomDepth,
<div className="mb-6"> <div className="mb-6">
<div className="grid grid-cols-2 gap-3"> <div className="grid grid-cols-2 gap-3">
{/* Drop Shadow Slider */} {/* Motion Blur Switch */}
<div className="p-3 rounded-xl bg-white/5 border border-white/5 space-y-2"> <div className="flex items-center justify-between p-3 rounded-xl bg-white/5 border border-white/5">
<div className="flex items-center justify-between"> <div className="text-xs font-medium text-slate-200">Motion Blur</div>
<div className="text-xs font-medium text-slate-200">Shadow</div> <Switch
<span className="text-[10px] text-slate-400 font-mono">{Math.round(shadowIntensity * 100)}%</span> checked={motionBlurEnabled}
</div> onCheckedChange={onMotionBlurChange}
<Slider className="data-[state=checked]:bg-[#34B27B]"
value={[shadowIntensity]}
onValueChange={(values) => onShadowChange?.(values[0])}
min={0}
max={1}
step={0.01}
className="w-full [&_[role=slider]]:bg-[#34B27B] [&_[role=slider]]:border-[#34B27B]"
/> />
</div> </div>
{/* Blur Background Switch */} {/* Blur Background Switch */}
@@ -238,13 +232,19 @@ export function SettingsPanel({ selected, onWallpaperChange, selectedZoomDepth,
<div className="mb-6"> <div className="mb-6">
<div className="grid grid-cols-2 gap-3"> <div className="grid grid-cols-2 gap-3">
{/* Motion Blur Switch */} {/* Drop Shadow Slider */}
<div className="flex items-center justify-between p-3 rounded-xl bg-white/5 border border-white/5"> <div className="p-3 rounded-xl bg-white/5 border border-white/5 space-y-2">
<div className="text-xs font-medium text-slate-200">Motion Blur</div> <div className="flex items-center justify-between">
<Switch <div className="text-xs font-medium text-slate-200">Shadow</div>
checked={motionBlurEnabled} <span className="text-[10px] text-slate-400 font-mono">{Math.round(shadowIntensity * 100)}%</span>
onCheckedChange={onMotionBlurChange} </div>
className="data-[state=checked]:bg-[#34B27B]" <Slider
value={[shadowIntensity]}
onValueChange={(values) => onShadowChange?.(values[0])}
min={0}
max={1}
step={0.01}
className="w-full [&_[role=slider]]:bg-[#34B27B] [&_[role=slider]]:border-[#34B27B]"
/> />
</div> </div>
{/* Corner Roundness Slider */} {/* Corner Roundness Slider */}
+1 -1
View File
@@ -24,7 +24,7 @@ import {
} from "./types"; } from "./types";
import { VideoExporter, type ExportProgress } from "@/lib/exporter"; import { VideoExporter, type ExportProgress } from "@/lib/exporter";
const WALLPAPER_COUNT = 20; const WALLPAPER_COUNT = 18;
const WALLPAPER_PATHS = Array.from({ length: WALLPAPER_COUNT }, (_, i) => `/wallpapers/wallpaper${i + 1}.jpg`); const WALLPAPER_PATHS = Array.from({ length: WALLPAPER_COUNT }, (_, i) => `/wallpapers/wallpaper${i + 1}.jpg`);
export default function VideoEditor() { export default function VideoEditor() {