forked from fyne-io/fyne
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.go
36 lines (32 loc) · 965 Bytes
/
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
package fyne
import "image/color"
// Theme defines the requirements of any Fyne theme.
type Theme interface {
BackgroundColor() color.Color
ButtonColor() color.Color
DisabledButtonColor() color.Color
// Deprecated: Hyperlinks now use the primary color for consistency.
HyperlinkColor() color.Color
TextColor() color.Color
DisabledTextColor() color.Color
// Deprecated: Icons now use the text colour for consistency.
IconColor() color.Color
// Deprecated: Disabled icons match disabled text color for consistency.
DisabledIconColor() color.Color
PlaceHolderColor() color.Color
PrimaryColor() color.Color
HoverColor() color.Color
FocusColor() color.Color
ScrollBarColor() color.Color
ShadowColor() color.Color
TextSize() int
TextFont() Resource
TextBoldFont() Resource
TextItalicFont() Resource
TextBoldItalicFont() Resource
TextMonospaceFont() Resource
Padding() int
IconInlineSize() int
ScrollBarSize() int
ScrollBarSmallSize() int
}