Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

fix(video): recess the frame padding so it stops reading as a border

Luis Ortizd0f838f1d8b6
diff --git a/src/core/export/video-export.ts b/src/core/export/video-export.ts
index 788ebf6..6d10eea 100644
--- a/src/core/export/video-export.ts
+++ b/src/core/export/video-export.ts
@@ -6,6 +6,7 @@ import { loadExportOptions } from '@/core/export/options';
import { extractDomain, formatDate } from '@/core/export/utils';
import {
FPS,
+ FRAME_FILL,
FRAME_HEIGHT,
FRAME_WIDTH,
pickContainer,
@@ -813,7 +814,7 @@ export async function exportGuideAsVideo(
releaseBefore(outgoing >= 0 ? outgoing : index);
ctx.globalAlpha = 1;
- ctx.fillStyle = BACKDROP;
+ ctx.fillStyle = FRAME_FILL;
ctx.fillRect(0, 0, FRAME_WIDTH, FRAME_HEIGHT);
if (previous) {
diff --git a/src/core/export/video-support.ts b/src/core/export/video-support.ts
index 7a6f089..99e2f3f 100644
--- a/src/core/export/video-support.ts
+++ b/src/core/export/video-support.ts
@@ -3,6 +3,8 @@ import type { VideoResolution } from '@/core/export/options';
export const FRAME_WIDTH = 1280;
export const FRAME_HEIGHT = 720;
+export const FRAME_FILL = '#0B0A1F';
+
export const FPS = 30;
export const STEP_ZOOMED_OUT_SEC = 1.5;
export const STEP_ZOOM_TRANSITION_SEC = 0.73;
diff --git a/src/ui/fullview/VideoStepPlayer.tsx b/src/ui/fullview/VideoStepPlayer.tsx
index b678bfc..4e931d3 100644
--- a/src/ui/fullview/VideoStepPlayer.tsx
+++ b/src/ui/fullview/VideoStepPlayer.tsx
@@ -10,6 +10,7 @@ import { ChevronLeft, ChevronRight, Maximize, Minimize, Pause, Play } from 'luci
import { useEffect, useRef } from 'react';
import { i18n } from '#imports';
import type { StepKind, VideoChapter } from '@/core/export/video-export';
+import { FRAME_FILL } from '@/core/export/video-support';
const RATES = [1, 1.25, 1.5, 2];
@@ -54,7 +55,7 @@ function StepList({
}, [index]);
return (
- <aside ref={list} className="w-[228px] shrink-0 overflow-y-auto border-l border-white/10 bg-[#141232]">
+ <aside ref={list} className="w-[228px] shrink-0 overflow-y-auto border-l border-white/10 bg-deep">
<div className="px-3 pb-2 pt-3 font-mono text-[9px] uppercase tracking-[0.1em] text-white/45">
{i18n.t('videoPlayer.stepCount', [String(chapters.length)])}
</div>
@@ -153,7 +154,8 @@ export default function VideoStepPlayer({ src, chapters }: VideoStepPlayerProps)
load="eager"
viewType="video"
streamType="on-demand"
- className="flex size-full bg-[#0E0C28]"
+ className="flex size-full"
+ style={{ backgroundColor: FRAME_FILL }}
>
<PlayerBody chapters={chapters} />
</MediaPlayer>