Add a setting to preserve custom font scaling setting #514

Merged
sarah merged 1 commits from font-setting into master 2023-05-09 19:43:52 +00:00
1 changed files with 2 additions and 0 deletions

View File

@ -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) {