From b81353c128c54926d5139016f03ba7cfc5cad75b Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Tue, 9 May 2023 12:16:49 -0700 Subject: [PATCH] Add a setting to preserve custom font scaling setting --- settings/settings.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/settings/settings.go b/settings/settings.go index 69c38cf..0093544 100644 --- a/settings/settings.go +++ b/settings/settings.go @@ -56,6 +56,7 @@ type GlobalSettings struct { UseTorCache bool TorCacheDir string BlodeuweddPath string + FontScaling float64 } var DefaultGlobalSettings = GlobalSettings{ @@ -81,6 +82,7 @@ var DefaultGlobalSettings = GlobalSettings{ UseTorCache: false, TorCacheDir: "", BlodeuweddPath: "", + FontScaling: 1.0, // use the system pixel scaling default } func InitGlobalSettingsFile(directory string, password string) (*GlobalSettingsFile, error) {