ah :) thanks :)
On Jun 18, 2012, at 12:43 PM, Mathieu Virbel wrote:
> Hi,
>
> The their is no background in image/label/any others things by default :)
>
> If you want to add it, you were close to the result:
>
> canvas.before:
> Color:
> rgb: .6, .6, .6
> Rectangle:
> pos: self.pos
> size: self.size
>
> Regards,
>
> Mathieu
>
> On 18/06/2012 12:32, Pavel Kostelnik wrote:
>> Hi,
>>
>> how do i set the background color for image/label/any other thing
>> extending widget class? I tried canvas.before like this:
>>
>> …
>> BoxLayout:
>> size_hint: 0.3, 1
>> orientation: 'vertical'
>> Image:
>> source: "settings.png"
>> Label:
>> canvas.before:
>> Color:
>> rgb: 0.6,0.6,0.6
>> text: "Settings"
>> id: settings_text
>> font_size: 20
>>
>> …