Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix: Improved bg/image tab selector
Richie McIlroy818a0ad1e9e2
diff --git a/apps/desktop/src/routes/editor/ConfigSidebar.tsx b/apps/desktop/src/routes/editor/ConfigSidebar.tsxindex 18af9401e..2150e216b 100644--- a/apps/desktop/src/routes/editor/ConfigSidebar.tsx+++ b/apps/desktop/src/routes/editor/ConfigSidebar.tsx@@ -367,27 +367,51 @@ export function ConfigSidebar() {switch (tab) {case "image": {setProject("background", "source", {- ...backgrounds.image,+ type: "image",+ path:+ project.background.source.type === "image"+ ? project.background.source.path+ : null,});- return;+ break;}case "color": {setProject("background", "source", {- ...backgrounds.color,+ type: "color",+ value:+ project.background.source.type === "color"+ ? project.background.source.value+ : DEFAULT_GRADIENT_FROM,});- return;+ break;}case "gradient": {setProject("background", "source", {- ...backgrounds.gradient,+ type: "gradient",+ from:+ project.background.source.type === "gradient"+ ? project.background.source.from+ : DEFAULT_GRADIENT_FROM,+ to:+ project.background.source.type === "gradient"+ ? project.background.source.to+ : DEFAULT_GRADIENT_TO,+ angle:+ project.background.source.type === "gradient"+ ? project.background.source.angle+ : 90,});- return;+ break;}case "wallpaper": {setProject("background", "source", {- ...backgrounds.wallpaper,+ type: "wallpaper",+ path:+ project.background.source.type === "wallpaper"+ ? project.background.source.path+ : null,});- return;+ break;}}}}@@ -576,8 +600,8 @@ export function ConfigSidebar() {type="button"onClick={() =>setProject("background", "source", {- type: "color",- value: [255, 255, 255],+ type: "image",+ path: null,})}class="bg-black/50 text-white p-2 rounded-full hover:bg-black/70 transition-colors"