Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

style(editor): outline animated gradient palette previews

Richie McIlroy6e57142bc53b
diff --git a/apps/desktop-gpui/src/editor_sidebar/animated_gradient.rs b/apps/desktop-gpui/src/editor_sidebar/animated_gradient.rs
index a450e8603..2e9256356 100644
--- a/apps/desktop-gpui/src/editor_sidebar/animated_gradient.rs
+++ b/apps/desktop-gpui/src/editor_sidebar/animated_gradient.rs
@@ -906,6 +906,8 @@ impl EditorWindow {
.id(SharedString::from(format!("animated-gradient-preset-{id}")))
.size_full()
.rounded(px(8.))
+ .border_1()
+ .border_color(Hsla::from(theme.editor.line))
.cursor_pointer()
.selection_ring(Hsla::from(theme.editor.card), theme.editor.accent, selected)
.when(!selected, |this| this.hover(|this| this.opacity(0.8)))
diff --git a/apps/desktop/src/routes/editor/AnimatedGradientEditor.tsx b/apps/desktop/src/routes/editor/AnimatedGradientEditor.tsx
index 3e653f0f3..c566131da 100644
--- a/apps/desktop/src/routes/editor/AnimatedGradientEditor.tsx
+++ b/apps/desktop/src/routes/editor/AnimatedGradientEditor.tsx
@@ -364,7 +364,7 @@ export function AnimatedGradientEditor(props: {
};
const swatchClass =
- "aspect-square w-full rounded-lg ring-offset-2 ring-offset-ed-card transition-all duration-200 hover:scale-105 hover:opacity-80";
+ "aspect-square w-full rounded-lg border border-ed-line ring-offset-2 ring-offset-ed-card transition-all duration-200 hover:scale-105 hover:opacity-80";
return (
<Show when={config()}>