-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Settings API
To provide a clean and consistent API for settings and storage we need to be clear about what is application local (user preferences) vs global (system settings). Also some things can be set by environment variables to override settings.
Get(key):value access a user configuration that was stored previously.
Set(key, value) would allow an application to store a user configuration for later access.
Typed versions (like GetFloat or SetBool) could improve the API.
We should support complex types as well - see JSON or XML marshalling for potential inspiration.
A place where an application can get storage access information / functions
The correct location to cache documents or assets that you don't want to keep in memory.
A place where the application can store user documents - within the standard user documents directory.
The user can set their preferred theme that will apply to applications if they don't override.
It can be overridden by the user with FYNE_THEME
. It can also be set by the application if the developer wants to use a custom theme.