You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Comrad/app/screens/profile/profile.kv

133 lines
2.8 KiB
Plaintext

#:import ProfileScreen screens.profile.profile.ProfileScreen
<ProfileScreen>:
id:profile_screen
name:'profile'
<CoverImage>:
size_hint: None,None
# pos_hint: {'y':0}
# canvas:
# Color:
# rgb: 1,0,0,1
# Line:
# width: 1
# rectangle: (self.x, self.y, self.width, self.height)
<LayoutAvatar>:
cols:1
orientation:'vertical'
size_hint:None,None
# height:'200dp'
# width:'300dp'
# md_bg_color:1,1,0,1
pos_hint: {'center_x':0.5,'center_y':0.88}
# radius:[20,]
# border_radius:20
canvas:
Color:
rgb: 0,0,0,1
Line:
width: 2
# rectangle: (self.x, self.y, self.width, self.height)
circle: (self.center_x, self.center_y, min(self.width, self.height) / 2) #(self.x, self.x, self.width)
<LayoutCover>:
cols:1
orientation:'vertical'
size_hint:None,None
# height:'200dp'
# width:'300dp'
md_bg_color:0,0,0,1
# height: '500dp'
pos_hint: {'center_x':0.5,'y':0.8}
# radius:[20,]
# border_radius:20
canvas:
# Rectangle:
# pos: self.pos
# size: self.size
# # source: self.source
Color:
rgb: 0,0,0,1
Line:
width: 2
rectangle: (self.x, self.y, self.width, self.height)
<AuthorInfoLayout>:
cols:1
orientation:'vertical'
size_hint:0.6666,None
md_bg_color:0,0,0,1
# width: '300dp'
height: self.minimum_height
pos_hint: {'center_x':0.5}
spacing:'10sp'
radius:[20,]
border_radius:20
padding:'10sp'
canvas:
Color:
rgba: 1,0,0,0.5
Line:
width: 1
rounded_rectangle: (self.x, self.y, self.width, self.height, 20, 20, 20, 20)
<AuthorName>:
pos_hint: {'center_x':0.5}
theme_text_color:'Custom'
text_color: 1,0,0,1
halign:'center'
<AuthorUsername>:
pos_hint: {'center_x':0.5}
theme_text_color:'Custom'
text_color: 1,0,0,1
halign:'center'
<AuthorDesc>:
halign:'left'
<AuthorPlace>:
theme_text_color: 'Custom'
text_color:1,0,0,1
<AuthorWebsite>:
theme_text_color: 'Custom'
text_color:1,0,0,1
<AuthorFollowers>:
theme_text_color: 'Custom'
text_color:1,0,0,1
size_hint:None,None
pos_hint:{'right':1}
<AuthorFollowing>:
theme_text_color: 'Custom'
text_color:1,0,0,1
pos_hint:{'left':1}
<ProfilePageLayout>:
cols:1
orientation:'vertical'
spacing:'10dp'
size_hint:1,None
# md_bg_color:1,0,0,1
pos_hint: {'center_x':0.5,'center_y':0.5}
<ProfileAvatar>:
size_hint:1,1
# width: '200dp'
<FollowerLayout>:
cols:2
orientation:'horizontal'
spacing:'25dp'
height:self.minimum_height
size_hint:1,None
# md_bg_color:1,0,0,1
pos_hint: {'center_x':0.5,'center_y':0.5}