-
-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathsettings.go
More file actions
37 lines (31 loc) · 999 Bytes
/
Copy pathsettings.go
File metadata and controls
37 lines (31 loc) · 999 Bytes
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
35
36
37
package tyde
import "fyne.io/fyne/v2"
// The types of computer that Tyde can be configured for.
const (
// ComputerDesktop is a machine with no battery and no touch screen.
ComputerDesktop = "Desktop"
// ComputerLaptop is a portable computer - it has a battery, but is driven
// with a keyboard and pointer.
ComputerLaptop = "Laptop"
// ComputerTablet is a mobile computer - a battery and a touch screen.
ComputerTablet = "Tablet"
)
// DeskSettings describes the configuration options available for Fyne desktop
type DeskSettings interface {
Background() string
BackgroundFill() string
BackgroundColor() string
IconTheme() string
BorderButtonPosition() string
ClockFormatting() string
ComputerType() string
NarrowWidgetPanel() bool
LauncherIcons() []string
LauncherDisableTaskbar() bool
KeyboardModifier() fyne.KeyModifier
ModuleNames() []string
ScreenSaverType() string
ScreenSaverClock() bool
ScreenSaverLabel() string
AddChangeListener(listener func(DeskSettings))
}