-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfacebook_desktop.kv
135 lines (104 loc) · 4.73 KB
/
facebook_desktop.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
#:import get_color_from_hex kivy.utils.get_color_from_hex
#:import PosterCardCard components.cards.poster_card.PosterCardCard
#:import FakeCard components.cards.fake_card.FakeCard
#:import PostCard components.cards.post_card.PostCard
#:import BadgeButton components.badge_button.BadgeButton
#:import Tab components.tab.Tab
<MyLabel@MDLabel>
theme_text_color: "Custom"
text_color: get_color_from_hex("#4f5152")
font_name: "assets/font/SourceSansPro-Regular.otf"
<FacebookDesktop>
md_bg_color: get_color_from_hex("#e3f2fc")
MDBoxLayout:
orientation: "vertical"
TopBar:
id: tab_box
MDBoxLayout:
LeftBar:
ScrollView:
MDBoxLayout:
adaptive_height: True
MDBoxLayout:
orientation: "vertical"
padding: "24dp", "24dp", 0, "24dp"
adaptive_height: True
MyLabel:
text: " STORIES"
adaptive_height: True
font_style: "H5"
ScrollView:
size_hint_y: None
height: "356dp"
bar_width: 0
MDGridLayout:
id: story_box
rows: 1
size_hint_x: None
width: self.minimum_width
padding: "24dp", "48dp", 0, 0
MDBoxLayout:
adaptive_height: True
spacing: "24dp"
MDBoxLayout:
orientation: "vertical"
size_hint_x: .65
padding: "24dp", "42dp", 0, 0
spacing: "12dp"
adaptive_height: True
MyLabel:
text: "NEW POST"
adaptive_size: True
font_style: "H5"
PosterCardCard:
Widget:
size_hint_y: None
height: "12dp"
PostCard:
MDBoxLayout:
orientation: "vertical"
size_hint_x: .35
spacing: "12dp"
MyLabel:
text: "YOUR FRIENDS"
adaptive_size: True
font_style: "H5"
MDBoxLayout:
id: box_friends
orientation: "vertical"
adaptive_height: True
spacing: "12dp"
padding: 0, "12dp", 0, "12dp"
MyLabel:
text: "SUGGESTED FRIENDS"
adaptive_size: True
font_style: "H5"
MDBoxLayout:
id: box_suggested_friends
orientation: "vertical"
adaptive_height: True
spacing: "12dp"
padding: 0, "12dp", 0, "12dp"
Widget:
MDBoxLayout:
orientation: "vertical"
size_hint_x: None
width: "340dp"
padding: "24dp", "24dp", "6dp", 0
MDBoxLayout:
padding: "24dp", 0, "24dp", "24dp"
MyLabel:
text: "Last chats"
adaptive_height: True
font_style: "H6"
MDBoxLayout:
id: box_chat
orientation: "vertical"
adaptive_height: True
padding: "24dp"
spacing: "24dp"
md_bg_color: get_color_from_hex("#cce6f8")
radius: 12
Widget:
size_hint_y: None
height: "500dp"