【发布时间】:2021-04-19 19:59:57
【问题描述】:
我有问题,标签文本颜色不显示指示的颜色, 它应该显示深蓝色文本颜色,但它以另一种颜色显示文本
它应该看起来像这样:
.text{
font-size: 20px;
color: #112651;
}
<div class="text">FULLNAME</div>
这是代码:
<MyInfo>:
canvas.before:
Color:
rgb: C("#f3f3f3")
Rectangle:
pos: self.pos
size: self.size
spacing: "10dp"
ListItemLayoutProfile:
size_hint:(0.3,1)
LabelForList:
text: "Some text here"
color: (17, 38, 81, 1) #<-----this is (#112651;) in rgba------>
...
....
BoxLayout:
size_hint: (1,0.715)
spacing:"5dp"
canvas:
Color:
rgb: C("#e9ebed")
Rectangle:
pos: self.pos
size: self.size
RecycleView:
id: rv
bar_width: dp(7)
viewclass: 'MyInfo'
RecycleBoxLayout:
id: rbl
default_size: None, dp(35)
default_size_hint: 1, None
size_hint_y: None
height: self.minimum_height
orientation: "vertical"
spacing: dp(4)
但是如果我像这样更改值,文本是黑色的正确
LabelForList:
text: "Some text here"
color: (0,0,0,1) #<--------this ok, but I need (17, 38, 81, 1)---->
【问题讨论】: