This repository was archived by the owner on Jul 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCFThemes.bas
More file actions
210 lines (132 loc) · 3.94 KB
/
CFThemes.bas
File metadata and controls
210 lines (132 loc) · 3.94 KB
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
B4J=true
Group=Cuppy Framework\Cuppy\Cuppy Internals
ModulesStructureVersion=1
Type=Class
Version=5.51
@EndOfDesignText@
'Cascading styles and theming for Material UI
'This defines all the themes available
Private Sub Class_Globals
End Sub
'Initializes the object.
Public Sub Initialize
End Sub
'Return a map of available themes
Public Sub ThemesList() As Map
Private AvailableThemes As Map
AvailableThemes.Initialize
AvailableThemes.Put("Blue", BlueTheme)
AvailableThemes.Put("Teal", TealTheme)
#If Full
'Remove from Library if Free version
AvailableThemes.Put("Gray", GrayTheme)
AvailableThemes.Put("Dark", DarkTheme)
AvailableThemes.Put("Purple", PurpleTheme)
AvailableThemes.Put("Pink", PinkTheme)
AvailableThemes.Put("Amber", AmberTheme)
#End if
Return AvailableThemes
End Sub
#Region Themes Mappings
Private Sub BlueTheme As Map
Private Colors As Map 'use to store the colors we need
Colors.Initialize
'add colors
Colors.Put("primary","#2196F3")
Colors.Put("primary_dark","#1976D2")
Colors.Put("primary_light","#BBDEFB")
Colors.Put("accent","#FF4081")
Colors.Put("primary_text","#212121")
Colors.Put("secondary_text","#757575")
Colors.Put("icons","#FFFFFF")
Colors.Put("divider","#BDBDBD")
Return Colors
End Sub
Private Sub TealTheme As Map
Private Colors As Map 'use to store the colors we need
Colors.Initialize
'add colors
Colors.Put("primary","#009688")
Colors.Put("primary_dark","#00796B")
Colors.Put("primary_light","#B2DFDB")
Colors.Put("accent","#FF5722")
Colors.Put("primary_text","#212121")
Colors.Put("secondary_text","#757575")
Colors.Put("icons","#FFFFFF")
Colors.Put("divider","#BDBDBD")
Return Colors
End Sub
#If Full
'Remove from Library if Free version
Private Sub GrayTheme As Map
Private Colors As Map 'use to store the colors we need
Colors.Initialize
'add colors
Colors.Put("primary","#7f8c8d")
Colors.Put("primary_dark","#5c6566")
Colors.Put("primary_light","#a9a9a9")
Colors.Put("accent","#536DFE")
Colors.Put("primary_text","#212121")
Colors.Put("secondary_text","#757575")
Colors.Put("icons","#FFFFFF")
Colors.Put("divider","#BDBDBD")
Return Colors
End Sub
Private Sub DarkTheme As Map
Private Colors As Map 'use to store the colors we need
Colors.Initialize
'add colors
Colors.Put("primary","#2c3e50")
Colors.Put("primary_dark","#1b2732")
Colors.Put("primary_light","#68696a")
Colors.Put("accent","#95a5a6")
Colors.Put("primary_text","#212121")
Colors.Put("secondary_text","#757575")
Colors.Put("icons","#FFFFFF")
Colors.Put("divider","#BDBDBD")
Return Colors
End Sub
Private Sub PurpleTheme As Map
Private Colors As Map 'use to store the colors we need
Colors.Initialize
'add colors
Colors.Put("primary","#673AB7")
Colors.Put("primary_dark","#512DA8")
Colors.Put("primary_light","#D1C4E9")
Colors.Put("accent","#536DFE")
Colors.Put("primary_text","#212121")
Colors.Put("secondary_text","#757575")
Colors.Put("icons","#FFFFFF")
Colors.Put("divider","#BDBDBD")
Return Colors
End Sub
Private Sub PinkTheme As Map
Private Colors As Map 'use to store the colors we need
Colors.Initialize
'add colors
Colors.Put("primary","#E91E63")
Colors.Put("primary_dark","#C2185B")
Colors.Put("primary_light","#F8BBD0")
Colors.Put("accent","#FF9800")
Colors.Put("primary_text","#212121")
Colors.Put("secondary_text","#757575")
Colors.Put("icons","#FFFFFF")
Colors.Put("divider","#BDBDBD")
Return Colors
End Sub
Private Sub AmberTheme As Map
Private Colors As Map 'use to store the colors we need
Colors.Initialize
'add colors
Colors.Put("primary","#FFC107")
Colors.Put("primary_dark","#FFA000")
Colors.Put("primary_light","#FFECB3")
Colors.Put("accent","#03A9F4")
Colors.Put("primary_text","#212121")
Colors.Put("secondary_text","#757575")
Colors.Put("icons","#FFFFFF")
Colors.Put("divider","#BDBDBD")
Return Colors
End Sub
#End Region
#End If