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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
style "notebook_tab_label"
{
fg[ACTIVE] = @fg_color
}
style "notebook"
{
xthickness = 5
ythickness = 2
engine "pixmap"
{
image
{
function = EXTENSION
state = ACTIVE
file = "../assets/tab-bottom-inactive.png"
border = { 3,3,3,3 }
stretch = TRUE
gap_side = TOP
}
image
{
function = EXTENSION
state = ACTIVE
file = "../assets/tab-top-inactive.png"
border = { 3,3,3,3 }
stretch = TRUE
gap_side = BOTTOM
}
image
{
function = EXTENSION
state = ACTIVE
file = "../assets/tab-left-inactive.png"
border = { 3,3,3,3 }
stretch = TRUE
gap_side = RIGHT
}
image
{
function = EXTENSION
state = ACTIVE
file = "../assets/tab-right-inactive.png"
border = { 3,3,3,3 }
stretch = TRUE
gap_side = LEFT
}
image
{
function = EXTENSION
file = "../assets/tab-top-active.png"
border = { 3,3,3,3 }
stretch = TRUE
gap_side = BOTTOM
}
image
{
function = EXTENSION
file = "../assets/tab-bottom-active.png"
border = { 3,3,3,3 }
stretch = TRUE
gap_side = TOP
}
image
{
function = EXTENSION
file = "../assets/tab-left-active.png"
border = { 3,3,3,3 }
stretch = TRUE
gap_side = RIGHT
}
image
{
function = EXTENSION
file = "../assets/tab-right-active.png"
border = { 3,3,3,3 }
stretch = TRUE
gap_side = LEFT
}
# How to draw boxes with a gap on one side (ie the page of a notebook)
image
{
function = BOX_GAP
file = "../assets/notebook-frame-top.png"
border = { 4, 4, 4, 4 }
stretch = TRUE
gap_file = "../assets/notebook-gap-horizontal.png"
gap_border = { 1, 1, 0, 0 }
gap_side = TOP
}
image
{
function = BOX_GAP
file = "../assets/notebook-frame-bottom.png"
border = { 4, 4, 4, 4 }
stretch = TRUE
gap_file = "../assets/notebook-gap-horizontal.png"
gap_border = { 1, 1, 0, 0 }
gap_side = BOTTOM
}
image
{
function = BOX_GAP
file = "../assets/notebook-frame-top.png"
border = { 4, 4, 4, 4 }
stretch = TRUE
gap_file = "../assets/notebook-gap-vertical.png"
gap_border = { 0, 0, 1, 1 }
gap_side = LEFT
}
image
{
function = BOX_GAP
file = "../assets/notebook-frame-right.png"
border = { 4, 4, 4, 4 }
stretch = TRUE
gap_file = "../assets/notebook-gap-vertical.png"
gap_border = { 0, 0, 1, 1 }
gap_side = RIGHT
}
# How to draw the box of a notebook when it isnt attached to a tab
image
{
function = BOX
file = "../assets/frame.png"
border = { 4, 4, 4, 4 }
stretch = TRUE
}
}
}
|