Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat(desktop): use brand swatches in captions and keyboard tabs
Richie McIlroy98df995667e2
diff --git a/apps/desktop/src/routes/editor/CaptionsTab.tsx b/apps/desktop/src/routes/editor/CaptionsTab.tsxindex 85d21084c..abe941bc0 100644--- a/apps/desktop/src/routes/editor/CaptionsTab.tsx+++ b/apps/desktop/src/routes/editor/CaptionsTab.tsx@@ -16,6 +16,7 @@ import toast from "solid-toast";import { Toggle } from "~/components/Toggle";import Tooltip from "~/components/Tooltip";import { defaultCaptionSettings } from "~/store/captions";+import type { OrganizationBrandColorSwatch } from "~/utils/organization-branding";import type { CaptionSettings } from "~/utils/tauri";import { commands, events } from "~/utils/tauri";import IconCapChevronDown from "~icons/cap/chevron-down";@@ -132,7 +133,9 @@ const LANGUAGE_OPTIONS: LanguageOption[] = [{ code: "ta", label: "Tamil" },];-export function CaptionsTab() {+export function CaptionsTab(props: {+ brandColorSwatches: OrganizationBrandColorSwatch[];+}) {const { project, setProject, editorInstance, editorState, setEditorState } =useEditorContext();@@ -763,6 +766,7 @@ export function CaptionsTab() {<span class="text-gray-11 text-sm">Text Color</span><HexColorInputvalue={getSetting("color")}+ brandColorSwatches={props.brandColorSwatches}onChange={(value) => updateCaptionSetting("color", value)}/></div>@@ -775,6 +779,7 @@ export function CaptionsTab() {<span class="text-gray-11 text-sm">Background Color</span><HexColorInputvalue={getSetting("backgroundColor")}+ brandColorSwatches={props.brandColorSwatches}onChange={(value) =>updateCaptionSetting("backgroundColor", value)}@@ -856,6 +861,7 @@ export function CaptionsTab() {<span class="text-gray-11 text-sm">Highlight Color</span><HexColorInputvalue={getSetting("highlightColor")}+ brandColorSwatches={props.brandColorSwatches}onChange={(value) =>updateCaptionSetting("highlightColor", value)}diff --git a/apps/desktop/src/routes/editor/KeyboardTab.tsx b/apps/desktop/src/routes/editor/KeyboardTab.tsxindex 6bc74d888..00dd0ad29 100644--- a/apps/desktop/src/routes/editor/KeyboardTab.tsx+++ b/apps/desktop/src/routes/editor/KeyboardTab.tsx@@ -7,6 +7,7 @@ import {defaultKeyboardSettings,type KeyboardSettings,} from "~/store/keyboard";+import type { OrganizationBrandColorSwatch } from "~/utils/organization-branding";import { commands } from "~/utils/tauri";import IconCapChevronDown from "~icons/cap/chevron-down";import IconCapCircleCheck from "~icons/cap/circle-check";@@ -29,7 +30,9 @@ import {topSlideAnimateClasses,} from "./ui";-export function KeyboardTab() {+export function KeyboardTab(props: {+ brandColorSwatches: OrganizationBrandColorSwatch[];+}) {const { project, setProject, editorState, setEditorState } =useEditorContext();@@ -204,6 +207,7 @@ export function KeyboardTab() {<span class="text-gray-11 text-sm">Text Color</span><HexColorInputvalue={getSetting("color")}+ brandColorSwatches={props.brandColorSwatches}onChange={(value) => updateSetting("color", value)}/></div>@@ -216,6 +220,7 @@ export function KeyboardTab() {<span class="text-gray-11 text-sm">Background Color</span><HexColorInputvalue={getSetting("backgroundColor")}+ brandColorSwatches={props.brandColorSwatches}onChange={(value) => updateSetting("backgroundColor", value)}/></div>