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
feat(editor): make wallpaper 11 the default and first in the picker
EtienneLescotc06dcd8e499a
diff --git a/src/components/video-editor/projectPersistence.test.ts b/src/components/video-editor/projectPersistence.test.tsindex 14b6f06bb..87fb22ca0 100644--- a/src/components/video-editor/projectPersistence.test.ts+++ b/src/components/video-editor/projectPersistence.test.ts@@ -1,5 +1,6 @@import { describe, expect, it } from "vitest";import { DEFAULT_CURSOR_THEME_ID } from "@/lib/cursor/cursorThemes";+import { DEFAULT_WALLPAPER } from "@/lib/wallpaper";import {createProjectData,createProjectSnapshot,@@ -320,6 +321,6 @@ describe("wallpaper legacy normalization", () => {const normalized = normalizeProjectEditor({wallpaper: "file:///opt/Openscreen/resources/wallpapers/wallpaper99.jpg",});- expect(normalized.wallpaper).toBe("/wallpapers/wallpaper1.jpg");+ expect(normalized.wallpaper).toBe(DEFAULT_WALLPAPER);});});diff --git a/src/lib/projectDefaults.ts b/src/lib/projectDefaults.tsindex c973b2be8..f5c9e246b 100644--- a/src/lib/projectDefaults.ts+++ b/src/lib/projectDefaults.ts@@ -205,7 +205,7 @@ export interface ProjectAppearanceDefaults {/** The factory appearance every new project starts from. */export const DEFAULT_PROJECT_APPEARANCE: ProjectAppearanceDefaults = {- wallpaper: "/wallpapers/wallpaper1.jpg",+ wallpaper: "/wallpapers/wallpaper11.jpg",wallpaperMotion: "none",frame: "none",frameTheme: "light",@@ -227,7 +227,7 @@ export const DEFAULT_PROJECT_APPEARANCE: ProjectAppearanceDefaults = {webcamSizePreset: 25,webcamAnchor: "bottom-right",webcamBackgroundMode: "none",- webcamWallpaper: "/wallpapers/wallpaper1.jpg",+ webcamWallpaper: "/wallpapers/wallpaper11.jpg",webcamBlurIntensity: 0.5,cursor: {size: 3,diff --git a/src/lib/wallpaper.ts b/src/lib/wallpaper.tsindex 6a2b0b067..5bf57e2d2 100644--- a/src/lib/wallpaper.ts+++ b/src/lib/wallpaper.ts@@ -2,9 +2,12 @@ import { getAssetPath } from "@/lib/assetPath";export const WALLPAPER_COUNT = 18;-export const WALLPAPER_PATHS: readonly string[] = Array.from(- { length: WALLPAPER_COUNT },- (_, i) => `/wallpapers/wallpaper${i + 1}.jpg`,+// Picker order, by file number. The first is the default; files keep their names so saved+// projects still resolve. 2 sits away from 11, the two look almost alike side by side.+const WALLPAPER_ORDER = [11, 1, 3, 4, 5, 6, 7, 8, 9, 10, 2, 12, 13, 14, 15, 16, 17, 18];++export const WALLPAPER_PATHS: readonly string[] = WALLPAPER_ORDER.map(+ (n) => `/wallpapers/wallpaper${n}.jpg`,);// Small (96x96, ~1-3KB: three times the ~30px swatch) pre-generated copies used ONLY for the picker grid's swatches — the@@ -12,9 +15,8 @@ export const WALLPAPER_PATHS: readonly string[] = Array.from(// what actually gets rendered/exported. Without this the grid was decoding all 18 originals// (~20MB combined) simultaneously just to paint a few dozen px each (reported: picker felt slow// to load).-export const WALLPAPER_THUMB_PATHS: readonly string[] = Array.from(- { length: WALLPAPER_COUNT },- (_, i) => `/wallpapers/thumbs/wallpaper${i + 1}.jpg`,+export const WALLPAPER_THUMB_PATHS: readonly string[] = WALLPAPER_ORDER.map(+ (n) => `/wallpapers/thumbs/wallpaper${n}.jpg`,);export const DEFAULT_WALLPAPER = WALLPAPER_PATHS[0];diff --git a/src/native/sceneDescription.test.ts b/src/native/sceneDescription.test.tsindex a71d3bb2f..153a48947 100644--- a/src/native/sceneDescription.test.ts+++ b/src/native/sceneDescription.test.ts@@ -279,7 +279,7 @@ describe("buildSceneDescription.webcamEffect", () => {expect(buildSceneDescription(doc).webcamEffect).toEqual({mode: "blur",blurIntensity: 0.85,- background: { kind: "image", path: "/wallpapers/wallpaper1.jpg" },+ background: { kind: "image", path: "/wallpapers/wallpaper11.jpg" },});});