mirror of https://github.com/kivy/kivy.git
uix:Popup add `title_color` property to control the color of the
popup title
This commit is contained in:
parent
4dd062416a
commit
27ad401ece
|
@ -465,6 +465,7 @@
|
|||
|
||||
Label:
|
||||
text: root.title
|
||||
color: root.title_color
|
||||
size_hint_y: None
|
||||
height: self.texture_size[1] + 16
|
||||
text_size: self.width - 16, None
|
||||
|
|
|
@ -120,6 +120,15 @@ class Popup(ModalView):
|
|||
None.
|
||||
'''
|
||||
|
||||
title_color = ListProperty([1, 1, 1, 1])
|
||||
'''Color used by the Title
|
||||
|
||||
.. versionadded:: 1.8.0
|
||||
|
||||
:data:`title_color` is a :class:`~kivy.properties.ListProperty`,
|
||||
default to [1, 1, 1, 1]
|
||||
'''
|
||||
|
||||
separator_color = ListProperty([47 / 255., 167 / 255., 212 / 255., 1.])
|
||||
'''Color used by the separator between title and content.
|
||||
|
||||
|
|
Loading…
Reference in New Issue