-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconvert.go
107 lines (81 loc) · 2.05 KB
/
convert.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
package prettyfyne
import (
"fyne.io/fyne"
"image/color"
)
// customTheme wraps a PrettyTheme and provides the fyne.Theme interface
type customTheme struct {
pt *PrettyTheme
}
func (c customTheme) BackgroundColor() color.Color {
return c.pt.BackgroundColor
}
func (c customTheme) ButtonColor() color.Color {
return c.pt.ButtonColor
}
func (c customTheme) DisabledButtonColor() color.Color {
return c.pt.DisabledButtonColor
}
func (c customTheme) HyperlinkColor() color.Color {
return c.pt.HyperlinkColor
}
func (c customTheme) TextColor() color.Color {
return c.pt.TextColor
}
func (c customTheme) DisabledTextColor() color.Color {
return c.pt.DisabledTextColor
}
func (c customTheme) IconColor() color.Color {
return c.pt.IconColor
}
func (c customTheme) DisabledIconColor() color.Color {
return c.pt.DisabledIconColor
}
func (c customTheme) PlaceHolderColor() color.Color {
return c.pt.PlaceHolderColor
}
func (c customTheme) PrimaryColor() color.Color {
return c.pt.PrimaryColor
}
func (c customTheme) HoverColor() color.Color {
return c.pt.HoverColor
}
func (c customTheme) FocusColor() color.Color {
return c.pt.FocusColor
}
func (c customTheme) ScrollBarColor() color.Color {
return c.pt.ScrollBarColor
}
func (c customTheme) ShadowColor() color.Color {
return c.pt.ShadowColor
}
func (c customTheme) TextSize() int {
return c.pt.TextSize
}
func (c customTheme) TextFont() fyne.Resource {
return c.pt.TextFont
}
func (c customTheme) TextBoldFont() fyne.Resource {
return c.pt.TextBoldFont
}
func (c customTheme) TextItalicFont() fyne.Resource {
return c.pt.TextItalicFont
}
func (c customTheme) TextBoldItalicFont() fyne.Resource {
return c.pt.TextBoldItalicFont
}
func (c customTheme) TextMonospaceFont() fyne.Resource {
return c.pt.TextMonospaceFont
}
func (c customTheme) Padding() int {
return c.pt.Padding
}
func (c customTheme) IconInlineSize() int {
return c.pt.IconInlineSize
}
func (c customTheme) ScrollBarSize() int {
return c.pt.ScrollBarSize
}
func (c customTheme) ScrollBarSmallSize() int {
return c.pt.ScrollBarSmallSize
}