1 package etk
2
3 import (
4 "image/color"
5
6 "golang.org/x/image/font/sfnt"
7 )
8
9 var transparent = color.RGBA{0, 0, 0, 0}
10
11
12 type Attributes struct {
13 TextFont *sfnt.Font
14 TextSize int
15
16 TextColorLight color.RGBA
17 TextColorDark color.RGBA
18
19 TextBgColor color.RGBA
20
21 BorderSize int
22
23 BorderColorTop color.RGBA
24 BorderColorRight color.RGBA
25 BorderColorBottom color.RGBA
26 BorderColorLeft color.RGBA
27
28 ScrollAreaColor color.RGBA
29 ScrollHandleColor color.RGBA
30
31 ScrollBorderSize int
32
33 ScrollBorderColorTop color.RGBA
34 ScrollBorderColorRight color.RGBA
35 ScrollBorderColorBottom color.RGBA
36 ScrollBorderColorLeft color.RGBA
37
38 InputBgColor color.RGBA
39
40 ButtonTextColor color.RGBA
41 ButtonBgColor color.RGBA
42 ButtonBgColorDisabled color.RGBA
43 }
44
45
46 var Style = &Attributes{
47 TextSize: 32,
48
49 TextColorLight: color.RGBA{255, 255, 255, 255},
50 TextColorDark: color.RGBA{0, 0, 0, 255},
51
52 TextBgColor: transparent,
53
54 BorderSize: 4,
55
56 BorderColorTop: color.RGBA{220, 220, 220, 255},
57 BorderColorRight: color.RGBA{0, 0, 0, 255},
58 BorderColorBottom: color.RGBA{0, 0, 0, 255},
59 BorderColorLeft: color.RGBA{220, 220, 220, 255},
60
61 ScrollAreaColor: color.RGBA{200, 200, 200, 255},
62 ScrollHandleColor: color.RGBA{108, 108, 108, 255},
63
64 ScrollBorderSize: 2,
65
66 ScrollBorderColorTop: color.RGBA{240, 240, 240, 255},
67 ScrollBorderColorRight: color.RGBA{0, 0, 0, 255},
68 ScrollBorderColorBottom: color.RGBA{0, 0, 0, 255},
69 ScrollBorderColorLeft: color.RGBA{240, 240, 240, 255},
70
71 InputBgColor: color.RGBA{0, 128, 0, 255},
72
73 ButtonBgColor: color.RGBA{255, 255, 255, 255},
74 ButtonBgColorDisabled: color.RGBA{110, 110, 110, 255},
75 }
76
View as plain text