Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

style(desktop): restyle export button in editor header

Richie McIlroyaf08b3e08fca
diff --git a/apps/desktop/src/routes/editor/Header.tsx b/apps/desktop/src/routes/editor/Header.tsx
index 31acd2f0b..6bace6a22 100644
--- a/apps/desktop/src/routes/editor/Header.tsx
+++ b/apps/desktop/src/routes/editor/Header.tsx
@@ -223,9 +223,16 @@ export function Header() {
{isTranscriptOpen() ? "Back" : "Transcript"}
</Button>
</Show>
- <Button
- variant="blue"
- class="flex gap-1.5 justify-center h-[40px] w-full max-w-[100px]"
+ <button
+ type="button"
+ class={cx(
+ "flex gap-1.5 justify-center items-center px-4 w-full h-[40px] max-w-[100px] text-[0.8125rem] font-medium text-white rounded-xl outline-hidden",
+ "bg-linear-to-b from-[#3b82f6] to-[#2563eb]",
+ "shadow-[0_4px_14px_-6px_rgba(37,99,235,0.5),inset_0_1px_0_0_rgba(255,255,255,0.22)]",
+ "transition-[box-shadow,filter] duration-200 ease-out",
+ "hover:brightness-[1.08] hover:shadow-[0_8px_22px_-8px_rgba(37,99,235,0.6),inset_0_1px_0_0_rgba(255,255,255,0.28)]",
+ "active:brightness-95",
+ )}
onClick={() => {
clearTimelineSelection();
@@ -237,7 +244,7 @@ export function Header() {
>
<UploadIcon class="size-4" />
Export
- </Button>
+ </button>
{ostype() === "windows" && <CaptionControlsWindows11 />}
</div>
</div>