fix:Worked around weird behavior of Mdlabel's with a background color

This commit is contained in:
Benex254
2024-08-05 09:46:54 +03:00
parent 2eca3f480d
commit 35c26ffe4d
11 changed files with 69 additions and 85 deletions

View File

@@ -1,6 +1,6 @@
<TrendingAnimeSideBar>:
orientation: 'vertical'
adaptive_height:True
adaptive_height:True
md_bg_color:self.theme_cls.surfaceContainerLowColor
pos_hint: {'center_x': 0.5}
padding:"25dp","25dp","25dp","200dp"

View File

@@ -32,7 +32,7 @@
MDBoxLayout:
orientation: 'vertical'
size_hint_y:None
height:self.minimum_height
height:max(self.parent.parent.height,self.minimum_height)
MDGridLayout:
pos_hint: {'center_x': 0.5}
id:search_results_container
@@ -40,7 +40,7 @@
padding: "75dp","50dp","75dp","200dp"
cols:5
size_hint_y:None
height:self.minimum_height
height:max(self.parent.parent.height,self.minimum_height)
SearchResultsPagination:
id:search_results_pagination
search_view:root
@@ -49,17 +49,10 @@
size_hint_y:1
size_hint_x:None
width: dp(250)
MDLabel:
HeaderLabel:
text:"Trending"
adaptive_height:True
halign:"center"
max_lines:0
# md_bg_color:Stat
shorten:False
bold:True
font_style: "Label"
role: "large"
padding:"10dp"
MDScrollView:
TrendingAnimeSideBar:
id:trending_anime_sidebar
height:max(self.parent.parent.height,self.minimum_height)