-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
theme.go
44 lines (37 loc) · 1.8 KB
/
theme.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
35
36
37
38
39
40
41
42
43
44
package theme // import "fyne.io/fynedesk/theme"
import (
"image/color"
"fyne.io/fyne/theme"
)
var (
// PointerDefault is the standard pointer resource
PointerDefault = pointerDefault
// Background is the default background image
Background = lochFynePicture
// FyneAboutBackground is the image used as a background to the about screen
FyneAboutBackground = fyneAboutBackground
// BatteryIcon is the material design icon for battery in light and dark theme
BatteryIcon = theme.NewThemedResource(batteryIcon, nil)
// BrightnessIcon is the material design icon for brightness in light and dark theme
BrightnessIcon = theme.NewThemedResource(brightnessIcon, nil)
// UserIcon is the material design icon for a user in light and dark theme
UserIcon = theme.NewThemedResource(personIcon, nil)
// DisplayIcon is the material design icon for computer displays in light and dark theme
DisplayIcon = theme.NewThemedResource(displayIcon, nil)
// BrokenImageIcon is the material design icon for a broken image
BrokenImageIcon = theme.NewThemedResource(brokenImageIcon, nil)
// MaximizeIcon is the material design icon for maximizing a window
MaximizeIcon = theme.NewThemedResource(maximizeIcon, nil)
// IconifyIcon is the material design icon for minimizing a window
IconifyIcon = theme.NewThemedResource(iconifyIcon, nil)
// BorderWidth is the width of window frames
BorderWidth = 4
// ButtonWidth is the width of window buttons
ButtonWidth = 28
// TitleHeight is the height of a frame titleBar
TitleHeight = 28
// WidgetPanelBackgroundDark is the semi-transparent background matching the dark theme
WidgetPanelBackgroundDark = color.RGBA{0x42, 0x42, 0x42, 0x99}
// WidgetPanelBackgroundLight is the semi-transparent background matching the light theme
WidgetPanelBackgroundLight = color.RGBA{0xaa, 0xaa, 0xaa, 0xaa}
)