diff options
| author | David Hill <[email protected]> | 2026-01-20 17:11:32 +0000 |
|---|---|---|
| committer | David Hill <[email protected]> | 2026-01-20 20:34:44 +0000 |
| commit | f9c951aa8b6ca0010d63956e12ac7875ec3fa7d4 (patch) | |
| tree | aa1e50f2db30befb4f248eea651769c02b98de90 /packages | |
| parent | 78bcbda2fa4469586a93ed16b1085049c9f32970 (diff) | |
| download | opencode-f9c951aa8b6ca0010d63956e12ac7875ec3fa7d4.tar.gz opencode-f9c951aa8b6ca0010d63956e12ac7875ec3fa7d4.zip | |
render font options in their respective fonts
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/app/src/components/settings-general.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/app/src/components/settings-general.tsx b/packages/app/src/components/settings-general.tsx index c1b53fd3f..2a8e1d720 100644 --- a/packages/app/src/components/settings-general.tsx +++ b/packages/app/src/components/settings-general.tsx @@ -2,7 +2,7 @@ import { Component, createMemo, type JSX } from "solid-js" import { Select } from "@opencode-ai/ui/select" import { Switch } from "@opencode-ai/ui/switch" import { useTheme, type ColorScheme } from "@opencode-ai/ui/theme" -import { useSettings } from "@/context/settings" +import { useSettings, monoFontFamily } from "@/context/settings" import { playSound, SOUND_OPTIONS } from "@/utils/sound" export const SettingsGeneral: Component = () => { @@ -100,7 +100,9 @@ export const SettingsGeneral: Component = () => { onSelect={(option) => option && settings.appearance.setFont(option.value)} variant="secondary" size="small" - /> + > + {(option) => <span style={{ "font-family": monoFontFamily(option?.value) }}>{option?.label}</span>} + </Select> </SettingsRow> </div> </div> |
