Fyne API "app.SettingsSchema"

app.SettingsSchema


import "fyne.io/fyne/v2/app"

Usage

type SettingsSchema

type SettingsSchema struct {
	// these items are used for global settings load
	ThemeName         string  `json:"theme"`
	Scale             float32 `json:"scale"`
	PrimaryColor      string  `json:"primary_color"`
	CloudName         string  `json:"cloud_name"`
	CloudConfig       string  `json:"cloud_config"`
	DisableAnimations bool    `json:"no_animations"`
}

SettingsSchema is used for loading and storing global settings

func (*SettingsSchema) StoragePath

func (sc *SettingsSchema) StoragePath() string

StoragePath returns the location of the settings storage