kivy/kivy — pull request #804 by akshayaurora (2012-11-17 23:03:29+00:00)
Title: UIX:Label honour `color` property when using makup

The `color` property for label was conflicting markup colours as setting `color` to anything other than 1, 1, 1, 1 meant that markup colours were affected.

This fix works around the issue by wrapping around a tag [color=#self.color_in_hex] text [/color], and forcing the `color` to 1, 1, 1, 1 if markup is True.

This also introduces a new function in kivy.utils `get_hex_from_color` for getting a hex from kivy color.

To reproduce the issue or test this patch::

1) Run demo/exampleskivycatalog (love this thing :D)
2) Choose `Labels` from the Buttons on the left
3) In the editor on the right add a color property to the label with the text "label with markup"