Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(chrome-extension): add countdown and mic warning options controls

Richie McIlroy7079afecb352
diff --git a/apps/chrome-extension/src/options/main.tsx b/apps/chrome-extension/src/options/main.tsx
index 6f9fe7a14..05a5d1ad0 100644
--- a/apps/chrome-extension/src/options/main.tsx
+++ b/apps/chrome-extension/src/options/main.tsx
@@ -492,6 +492,26 @@ function App() {
<option value="full">Full</option>
</select>
</label>
+ <label className="field">
+ <span>Countdown</span>
+ <select
+ value={String(settings.countdown.seconds)}
+ disabled={!settings.countdown.enabled}
+ onChange={(event) =>
+ setSettings({
+ ...settings,
+ countdown: {
+ ...settings.countdown,
+ seconds: Number(event.currentTarget.value),
+ },
+ })
+ }
+ >
+ <option value="3">3 seconds</option>
+ <option value="5">5 seconds</option>
+ <option value="10">10 seconds</option>
+ </select>
+ </label>
</div>
<div className="checks">
<DoodleCheckbox
@@ -546,6 +566,32 @@ function App() {
})
}
/>
+ <DoodleCheckbox
+ label="Show countdown before recording"
+ checked={settings.countdown.enabled}
+ onChange={(checked) =>
+ setSettings({
+ ...settings,
+ countdown: {
+ ...settings.countdown,
+ enabled: checked,
+ },
+ })
+ }
+ />
+ <DoodleCheckbox
+ label="Warn about microphone issues"
+ checked={settings.microphoneWarning.enabled}
+ onChange={(checked) =>
+ setSettings({
+ ...settings,
+ microphoneWarning: {
+ ...settings.microphoneWarning,
+ enabled: checked,
+ },
+ })
+ }
+ />
<DoodleCheckbox
label="Mirror webcam"
checked={settings.webcam.mirror}