Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Move dark mode to top of settings
Richie McIlroyabb843c1479f
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/general.tsx b/apps/desktop/src/routes/(window-chrome)/settings/general.tsxindex f2081b3c5..e4f6ebec4 100644--- a/apps/desktop/src/routes/(window-chrome)/settings/general.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings/general.tsx@@ -18,6 +18,15 @@ const settingsList: Array<{pro?: boolean;onChange?: (value: boolean) => Promise<void>;}> = [+ {+ key: "darkMode",+ label: "Dark Mode",+ description:+ "Switch between light and dark theme for the application interface.",+ onChange: async () => {+ await themeStore.toggleTheme();+ },+ },{key: "uploadIndividualFiles",label: "Upload individual recording files when creating shareable link",@@ -58,14 +67,6 @@ const settingsList: Array<{"Show system notifications for events like copying to clipboard, saving files, and more. You may need to manually allow Cap access via your system's notification settings.",requiresPermission: true,},- {- key: "darkMode",- label: "Dark Mode",- description: "Switch between light and dark theme for the application interface.",- onChange: async () => {- await themeStore.toggleTheme();- },- },];export default function GeneralSettings() {@@ -115,7 +116,7 @@ function Inner(props: { initialStore: GeneralSettingsStore | null }) {// Find the setting once and store itconst setting = settingsList.find((s) => s.key === key);-+// If setting exists and has onChange handler, call itif (setting?.onChange) {await setting.onChange(value);@@ -189,7 +190,9 @@ function Inner(props: { initialStore: GeneralSettingsStore | null }) {</button></div>{setting.description && (- <p class="text-xs text-[--text-tertiary]">{setting.description}</p>+ <p class="text-xs text-[--text-tertiary]">+ {setting.description}+ </p>)}</div></Show>