Merge pull request 'Add a setting to preserve custom font scaling setting' (#514) from font-setting into master
continuous-integration/drone/push Build is pending
Details
continuous-integration/drone/push Build is pending
Details
Reviewed-on: #514 Reviewed-by: Dan Ballard <dan@openprivacy.ca>
This commit is contained in:
commit
50cca925de
|
@ -56,6 +56,7 @@ type GlobalSettings struct {
|
||||||
UseTorCache bool
|
UseTorCache bool
|
||||||
TorCacheDir string
|
TorCacheDir string
|
||||||
BlodeuweddPath string
|
BlodeuweddPath string
|
||||||
|
FontScaling float64
|
||||||
}
|
}
|
||||||
|
|
||||||
var DefaultGlobalSettings = GlobalSettings{
|
var DefaultGlobalSettings = GlobalSettings{
|
||||||
|
@ -81,6 +82,7 @@ var DefaultGlobalSettings = GlobalSettings{
|
||||||
UseTorCache: false,
|
UseTorCache: false,
|
||||||
TorCacheDir: "",
|
TorCacheDir: "",
|
||||||
BlodeuweddPath: "",
|
BlodeuweddPath: "",
|
||||||
|
FontScaling: 1.0, // use the system pixel scaling default
|
||||||
}
|
}
|
||||||
|
|
||||||
func InitGlobalSettingsFile(directory string, password string) (*GlobalSettingsFile, error) {
|
func InitGlobalSettingsFile(directory string, password string) (*GlobalSettingsFile, error) {
|
||||||
|
|
Loading…
Reference in New Issue