-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.kv
203 lines (183 loc) · 5.99 KB
/
style.kv
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
#:kivy 2.1.0
<Main>:
cols:1
Label:
id:AppTitle
text:'FIBONNACI'
font_size:dp(20)
size_hint:[1,0.07]
BoxLayout:
id:QuickView
orientation:'horizontal'
size_hint: [1, 0.06]
Label:
id:QuickBudgetView_week
halign:"left"
color:[0.8,0.8,0.8,1]
text:'This Week : x/total'
Label:
halign:'right'
id:QuickBudgetView_month
color:[0.8,0.8,0.8,1]
text:'This Month : x/total'
TabbedPanel:
pos_hint: {'center_x': .5, 'center_y': .5}
do_default_tab: False
tab_pos:'top_mid'
tab_width:root.size[0]/4
background_color:[0,0,0,1]
id:Tabs
TabbedPanelItem:
text: 'RECORD'
FloatLayout:
id:floatlay
BoxLayout:
orientation:'vertical'
size_hint:[1,0.8]
pos_hint:{'center_x':0.5,'y':0.06+0.07}
spacing:5
FloatInput:
id:amount_input
size_hint:[0.8,0.2]
pos_hint:{'center_x':0.5}
background_color:[0,0,0,1]
foreground_color:[1,1,1,1]
multiline:False
halign:'center'
padding:(self.height-self.line_height)/2
font_size:dp(30)
hint_text:"Enter Amount"
hint_text_color:[0.5,0.5,0.5,0.5]
input_type:'number'
Spinner:
id:category_dropdown
size_hint:[0.8,0.15]
pos_hint:{'center_x':0.5}
text:"categories"
values:root.categories
sync_height:True
Spinner:
id:payment_mode
size_hint:[0.8,0.15]
pos_hint:{'center_x':0.5}
text:"UPI"
values:['UPI','Card','Cash','Netbanking']
sync_height:True
TextInput:
id:remarks
size_hint:[0.8,0.4]
pos_hint:{'center_x':0.5}
background_color:[0,0,0,1]
foreground_color:[1,1,1,1]
multiline:True
halign:'center'
font_size:dp(15)
hint_text:"Add Remarks"
hint_text_color:[0.5,0.5,0.5,0.5]
Button:
id:submit
text:"Submit"
size_hint:[0.8,0.2]
pos_hint:{'center_x':0.5,'center_y':0.5}
on_release:root.submit()
TabbedPanelItem:
text:'ANALYZE'
BoxLayout:
orientation:'vertical'
spacing:10
BoxLayout:
orientation:'horizontal'
size_hint:[1,0.1]
padding:[20,0,20,0,]
spacing:10
Button:
text:'Refresh Graphs'
on_release:self.parent.parent.parent.parent.parent.refresh_graphs()
GraphScrollView:
id:GraphScrollView
viewclass: 'Graph'
RecycleBoxLayout:
default_size: 1, dp(300)
default_size_hint: 0.95, None
default_pos_hint:{'center_x':0.5,'center_y':0.5}
size_hint_y: None
height: self.minimum_height
orientation: 'vertical'
spacing:5
padding:5
TabbedPanelItem:
text:'VIEW'
TableView:
id:ActiveTableView
TabbedPanelItem:
text:'BUDGET'
BoxLayout:
size_hint:[1,0.1]
pos_hint:{'center_x':0.5,'center_y':0.05}
Label:
text:"@ceimos"
<MessagePopUp@Popup>:
size_hint:[0.82,0.2]
pos_hint:{'center_x':0.5,'center_y':0.5}
title_size:dp(30)
title_align:'center'
auto_dismiss:True
<TabbedPanelItem>:
background_color: [0,0,0,1]
background_down:''
background_normal:''
border_color:1,0,0,1
color: [1,1,1,1] if self.state=='down' else [0.5,0.5,0.5,1]
<TableViewRow>:
orientation: 'horizontal'
spacing:10
canvas.before:
Color:
rgba:0.6,0.6,0.6,0.4
Rectangle:
pos:self.pos
size:self.size
Label:
text: root.category
size_hint:[0.21,1]
text_size:self.size
valign:'center'
halign:'center'
Label:
text: root.remarks
size_hint:[0.35,1]
text_size:self.size
valign:'center'
BoxLayout:
id:CompositeBox
orientation:'vertical'
size_hint:[0.21,1]
pos_hint:{'center_x':0.5,'center_y':0.5}
Label:
text:root.date
font_size:dp(12)
Label:
text:root.time
font_size:dp(12)
Label:
text:root.mode
font_size:dp(15)
text_size:self.size
halign:'center'
Label:
size_hint:[0.21,1]
text:str(root.amount)
text_size:self.size
valign:'center'
<TableView>:
viewclass: 'TableViewRow'
background_color:[1,1,0,1]
RecycleBoxLayout:
default_size: 1, dp(56)
default_size_hint: 0.95, None
default_pos_hint:{'center_x':0.5,'center_y':0.5}
size_hint_y: None
height: self.minimum_height
orientation: 'vertical'
spacing:5
padding:5