-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.kv
104 lines (75 loc) · 1.95 KB
/
main.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
#:import hex kivy.utils.get_color_from_hex
<MDScreen>:
on_leave: app.previous_screen = self.name
<Item>
size_hint_x: .2
adaptive_size: True
text: root.right_text
# font_style: "Caption"
IconLeftWidget:
icon: root.left_icon
<ListComAvatar>:
on_release: app.abrir(root)
ImageLeftWidget:
source: root.source
<InicioWindow>:
MDBoxLayout:
orientation: 'vertical'
MDBoxLayout:
orientation: 'vertical'
# size_hint_y: .5
canvas.before:
# Color:
# rgba: hex('#eeeeee')
Rectangle:
size: self.size
pos: self.pos
spacing: .5
# Toolbar
MDToolbar:
title: "Banco de Dados"
md_bg_color: app.theme_cls.primary_dark
right_action_items: [["dots-vertical", lambda x: app.chamada(x) ],]
# Div
MDBoxLayout:
orientation: 'vertical'
MDTextField:
id: search_field
hint_text: 'Pesquisar'
on_text: root.existe(self.text, True)
MDBoxLayout:
id: content
#size_hint_y: .6
orientation: 'vertical'
canvas.before:
# Color:
# rgba: hex('eeeeee')
Rectangle:
size: self.size
pos: self.pos
RecycleView:
id: rv
key_viewclass: 'viewclass'
key_size: 'height'
RecycleBoxLayout:
padding: dp(10)
default_size: None, dp(64)
default_size_hint: 1, None
size_hint_y: None
height: self.minimum_height
orientation: 'vertical'
# SpeedDial
MDFloatLayout:
canvas.before:
# Color:
# rgba: hex('#282828')
Rectangle:
size: self.size
pos: self.pos
size_hint_y: .00001
#size_hint_x: .2
MDFloatingActionButtonSpeedDial:
data: app.data
callback: app.callback
root_button_anim: True
label_text_color: hex('#fafafa')