Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): keep terminal font settings reliable #5397

MergedStiensWout(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/5397/headmerged by juliusmarminge View on GitHub

Showing 6 changed files with 61 additions and 15 deletions (loading 3).

x
0 of 6 viewed, 6 left
20 additions and 10 deletionsapps/web/src/components/settings/SettingsPanels.tsxModified
View file
@@ -115,6 +115,8 @@
isFontFamilyAvailable,
isMonospaceFamily,
resolveDefaultFamilyLabel,
+ resolveTerminalFontPreference,
+ TYPOGRAPHY_ADVANCED_STORAGE_KEY,
} from "../../appearanceFonts";
import { CodeFontPreview, PromptFontPreview, TerminalFontPreview } from "./SettingsFontPreviews";
import { discoverInstalledFonts, FontFamilyPicker, useFontEnumeration } from "./FontFamilyPicker";
@@ -1151,10 +1153,8 @@
return {
sans: defaults.sans,
code: defaults.code,
- // The composer inherits whatever the interface preference resolves to;
- // the terminal inherits the monospace preference the same way.
+ // The composer inherits whatever the interface preference resolves to.
interfaceFamily: settings.fontFamilySans.trim() || defaults.sans,
- monoFamily: settings.fontFamilyCode.trim() || defaults.code,
@@ -1244,8 +1244,8 @@
return (
<FontFamilySettingsRow
{...searchableSetting("terminal-font")}
- description="Terminal output. Follows the monospace font unless set."
- defaultFamily={defaults.monoFamily}
+ description="Terminal output, independent from code blocks and diffs."