Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): configurable fonts and sizes under Settings → Appearance #5103

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

Showing 26 changed files with 13 additions and 0 deletions (loading 23).

x
0 of 26 viewed, 26 left
4 additions and 0 deletionsapps/desktop/src/preview/BrowserSession.tsModified
View file
@@ -23,6 +23,10 @@
"clipboard-sanitized-write",
"notifications",
"geolocation",
+ // Deliberately NOT local-fonts: preview sessions run untrusted web content,
+ // and silently granting it would hand every page the user's installed-font
+ // fingerprint (and font file bytes via FontData.blob()). The app's own font
+ // picker runs in the main window session, which is unaffected by this list.
]);
​
export class BrowserSessionPartitionDerivationError extends Schema.TaggedErrorClass<BrowserSessionPartitionDerivationError>()(
9 additions and 0 deletionsapps/desktop/src/settings/DesktopClientSettings.test.tsModified
View file
@@ -20,6 +20,15 @@
diffIgnoreWhitespace: true,
environmentIdentificationMode: "artwork",
favorites: [],
+ fontFamilyCode: "",
+ fontFamilyComposer: "",
+ fontFamilySans: "",
+ fontFamilyTerminal: "",
+ fontSizeCode: 13,
+ fontSizeInterface: 16,
+ fontSizePrompt: 14,
+ fontSizeTerminal: 12,
+ fontSmoothing: true,
glassOpacity: 80,
providerModelPreferences: {},