uix:Popup add `title_color` property to control the color of the

popup title
This commit is contained in:
qua-non 2013-08-10 02:52:22 +05:30
parent 4dd062416a
commit 27ad401ece
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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.