-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
settings.go
34 lines (29 loc) · 1.05 KB
/
settings.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package fyne
// BuildType defines different modes that an application can be built using.
type BuildType int
const (
// BuildStandard is the normal build mode - it is not debug, test or release mode.
BuildStandard BuildType = iota
// BuildDebug is used when a developer would like more information and visual output for app debugging.
BuildDebug
// BuildRelease is a final production build, it is like [BuildStandard] but will use distribution certificates.
// A release build is typically going to connect to live services and is not usually used during development.
BuildRelease
)
// Settings describes the application configuration available.
type Settings interface {
Theme() Theme
SetTheme(Theme)
// ThemeVariant defines which preferred version of a theme should be used (i.e. light or dark)
//
// Since: 2.0
ThemeVariant() ThemeVariant
Scale() float32
// PrimaryColor indicates a user preference for a named primary color
//
// Since: 1.4
PrimaryColor() string
AddChangeListener(chan Settings)
BuildType() BuildType
ShowAnimations() bool
}